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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x574a0b
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
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 0x4f9218
cmp edi, 1
je 0x4f9218
cmp dword [ebx + 0x454], esi
jne 0x4f90a7
push 0x5cc9fe
push 0x1e8
call fcn.0053dd33
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x78], esi
cmp eax, esi
je 0x4f9097
mov esi, eax
call fcn.004f92d0
jmp 0x4f9099
xor eax, eax
mov dword [esp + 0x78], 0xffffffff
mov dword [ebx + 0x454], eax
mov eax, dword [ebx + 0x454]
test eax, eax
je 0x4f92af
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4f91ec
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.00476280
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4f912f
push str.IDS_LOADING
xor al, al
or ecx, 0xffffffff
lea esi, [esp + 0x54]
call fcn.004acdf0
mov ecx, 1
mov dword [esp + 0x78], ecx
cmp dword [eax + 0x18], 8
mov dword [esp + 0x14], ecx
jb 0x4f912c
mov eax, dword [eax + 4]
jmp 0x4f912f
add eax, 4
mov ecx, dword [ebx + 0x454]
push ecx
mov edx, eax
call fcn.004e59d0
mov dword [esp + 0x78], 0xffffffff
test byte [esp + 0x14], 1
je 0x4f9155
lea ecx, [esp + 0x50]
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 + 0x1c], esp
call fcn.00472530
lea esi, [esp + 0x40]
call fcn.00492c10
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.00505540
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 0x4f92af
mov eax, dword [ebx + 0x454]
push eax
call fcn.004e59d0
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 0x4f9259
cmp eax, 0x1f4
jae 0x4f9259
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 0x4f92af
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f92af
cmp edi, 1
jne 0x4f929b
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