Function at 0x4ffc00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x579c68
mov eax, dword fs:[0]
push eax
sub esp, 0x598
mov eax, dword [0x5c3678]
xor eax, esp
mov dword [esp + 0x590], eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x5a8]
mov dword fs:[0], eax
xor edx, edx
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 8]
cmp eax, edx
mov ebx, ecx
lea edi, [edx + 2]
jl 0x4ffd9e
cmp dword [ebx + 0x2f4], edi
jne 0x4ffc6e
mov esi, 0x58c668
mov dword [ebx + 0x2f4], edx
call fcn.004625f0
cmp dword [ebx + 0x304], edi
jne 0x4ffccc
call fcn.00424330
mov ecx, dword [eax + 0x1a8]
sub ecx, dword [eax + 0x1a4]
add eax, 0x198
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4ffcbc
push 1
lea ecx, [ebx - 0x19c]
push ecx
mov dword [ebx + 0x34c], 9
call fcn.004f5b90
jmp 0x50038e
lea edi, [ebx - 0x19c]
call fcn.004f6ed0
jmp 0x50038e
cmp byte [ebx + 0x2ea], 0
mov dword [ebx + 0x34c], 9
jne 0x4ffd5e
cmp dword [ebx + 0x29c], 0
jne 0x4ffd44
push 0x5cc9fe
push 0x1f0
call fcn.0053dd33
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x5b0], 0
test eax, eax
je 0x4ffd31
lea edx, [ebx - 0x19c]
test edx, edx
je 0x4ffd26
lea ecx, [ebx + 0x1f0]
push ecx
push eax
call fcn.004deaf0
jmp 0x4ffd33
xor ecx, ecx
push ecx
push eax
call fcn.004deaf0
jmp 0x4ffd33
xor eax, eax
mov dword [esp + 0x5b0], 0xffffffff
mov dword [ebx + 0x29c], eax
mov ecx, dword [ebx + 0x29c]
test ecx, ecx
je 0x50038e
mov dl, 1
call fcn.004e2190
jmp 0x50038e
mov eax, dword [ebx + 0x354]
mov byte [esp + 0x14], 0
cmp eax, edi
je 0x4ffd71
test eax, eax
jne 0x4ffd76
mov byte [esp + 0x14], 1
call fcn.00424330
mov esi, eax
call fcn.004246f0
mov dword [ebx + 0x354], eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [ebx - 0x19c]
push ecx
call fcn.004f5b90
jmp 0x50038e
cmp dword [ebx + 0x304], edi
mov byte [ebx + 0x2fd], dl
sete cl
cmp eax, 0xc001000c
mov byte [esp + 0x13], cl
mov byte [esp + 0x12], dl
jg 0x4ffefd
je 0x4ffe8a
cmp eax, 0xc0000001
je 0x4ffe32
cmp eax, 0xc0010003
jne 0x4fff1a
push edx
lea eax, [ebx - 0x148]
mov ecx, str.IDS_ERR_LICENSE_ALREADY_ACTIVATED
lea esi, [esp + 0x8c]
call fcn.004acda0
mov dword [esp + 0x5b0], edi
cmp dword [eax + 0x18], 8
jb 0x4ffe02
mov eax, dword [eax + 4]
jmp 0x4ffe05
add eax, 4
push eax
lea edi, [ebx - 0x19c]
call fcn.004f96b0
lea ecx, [esp + 0x88]
mov dword [esp + 0x5b0], 0xffffffff
call fcn.0040eb20
mov byte [esp + 0x12], 1
jmp 0x500031
push edx
lea eax, [ebx - 0x148]
mov ecx, str.IDS_ERROR_INVALIDE_ACTIVATION_CODE
lea esi, [esp + 0x54]
call fcn.004acda0
mov dword [esp + 0x5b0], 1
cmp dword [eax + 0x18], 8
jb 0x4ffe5d
mov eax, dword [eax + 4]
jmp 0x4ffe60
add eax, 4
push eax
lea edi, [ebx - 0x19c]
call fcn.004f96b0
lea ecx, [esp + 0x50]
mov dword [esp + 0x5b0], 0xffffffff
call fcn.0040eb20
mov byte [esp + 0x12], 1
jmp 0x500031
test cl, cl
jne 0x500031
push edx
lea eax, [ebx - 0x148]
mov ecx, str.IDS_ERR_LICENSE_ACCOUNT_STATUS_CONFLICT
lea esi, [esp + 0xc4]
call fcn.004acda0
mov dword [esp + 0x5b0], 3
cmp dword [eax + 0x18], 8
jb 0x4ffec0
mov eax, dword [eax + 4]
jmp 0x4ffec3
add eax, 4
lea edi, [ebx - 0x19c]
push eax
call fcn.004f96b0
lea ecx, [esp + 0xc0]
mov dword [esp + 0x5b0], 0xffffffff
call fcn.0040eb20
push 0
push edi
mov dword [ebx + 0x34c], 9
call fcn.004f5b90
jmp 0x500031
cmp eax, 0xc001000d
je 0x4fffdf
cmp eax, 0xc001000e
je 0x4fffc1
cmp eax, 0xc0010012
je 0x4fff73
push edx
lea eax, [ebx - 0x148]
mov ecx, str.IDS_ERROR_INVALID_SERVICE
lea esi, [esp + 0xa8]
call fcn.004acda0
mov dword [esp + 0x5b0], 6
cmp dword [eax + 0x18], 8
jb 0x4fff48
mov eax, dword [eax + 4]
jmp 0x4fff4b
add eax, 4
push eax
lea edi, [ebx - 0x19c]
call fcn.004f96b0
lea ecx, [esp + 0xa4]
mov dword [esp + 0x5b0], 0xffffffff
call fcn.0040eb20
jmp 0x50004e
push edx
lea eax, [ebx - 0x148]
mov ecx, str.IDS_ERR_LICENSE_ACTIVATE_CONFLICT
lea esi, [esp + 0x70]
call fcn.004acda0
mov dword [esp + 0x5b0], 5
cmp dword [eax + 0x18], 8
jb 0x4fffac
mov eax, dword [eax + 4]
push eax
lea edi, [ebx - 0x19c]
call fcn.004f96b0
mov ecx, esi
jmp 0x500021
add eax, 4
push eax
lea edi, [ebx - 0x19c]
call fcn.004f96b0
lea ecx, [esp + 0x6c]
jmp 0x500021
push edx
lea edx, [ebx - 0x19c]
push edx
mov dword [ebx + 0x34c], 9
call fcn.004f5b90
mov byte [esp + 0x12], 1
jmp 0x500031
test cl, cl
jne 0x500031
push edx
lea eax, [ebx - 0x148]
mov ecx, str.IDS_ERR_LICENSE_INVALID_LICENSE
lea esi, [esp + 0x20]
call fcn.004acda0
mov dword [esp + 0x5b0], 4
cmp dword [eax + 0x18], 8
jb 0x50000e
mov eax, dword [eax + 4]
jmp 0x500011
add eax, 4
push eax
lea edi, [ebx - 0x19c]
call fcn.004f96b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5b0], 0xffffffff
call fcn.0040eb20
cmp dword [ebx + 0x2f4], 2
jne 0x50004e
mov esi, 0x58c668
mov dword [ebx + 0x2f4], 0
call fcn.004625f0
cmp byte [esp + 0x13], 0
je 0x50038e
cmp byte [esp + 0x12], 0
mov dword [ebx + 0x304], 0
je 0x500074
mov esi, str.Lic2
call fcn.004625f0
mov eax, dword [ebp + 8]
cmp eax, 0xc001000c
jne 0x5001cf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebx + 0x2b8]
test eax, eax
je 0x5000b3
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5000b3
mov eax, dword [ebx + 0x2b8]
mov ecx, dword [eax + 0x30]
add eax, 0x2c
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
lea edx, [esp + 0xdc]
push edx
call fcn.00486000
push ecx
mov dword [esp + 0x5b4], 9
mov eax, esp
mov dword [esp + 0x18], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0
mov eax, dword [ebx - 0x16c]
mov dword [esp + 0x1c], esp
push eax
lea esi, [esp + 0x114]
call fcn.004897f0
test eax, eax
je 0x5001c2
push 0
lea eax, [ebx - 0x148]
mov ecx, str.IDS_STANDALONE_KEY_FAIL_LIMIT
lea esi, [esp + 0x20]
call fcn.004acda0
mov edi, 8
mov byte [esp + 0x5b0], 0xa
cmp dword [eax + 0x18], edi
jb 0x50012d
mov eax, dword [eax + 4]
jmp 0x500130
add eax, 4
push 0
mov edx, eax
lea ecx, [esp + 0xe0]
call fcn.00487f80
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 9
call fcn.0040eb20
push str.IDS_VIEW_DETAILS
xor al, al
or ecx, 0xffffffff
lea esi, [esp + 0x20]
call fcn.004acdf0
mov byte [esp + 0x5b0], 0xb
cmp dword [eax + 0x18], edi
jb 0x500176
mov eax, dword [eax + 4]
jmp 0x500179
add eax, 4
push 0
push 1
mov ecx, eax
lea edx, [esp + 0xe4]
call fcn.004885f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 9
call fcn.0040eb20
push 0
push 0
lea esi, [esp + 0xe4]
call fcn.00487e50
cmp eax, 1
jne 0x5001c2
push 0
push 9
push 2
lea eax, [ebx - 0x19c]
call fcn.004e9b70
lea ecx, [esp + 0xdc]
push ecx
jmp 0x50037e
cmp eax, 0xc001000d
jne 0x50038e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebx + 0x2b8]
test eax, eax
je 0x50020b
mov edx, dword [eax + 0x30]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x50020b
mov eax, dword [ebx + 0x2b8]
add eax, 0x2c
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [esp + 0x33c]
push ecx
call fcn.00486000
push ecx
mov dword [esp + 0x5b4], 0xe
mov eax, esp
mov dword [esp + 0x18], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0
mov edx, dword [ebx - 0x16c]
mov dword [esp + 0x1c], esp
push edx
lea esi, [esp + 0x374]
call fcn.004897f0
test eax, eax
je 0x500376
push 0
lea eax, [ebx - 0x148]
mov ecx, str.IDS_STANDALONE_KEY_FAIL_EXPIRE
lea esi, [esp + 0x20]
call fcn.004acda0
mov edi, 8
mov byte [esp + 0x5b0], 0xf
cmp dword [eax + 0x18], edi
jb 0x500285
mov eax, dword [eax + 4]
jmp 0x500288
add eax, 4
push 0
mov edx, eax
lea ecx, [esp + 0x340]
call fcn.00487f80
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 0xe
call fcn.0040eb20
push str.IDS_RENEW_NOW
xor al, al
or ecx, 0xffffffff
lea esi, [esp + 0x20]
call fcn.004acdf0
mov byte [esp + 0x5b0], 0x10
cmp dword [eax + 0x18], edi
jb 0x5002ce
mov eax, dword [eax + 4]
jmp 0x5002d1
add eax, 4
push 0
push 1
mov ecx, eax
lea edx, [esp + 0x344]
call fcn.004885f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 0xe
call fcn.0040eb20
push 0
push 0
lea esi, [esp + 0x344]
call fcn.00487e50
cmp eax, 1
jne 0x500376
lea eax, [esp + 0x38]
push eax
call fcn.004e2e10
lea ecx, [esp + 0x38]
push 1
push ecx
mov byte [esp + 0x5b8], 0x11
call fcn.0045e900
add esp, 8
test al, al
je 0x50036d
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x44]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x50036d
lea esi, [esp + 0x14]
lea edi, [esp + 0x38]
call fcn.00426420
mov esi, eax
call fcn.00472080
movzx edx, byte [eax + 0x50]
lea ecx, [eax + 0x18]
push edx
call fcn.004d44c0
add esp, 4
lea esi, [esp + 0x38]
call fcn.00439d90
lea eax, [esp + 0x33c]
push eax
mov dword [esp + 0x5b4], 0xffffffff
call fcn.004861d0
add ebx, 0xfffffe64
push ebx
call fcn.004f70f0
mov ecx, dword [esp + 0x5a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x590]
xor ecx, esp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 4