Function at 0x4fa3b0
Capabilities:
Access peb ldr_data
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57617b
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x5c5678]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x14], esi
cmp edi, esi
je 0x4fa5a8
cmp edi, 1
je 0x4fa5a8
cmp dword [ebx + 0x454], esi
jne 0x4fa437
push 0x5cea3e
push 0x1e8
call fcn.0053f363
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x78], esi
cmp eax, esi
je 0x4fa427
mov esi, eax
call fcn.004fa660
jmp 0x4fa429
xor eax, eax
mov dword [esp + 0x78], 0xffffffff
mov dword [ebx + 0x454], eax
mov eax, dword [ebx + 0x454]
test eax, eax
je 0x4fa63f
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4fa57c
mov ecx, dword [ebx + 0x30]
push 2
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
cmp edi, 3
mov edi, dword [ebx + 0x454]
setne dl
mov dword [ebx + 0x4e4], eax
dec edx
and edx, 0x82
push edx
call fcn.00477b20
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4fa4bf
push str.IDS_LOADING
xor al, al
or ecx, 0xffffffff
lea esi, [esp + 0x54]
call fcn.004adb10
mov ecx, 1
mov dword [esp + 0x78], ecx
cmp dword [eax + 0x18], 8
mov dword [esp + 0x14], ecx
jb 0x4fa4bc
mov eax, dword [eax + 4]
jmp 0x4fa4bf
add eax, 4
mov ecx, dword [ebx + 0x454]
push ecx
mov edx, eax
call fcn.004e6dc0
mov dword [esp + 0x78], 0xffffffff
test byte [esp + 0x14], 1
je 0x4fa4e5
lea ecx, [esp + 0x50]
call fcn.0040f400
mov eax, dword [ebx + 0x454]
push ecx
mov byte [eax + 0x1dc], 1
lea eax, [ebx + 0x39c]
mov ecx, esp
mov dword [esp + 0x1c], esp
call fcn.00473d80
lea esi, [esp + 0x40]
call fcn.00493db0
mov edx, dword [eax]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 8]
add esp, 4
mov dword [esp + 0x24], edx
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_CopyRect]
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esp + 0x34]
mov dword [eax], ecx
mov edx, dword [ebx + 0x30]
mov esi, dword [ebx + 0x454]
mov dword [esp + 0x20], esp
push edx
add esi, 0x2c
call fcn.00506940
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4fa63f
mov eax, dword [ebx + 0x454]
push eax
call fcn.004e6dc0
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x4e4]
cmp edi, esi
jne 0x4fa5e9
cmp eax, 0x1f4
jae 0x4fa5e9
mov edx, dword [ebx + 0x30]
push esi
mov ecx, 0x1f4
sub ecx, eax
push ecx
push 2
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0x454]
cmp eax, esi
je 0x4fa63f
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4fa63f
cmp edi, 1
jne 0x4fa62b
mov ecx, dword [ebx + 0x454]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0x454]
mov ecx, dword [eax + 0x30]
push esi
push esi
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8