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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57b3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x598
mov eax, dword [0x5c5678]
xor eax, esp
mov dword [esp + 0x590], eax
push ebx
push esi
push edi
mov eax, dword [0x5c5678]
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 0x50112e
cmp dword [ebx + 0x2f4], edi
jne 0x500ffe
mov esi, 0x58e9f0
mov dword [ebx + 0x2f4], edx
call fcn.00463c90
cmp dword [ebx + 0x304], edi
jne 0x50105c
call fcn.00425b30
mov ecx, dword [eax + 0x1c4]
sub ecx, dword [eax + 0x1c0]
add eax, 0x1b4
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x50104c
push 1
lea ecx, [ebx - 0x19c]
push ecx
mov dword [ebx + 0x34c], 9
call fcn.004f6f70
jmp 0x50171e
lea edi, [ebx - 0x19c]
call fcn.004f82b0
jmp 0x50171e
cmp byte [ebx + 0x2ea], 0
mov dword [ebx + 0x34c], 9
jne 0x5010ee
cmp dword [ebx + 0x29c], 0
jne 0x5010d4
push 0x5cea3e
push 0x1f0
call fcn.0053f363
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x5b0], 0
test eax, eax
je 0x5010c1
lea edx, [ebx - 0x19c]
test edx, edx
je 0x5010b6
lea ecx, [ebx + 0x1f0]
push ecx
push eax
call fcn.004dff20
jmp 0x5010c3
xor ecx, ecx
push ecx
push eax
call fcn.004dff20
jmp 0x5010c3
xor eax, eax
mov dword [esp + 0x5b0], 0xffffffff
mov dword [ebx + 0x29c], eax
mov ecx, dword [ebx + 0x29c]
test ecx, ecx
je 0x50171e
mov dl, 1
call fcn.004e35d0
jmp 0x50171e
mov eax, dword [ebx + 0x354]
mov byte [esp + 0x14], 0
cmp eax, edi
je 0x501101
test eax, eax
jne 0x501106
mov byte [esp + 0x14], 1
call fcn.00425b30
mov esi, eax
call fcn.00425f20
mov dword [ebx + 0x354], eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [ebx - 0x19c]
push ecx
call fcn.004f6f70
jmp 0x50171e
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 0x50128d
je 0x50121a
cmp eax, 0xc0000001
je 0x5011c2
cmp eax, 0xc0010003
jne 0x5012aa
push edx
lea eax, [ebx - 0x148]
mov ecx, str.IDS_ERR_LICENSE_ALREADY_ACTIVATED
lea esi, [esp + 0x8c]
call fcn.004adac0
mov dword [esp + 0x5b0], edi
cmp dword [eax + 0x18], 8
jb 0x501192
mov eax, dword [eax + 4]
jmp 0x501195
add eax, 4
push eax
lea edi, [ebx - 0x19c]
call fcn.004faa40
lea ecx, [esp + 0x88]
mov dword [esp + 0x5b0], 0xffffffff
call fcn.0040f400
mov byte [esp + 0x12], 1
jmp 0x5013c1
push edx
lea eax, [ebx - 0x148]
mov ecx, str.IDS_ERROR_INVALIDE_ACTIVATION_CODE
lea esi, [esp + 0x54]
call fcn.004adac0
mov dword [esp + 0x5b0], 1
cmp dword [eax + 0x18], 8
jb 0x5011ed
mov eax, dword [eax + 4]
jmp 0x5011f0
add eax, 4
push eax
lea edi, [ebx - 0x19c]
call fcn.004faa40
lea ecx, [esp + 0x50]
mov dword [esp + 0x5b0], 0xffffffff
call fcn.0040f400
mov byte [esp + 0x12], 1
jmp 0x5013c1
test cl, cl
jne 0x5013c1
push edx
lea eax, [ebx - 0x148]
mov ecx, str.IDS_ERR_LICENSE_ACCOUNT_STATUS_CONFLICT
lea esi, [esp + 0xc4]
call fcn.004adac0
mov dword [esp + 0x5b0], 3
cmp dword [eax + 0x18], 8
jb 0x501250
mov eax, dword [eax + 4]
jmp 0x501253
add eax, 4
lea edi, [ebx - 0x19c]
push eax
call fcn.004faa40
lea ecx, [esp + 0xc0]
mov dword [esp + 0x5b0], 0xffffffff
call fcn.0040f400
push 0
push edi
mov dword [ebx + 0x34c], 9
call fcn.004f6f70
jmp 0x5013c1
cmp eax, 0xc001000d
je 0x50136f
cmp eax, 0xc001000e
je 0x501351
cmp eax, 0xc0010012
je 0x501303
push edx
lea eax, [ebx - 0x148]
mov ecx, str.IDS_ERROR_INVALID_SERVICE
lea esi, [esp + 0xa8]
call fcn.004adac0
mov dword [esp + 0x5b0], 6
cmp dword [eax + 0x18], 8
jb 0x5012d8
mov eax, dword [eax + 4]
jmp 0x5012db
add eax, 4
push eax
lea edi, [ebx - 0x19c]
call fcn.004faa40
lea ecx, [esp + 0xa4]
mov dword [esp + 0x5b0], 0xffffffff
call fcn.0040f400
jmp 0x5013de
push edx
lea eax, [ebx - 0x148]
mov ecx, str.IDS_ERR_LICENSE_ACTIVATE_CONFLICT
lea esi, [esp + 0x70]
call fcn.004adac0
mov dword [esp + 0x5b0], 5
cmp dword [eax + 0x18], 8
jb 0x50133c
mov eax, dword [eax + 4]
push eax
lea edi, [ebx - 0x19c]
call fcn.004faa40
mov ecx, esi
jmp 0x5013b1
add eax, 4
push eax
lea edi, [ebx - 0x19c]
call fcn.004faa40
lea ecx, [esp + 0x6c]
jmp 0x5013b1
push edx
lea edx, [ebx - 0x19c]
push edx
mov dword [ebx + 0x34c], 9
call fcn.004f6f70
mov byte [esp + 0x12], 1
jmp 0x5013c1
test cl, cl
jne 0x5013c1
push edx
lea eax, [ebx - 0x148]
mov ecx, str.IDS_ERR_LICENSE_INVALID_LICENSE
lea esi, [esp + 0x20]
call fcn.004adac0
mov dword [esp + 0x5b0], 4
cmp dword [eax + 0x18], 8
jb 0x50139e
mov eax, dword [eax + 4]
jmp 0x5013a1
add eax, 4
push eax
lea edi, [ebx - 0x19c]
call fcn.004faa40
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5b0], 0xffffffff
call fcn.0040f400
cmp dword [ebx + 0x2f4], 2
jne 0x5013de
mov esi, 0x58e9f0
mov dword [ebx + 0x2f4], 0
call fcn.00463c90
cmp byte [esp + 0x13], 0
je 0x50171e
cmp byte [esp + 0x12], 0
mov dword [ebx + 0x304], 0
je 0x501404
mov esi, str.Lic2
call fcn.00463c90
mov eax, dword [ebp + 8]
cmp eax, 0xc001000c
jne 0x50155f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebx + 0x2b8]
test eax, eax
je 0x501443
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x501443
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.00487070
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.0048a840
test eax, eax
je 0x501552
push 0
lea eax, [ebx - 0x148]
mov ecx, str.IDS_STANDALONE_KEY_FAIL_LIMIT
lea esi, [esp + 0x20]
call fcn.004adac0
mov edi, 8
mov byte [esp + 0x5b0], 0xa
cmp dword [eax + 0x18], edi
jb 0x5014bd
mov eax, dword [eax + 4]
jmp 0x5014c0
add eax, 4
push 0
mov edx, eax
lea ecx, [esp + 0xe0]
call fcn.00489000
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 9
call fcn.0040f400
push str.IDS_VIEW_DETAILS
xor al, al
or ecx, 0xffffffff
lea esi, [esp + 0x20]
call fcn.004adb10
mov byte [esp + 0x5b0], 0xb
cmp dword [eax + 0x18], edi
jb 0x501506
mov eax, dword [eax + 4]
jmp 0x501509
add eax, 4
push 0
push 1
mov ecx, eax
lea edx, [esp + 0xe4]
call fcn.00489670
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 9
call fcn.0040f400
push 0
push 0
lea esi, [esp + 0xe4]
call fcn.00488ed0
cmp eax, 1
jne 0x501552
push 0
push 9
push 2
lea eax, [ebx - 0x19c]
call fcn.004eaf50
lea ecx, [esp + 0xdc]
push ecx
jmp 0x50170e
cmp eax, 0xc001000d
jne 0x50171e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebx + 0x2b8]
test eax, eax
je 0x50159b
mov edx, dword [eax + 0x30]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x50159b
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.00487070
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.0048a840
test eax, eax
je 0x501706
push 0
lea eax, [ebx - 0x148]
mov ecx, str.IDS_STANDALONE_KEY_FAIL_EXPIRE
lea esi, [esp + 0x20]
call fcn.004adac0
mov edi, 8
mov byte [esp + 0x5b0], 0xf
cmp dword [eax + 0x18], edi
jb 0x501615
mov eax, dword [eax + 4]
jmp 0x501618
add eax, 4
push 0
mov edx, eax
lea ecx, [esp + 0x340]
call fcn.00489000
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 0xe
call fcn.0040f400
push str.IDS_RENEW_NOW
xor al, al
or ecx, 0xffffffff
lea esi, [esp + 0x20]
call fcn.004adb10
mov byte [esp + 0x5b0], 0x10
cmp dword [eax + 0x18], edi
jb 0x50165e
mov eax, dword [eax + 4]
jmp 0x501661
add eax, 4
push 0
push 1
mov ecx, eax
lea edx, [esp + 0x344]
call fcn.00489670
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 0xe
call fcn.0040f400
push 0
push 0
lea esi, [esp + 0x344]
call fcn.00488ed0
cmp eax, 1
jne 0x501706
lea eax, [esp + 0x38]
push eax
call fcn.004c8990
lea ecx, [esp + 0x38]
push 1
push ecx
mov byte [esp + 0x5b8], 0x11
call fcn.0045ffa0
add esp, 8
test al, al
je 0x5016fd
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 0x5016fd
lea esi, [esp + 0x14]
lea edi, [esp + 0x38]
call fcn.004c8b40
mov esi, eax
call fcn.00464e10
movzx edx, byte [eax + 0x50]
lea ecx, [eax + 0x18]
push edx
call fcn.004d5e80
add esp, 4
lea esi, [esp + 0x38]
call fcn.0043b620
lea eax, [esp + 0x33c]
push eax
mov dword [esp + 0x5b4], 0xffffffff
call fcn.00487240
add ebx, 0xfffffe64
push ebx
call fcn.004f84d0
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.0053d78d
mov esp, ebp
pop ebp
ret 4