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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57621d
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5c3678]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x54]
xor edi, edi
push eax
mov dword [esp + 0x14], edi
call fcn.00423e10
mov dword [esp + 0x280], edi
call fcn.00424330
push 0x40
lea ecx, [esp + 0x58]
push ecx
call fcn.00424110
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x10]
mov dword [ebx + 0x4e8], edx
push eax
lea ecx, [ebx + 0x19c]
lea edx, [esp + 0x80]
mov dword [ebx + 0x4e0], 0x300008
call fcn.00430530
mov eax, dword [eax]
cmp eax, 1
jne 0x4f5fc0
cmp dword [ebx + 0x454], edi
jne 0x4f5ea3
push 0x5cc9fe
push 0x1e8
call fcn.0053dd33
add esp, 8
mov dword [esp + 0x10], eax
mov byte [esp + 0x280], 1
cmp eax, edi
je 0x4f5e93
mov esi, eax
call fcn.004f92d0
jmp 0x4f5e95
xor eax, eax
mov byte [esp + 0x280], 0
mov dword [ebx + 0x454], eax
mov eax, dword [ebx + 0x454]
cmp eax, edi
je 0x4f6038
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4f6038
mov edx, dword [ebx + 0x30]
push 2
push edx
call dword [sym.imp.USER32.dll_KillTimer]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
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 + 0x28]
call fcn.004acdf0
mov byte [esp + 0x280], 2
cmp dword [eax + 0x18], 8
mov dword [esp + 0x10], 1
jb 0x4f5f19
mov edx, dword [eax + 4]
jmp 0x4f5f1c
lea edx, [eax + 4]
mov eax, dword [ebx + 0x454]
push eax
call fcn.004e59d0
lea ecx, [esp + 0x24]
mov dword [esp + 0x280], 0
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 + 0x14], esp
call fcn.00472530
lea esi, [esp + 0x28]
call fcn.00492c10
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
add esp, 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.USER32.dll_CopyRect]
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
mov dword [eax], 0
push ecx
mov eax, esp
lea edx, [esp + 0x4c]
mov dword [eax], edx
mov eax, dword [ebx + 0x30]
mov esi, dword [ebx + 0x454]
mov dword [esp + 0x18], esp
push eax
add esi, 0x2c
call fcn.00505540
jmp 0x4f6038
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebx + 0x454]
cmp eax, edi
je 0x4f5ff1
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f5ff1
mov eax, dword [ebx + 0x454]
mov edx, dword [eax + 0x30]
add eax, 0x2c
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
push edi
lea eax, [ebx + 0x54]
mov ecx, str.IDS_ERROR_INVALID_SERVICE
lea esi, [esp + 0x28]
call fcn.004acda0
mov esi, 8
mov byte [esp + 0x280], 5
cmp dword [eax + 0x18], esi
jb 0x4f601a
mov eax, dword [eax + 4]
jmp 0x4f601d
add eax, 4
push eax
mov edi, ebx
call fcn.004f96b0
cmp dword [esp + 0x3c], esi
jb 0x4f6038
mov eax, dword [esp + 0x28]
push eax
call fcn.0053c152
add esp, 4
lea edi, [esp + 0x54]
call fcn.004243a0
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 8