Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text:0040E830 key_check proc near ; CODE XREF: sub_40F260+67p
- .text:0040E830 ; sub_40F320+58p ...
- .text:0040E830
- .text:0040E830 var_A14 = dword ptr -0A14h
- .text:0040E830 var_810 = dword ptr -810h
- .text:0040E830 var_60C = dword ptr -60Ch
- .text:0040E830 var_408 = dword ptr -408h
- .text:0040E830 var_204 = dword ptr -204h
- .text:0040E830 arg_0 = byte ptr 4
- .text:0040E830
- .text:0040E830 sub esp, 0A14h
- .text:0040E836 cmp eax, 4
- .text:0040E839 jnz short loc_40E851
- .text:0040E83B push edi
- .text:0040E83C push offset aNoLicenseOrAct ; "No license or active evalution found. P"...
- .text:0040E841 push ebx
- .text:0040E842 call sub_42DFA0
- .text:0040E847 add esp, 0Ch
- .text:0040E84A add esp, 0A14h
- .text:0040E850 retn
- .text:0040E851 ; ---------------------------------------------------------------------------
- .text:0040E851
- .text:0040E851 loc_40E851: ; CODE XREF: key_check+9j
- .text:0040E851 cmp eax, 2
- .text:0040E854 jnz short loc_40E86C
- .text:0040E856 push edi
- .text:0040E857 push offset aYourLicenseWas ; "Your license was purchased for a much o"...
- .text:0040E85C push ebx
- .text:0040E85D call sub_42DFA0
- .text:0040E862 add esp, 0Ch
- .text:0040E865 add esp, 0A14h
- .text:0040E86B retn
- .text:0040E86C ; ---------------------------------------------------------------------------
- .text:0040E86C
- .text:0040E86C loc_40E86C: ; CODE XREF: key_check+24j
- .text:0040E86C cmp eax, 3
- .text:0040E86F jnz short loc_40E887
- .text:0040E871 push edi
- .text:0040E872 push offset aYourLicenseFor ; "Your license for SftpDrive has expired."...
- .text:0040E877 push ebx
- .text:0040E878 call sub_42DFA0
- .text:0040E87D add esp, 0Ch
- .text:0040E880 add esp, 0A14h
- .text:0040E886 retn
- .text:0040E887 ; ---------------------------------------------------------------------------
- .text:0040E887
- .text:0040E887 loc_40E887: ; CODE XREF: key_check+3Fj
- .text:0040E887 cmp eax, 1
- .text:0040E88A jnz loc_40E913
- .text:0040E890 push 0
- .text:0040E892 call sub_430474
- .text:0040E897 mov ecx, [esi+4]
- .text:0040E89A sub ecx, eax
- .text:0040E89C mov eax, 0C22E4507h
- .text:0040E8A1 imul ecx
- .text:0040E8A3 add edx, ecx
- .text:0040E8A5 sar edx, 10h
- .text:0040E8A8 mov eax, edx
- .text:0040E8AA shr eax, 1Fh
- .text:0040E8AD add eax, edx
- .text:0040E8AF add esp, 4
- .text:0040E8B2 test eax, eax
- .text:0040E8B4 jle short loc_40E8DA
- .text:0040E8B6 push 0
- .text:0040E8B8 call sub_430474
- .text:0040E8BD mov ecx, [esi+4]
- .text:0040E8C0 sub ecx, eax
- .text:0040E8C2 mov eax, 0C22E4507h
- .text:0040E8C7 imul ecx
- .text:0040E8C9 add edx, ecx
- .text:0040E8CB sar edx, 10h
- .text:0040E8CE mov eax, edx
- .text:0040E8D0 shr eax, 1Fh
- .text:0040E8D3 add esp, 4
- .text:0040E8D6 add eax, edx
- .text:0040E8D8 jmp short loc_40E8DC
- .text:0040E8DA ; ---------------------------------------------------------------------------
- .text:0040E8DA
- .text:0040E8DA loc_40E8DA: ; CODE XREF: key_check+84j
- .text:0040E8DA xor eax, eax
- .text:0040E8DC
- .text:0040E8DC loc_40E8DC: ; CODE XREF: key_check+A8j
- .text:0040E8DC cmp byte ptr [esp+0A18h], 1
- .text:0040E8E4 push eax
- .text:0040E8E5 jnz short loc_40E8FD
- .text:0040E8E7 push offset aYourEvaluation ; "Your evaluation period has %d days left"...
- .text:0040E8EC push edi
- .text:0040E8ED push ebx
- .text:0040E8EE call sub_42DFD0
- .text:0040E8F3 add esp, 10h
- .text:0040E8F6 add esp, 0A14h
- .text:0040E8FC retn
- .text:0040E8FD ; ---------------------------------------------------------------------------
- .text:0040E8FD
- .text:0040E8FD loc_40E8FD: ; CODE XREF: key_check+B5j
- .text:0040E8FD push offset aYourEvaluati_0 ; "Your evaluation period has %d days left"...
- .text:0040E902 push edi
- .text:0040E903 push ebx
- .text:0040E904 call sub_42DFD0
- .text:0040E909 add esp, 10h
- .text:0040E90C add esp, 0A14h
- .text:0040E912 retn
- .text:0040E913 ; ---------------------------------------------------------------------------
- .text:0040E913
- .text:0040E913 loc_40E913: ; CODE XREF: key_check+5Aj
- .text:0040E913 mov ecx, dword_456054
- .text:0040E919 movzx edx, word ptr [esi+0Ch]
- .text:0040E91D push ecx
- .text:0040E91E push edx
- .text:0040E91F push offset aSftpdriveD_D ; "SftpDrive %d.%d"
- .text:0040E924 lea eax, [esp+81Ch]
- .text:0040E92B push 201h
- .text:0040E930 push eax
- .text:0040E931 call sub_42DFD0
- .text:0040E936 mov eax, [esi+10h]
- .text:0040E939 add esp, 14h
- .text:0040E93C test eax, eax
- .text:0040E93E jnz short loc_40E959
- .text:0040E940 push 201h
- .text:0040E945 lea ecx, [esp+4]
- .text:0040E949 push offset aAnyComputerInY ; "any computer in your organization"
- .text:0040E94E push ecx
- .text:0040E94F call sub_42DFA0
- .text:0040E954 add esp, 0Ch
- .text:0040E957 jmp short loc_40E98F
- .text:0040E959 ; ---------------------------------------------------------------------------
- .text:0040E959
- .text:0040E959 loc_40E959: ; CODE XREF: key_check+10Ej
- .text:0040E959 cmp eax, 1
- .text:0040E95C jnz short loc_40E977
- .text:0040E95E push 201h
- .text:0040E963 lea edx, [esp+4]
- .text:0040E967 push offset aOnlyOneCompute ; "only one computer"
- .text:0040E96C push edx
- .text:0040E96D call sub_42DFA0
- .text:0040E972 add esp, 0Ch
- .text:0040E975 jmp short loc_40E98F
- .text:0040E977 ; ---------------------------------------------------------------------------
- .text:0040E977
- .text:0040E977 loc_40E977: ; CODE XREF: key_check+12Cj
- .text:0040E977 push eax
- .text:0040E978 push offset aDComputers ; "%d computers"
- .text:0040E97D lea eax, [esp+8]
- .text:0040E981 push 201h
- .text:0040E986 push eax
- .text:0040E987 call sub_42DFD0
- .text:0040E98C add esp, 10h
- .text:0040E98F
- .text:0040E98F loc_40E98F: ; CODE XREF: key_check+127j
- .text:0040E98F ; key_check+145j
- .text:0040E98F cmp dword ptr [esi+8], 0
- .text:0040E993 jz loc_40EA23
- .text:0040E999 push esi
- .text:0040E99A call sub_430D2E
- .text:0040E99F push eax
- .text:0040E9A0 push offset aBDY ; "%B %#d, %Y"
- .text:0040E9A5 lea ecx, [esp+618h]
- .text:0040E9AC push 201h
- .text:0040E9B1 push ecx
- .text:0040E9B2 call sub_4318B0
- .text:0040E9B7 lea edx, [esi+4]
- .text:0040E9BA push edx
- .text:0040E9BB call sub_430D2E
- .text:0040E9C0 push eax
- .text:0040E9C1 push offset aBDY ; "%B %#d, %Y"
- .text:0040E9C6 lea eax, [esp+428h]
- .text:0040E9CD push 201h
- .text:0040E9D2 push eax
- .text:0040E9D3 call sub_4318B0
- .text:0040E9D8 mov eax, 4418A47Bh
- .text:0040E9DD mul dword ptr [esi+8]
- .text:0040E9E0 shr edx, 17h
- .text:0040E9E3 add esp, 28h
- .text:0040E9E6 cmp edx, 1
- .text:0040E9E9 mov eax, offset aYear ; "year"
- .text:0040E9EE jz short loc_40E9F5
- .text:0040E9F0 mov eax, offset aYears ; "years"
- .text:0040E9F5
- .text:0040E9F5 loc_40E9F5: ; CODE XREF: key_check+1BEj
- .text:0040E9F5 lea ecx, [esp+408h]
- .text:0040E9FC push ecx
- .text:0040E9FD lea ecx, [esp+610h]
- .text:0040EA04 push ecx
- .text:0040EA05 push eax
- .text:0040EA06 push edx
- .text:0040EA07 push offset aUntilDSFromThe ; " until %d %s from the date of purchase."...
- .text:0040EA0C lea edx, [esp+218h]
- .text:0040EA13 push 201h
- .text:0040EA18 push edx
- .text:0040EA19 call sub_42DFD0
- .text:0040EA1E add esp, 1Ch
- .text:0040EA21 jmp short loc_40EA3D
- .text:0040EA23 ; ---------------------------------------------------------------------------
- .text:0040EA23
- .text:0040EA23 loc_40EA23: ; CODE XREF: key_check+163j
- .text:0040EA23 push 201h
- .text:0040EA28 lea eax, [esp+208h]
- .text:0040EA2F push offset a__0 ; "."
- .text:0040EA34 push eax
- .text:0040EA35 call sub_42DFA0
- .text:0040EA3A add esp, 0Ch
- .text:0040EA3D
- .text:0040EA3D loc_40EA3D: ; CODE XREF: key_check+1F1j
- .text:0040EA3D lea ecx, [esp+204h]
- .text:0040EA44 push ecx
- .text:0040EA45 lea edx, [esp+4]
- .text:0040EA49 push edx
- .text:0040EA4A lea eax, [esp+818h]
- .text:0040EA51 push eax
- .text:0040EA52 push offset aThankYouForBuy ; "Thank you for buying SftpDrive!\r\n\r\nThis"...
- .text:0040EA57 push edi
- .text:0040EA58 push ebx
- .text:0040EA59 call sub_42DFD0
- .text:0040EA5E add esp, 18h
- .text:0040EA61 add esp, 0A14h
- .text:0040EA67 retn
- .text:0040EA67 key_check endp ; sp = 0A14h
Add Comment
Please, Sign In to add comment