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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x578bca
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x5c3678]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x14], edi
call fcn.00424330
mov esi, eax
call fcn.004246f0
test eax, eax
mov eax, dword [ebx + 0x490]
setne byte [esp + 0x14]
cmp eax, 2
jne 0x4f6306
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov edi, ebx
call fcn.004fa1d0
cmp al, 1
je 0x4f68f1
cmp byte [esp + 0x14], 0
jne 0x4f643a
mov ecx, ebx
call fcn.004f6920
jmp 0x4f68f1
cmp eax, 3
jne 0x4f6419
call fcn.00424330
mov esi, eax
call fcn.004246f0
cmp eax, 1
jne 0x4f68f1
call fcn.00467180
mov ecx, dword [eax + 0x1c]
cmp ecx, edi
jne 0x4f633c
cmp dword [eax + 0x18], edi
je 0x4f633c
call fcn.00467540
mov ecx, dword [eax]
cmp ecx, dword [ebx + 0x30]
je 0x4f6375
lea edx, [esp + 0x14]
push edx
push 0x1f4
push edi
push edi
push edi
push 0x10
push ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
movzx eax, byte [ebp + 0xc]
mov ecx, dword [ebx + 0x30]
push edi
push eax
push 0x40c
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4f68f1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebx + 0x454]
cmp eax, edi
je 0x4f63a6
mov edx, dword [eax + 0x30]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f63a6
mov eax, dword [ebx + 0x454]
add eax, 0x2c
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebx + 0x438], edi
jne 0x4f63f5
push 0x5cc9fe
push 0x1f0
call fcn.0053dd33
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x2d0], 2
cmp eax, edi
je 0x4f63e2
lea ecx, [ebx + 0x38c]
push ecx
push eax
call fcn.004deaf0
jmp 0x4f63e4
xor eax, eax
mov dword [esp + 0x2d0], 0xffffffff
mov dword [ebx + 0x438], eax
mov ecx, dword [ebx + 0x438]
cmp ecx, edi
je 0x4f68f1
mov dl, 1
mov dword [ebx + 0x4e8], 9
call fcn.004e2190
jmp 0x4f68f1
cmp eax, 6
jne 0x4f62ef
mov edx, dword [ebx + 0x38c]
mov eax, dword [edx + 0x14]
lea ecx, [ebx + 0x38c]
push edi
push edi
call eax
jmp 0x4f68f1
cmp byte [ebx + 0x486], 1
je 0x4f68f1
cmp dword [ebx + 0x490], 1
je 0x4f64d9
call fcn.0045d780
test eax, eax
jne 0x4f64d9
cmp dword [ebx + 0x438], eax
jne 0x4f64ac
push 0x5cc9fe
push 0x1f0
call fcn.0053dd33
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x2d0], 3
test eax, eax
je 0x4f6499
lea ecx, [ebx + 0x38c]
push ecx
push eax
call fcn.004deaf0
jmp 0x4f649b
xor eax, eax
mov dword [esp + 0x2d0], 0xffffffff
mov dword [ebx + 0x438], eax
mov ecx, dword [ebx + 0x438]
test ecx, ecx
je 0x4f68f1
mov eax, 9
cmp dword [ebx + 0x490], eax
jne 0x4f64cd
mov dword [ebx + 0x4e8], eax
mov dl, 1
call fcn.004e2190
jmp 0x4f68f1
cmp byte [ebp + 0xc], 0
je 0x4f64f4
push 0x80
call fcn.0045ba50
add esp, 4
test al, al
jne 0x4f68f1
cmp byte [ebx + 0x498], 1
je 0x4f68f1
call fcn.00424330
call fcn.00424c30
test al, al
je 0x4f68f1
call fcn.00424330
mov esi, eax
call fcn.00424b80
test al, al
push 1
mov edi, 0x80
sete byte [esp + 0x1f]
call fcn.0045baa0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 4
call edi
mov eax, dword [ebx + 0x454]
test eax, eax
je 0x4f6568
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f6568
mov eax, dword [ebx + 0x454]
mov edx, dword [eax + 0x30]
add eax, 0x2c
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
lea eax, [esp + 0x5c]
push eax
call fcn.00486000
push ecx
mov dword [esp + 0x2d4], 6
mov eax, esp
mov dword [esp + 0x18], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x1c], esp
push ecx
lea esi, [esp + 0x94]
call fcn.004897f0
test eax, eax
je 0x4f68dc
cmp byte [esp + 0x1b], 0
mov byte [ebx + 0x50c], 1
lea esi, [esp + 0x1c]
jne 0x4f67a9
push str.IDS_REGISTER_POPUP
xor al, al
or ecx, 0xffffffff
call fcn.004acdf0
mov byte [esp + 0x2d0], 7
cmp dword [eax + 0x18], 8
jb 0x4f65e7
mov eax, dword [eax + 4]
jmp 0x4f65ea
add eax, 4
push 0
mov edx, eax
lea ecx, [esp + 0x60]
call fcn.00487f80
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d0], 6
call fcn.0040eb20
mov eax, 1
lea ecx, [esp + 0x5c]
call fcn.004886d0
push 0
push 0
lea esi, [esp + 0x64]
call fcn.00487e50
cmp eax, 1
jne 0x4f68dc
mov edx, dword [ebx + 0x38c]
mov eax, dword [edx + 4]
lea ecx, [ebx + 0x38c]
push 0
call eax
cmp al, 1
jne 0x4f68dc
cmp dword [ebx + 0x454], 0
jne 0x4f668b
push 0x5cc9fe
push 0x1e8
call fcn.0053dd33
add esp, 8
mov dword [esp + 0x14], eax
mov byte [esp + 0x2d0], 8
test eax, eax
je 0x4f667b
mov esi, eax
call fcn.004f92d0
jmp 0x4f667d
xor eax, eax
mov byte [esp + 0x2d0], 6
mov dword [ebx + 0x454], eax
mov eax, dword [ebx + 0x454]
test eax, eax
je 0x4f68dc
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4f68dc
mov edx, dword [ebx + 0x30]
push 2
push edx
call dword [sym.imp.USER32.dll_KillTimer]
call edi
mov edi, dword [ebx + 0x454]
push 0x82
mov dword [ebx + 0x4e4], eax
call fcn.00476280
push str.IDS_LOADING
xor al, al
or ecx, 0xffffffff
lea esi, [esp + 0x20]
call fcn.004acdf0
mov byte [esp + 0x2d0], 9
cmp dword [eax + 0x18], 8
mov dword [esp + 0x14], 4
jb 0x4f66fd
mov eax, dword [eax + 4]
jmp 0x4f6700
add eax, 4
mov ecx, dword [ebx + 0x454]
push ecx
mov edx, eax
call fcn.004e59d0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2d0], 6
call fcn.0040eb20
mov eax, dword [ebx + 0x454]
push ecx
mov byte [eax + 0x1dc], 1
lea eax, [ebx + 0x39c]
mov ecx, esp
mov dword [esp + 0x18], esp
call fcn.00472530
lea esi, [esp + 0x20]
call fcn.00492c10
mov edx, dword [eax]
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 8]
add esp, 4
mov dword [esp + 0x44], edx
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_CopyRect]
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esp + 0x54]
mov dword [eax], ecx
mov edx, dword [ebx + 0x30]
mov esi, dword [ebx + 0x454]
mov dword [esp + 0x1c], esp
push edx
add esi, 0x2c
call fcn.00505540
jmp 0x4f68dc
lea edi, [ebx + 0x54]
push 0
mov ecx, str.IDS_ERROR_DEVICE_FULL
mov eax, edi
call fcn.004acda0
mov byte [esp + 0x2d0], 0xa
cmp dword [eax + 0x18], 8
jb 0x4f67cd
mov eax, dword [eax + 4]
jmp 0x4f67d0
add eax, 4
push 0
mov edx, eax
lea ecx, [esp + 0x60]
call fcn.00487f80
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d0], 6
call fcn.0040eb20
mov eax, 1
lea ecx, [esp + 0x5c]
call fcn.004886d0
push 0
mov ecx, str.IDS_PURCHASE
lea esi, [esp + 0x20]
mov eax, edi
call fcn.004acda0
mov byte [esp + 0x2d0], 0xb
cmp dword [eax + 0x18], 8
jb 0x4f6821
mov eax, dword [eax + 4]
jmp 0x4f6824
add eax, 4
push 0
push 1
mov ecx, eax
lea edx, [esp + 0x64]
call fcn.004885f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d0], 6
call fcn.0040eb20
push 0
mov ecx, str.IDS_MANAGE_DEVICES
lea esi, [esp + 0x20]
mov eax, edi
call fcn.004acda0
mov byte [esp + 0x2d0], 0xc
cmp dword [eax + 0x18], 8
jb 0x4f6869
mov eax, dword [eax + 4]
jmp 0x4f686c
add eax, 4
push 0
push 2
mov ecx, eax
lea edx, [esp + 0x64]
call fcn.004885f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d0], 6
call fcn.0040eb20
push 0
push 0
lea esi, [esp + 0x64]
mov byte [esp + 0x22a], 1
call fcn.00487e50
cmp eax, 1
jne 0x4f68bb
xor eax, eax
cmp eax, str.DEVICE_FULL
je 0x4f68dc
push str.DEVICE_FULL
call fcn.004f8950
jmp 0x4f68dc
cmp eax, 2
jne 0x4f68dc
push 0
push ebx
call fcn.004f5b90
push 0
push 9
push 2
mov eax, ebx
call fcn.004e9b70
mov byte [0x5cedd6], 1
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x2d4], 0xffffffff
call fcn.004861d0
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 8