Function at 0x4f5290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov byte [esp], dl
mov ebx, eax
cmp byte [ebx + 0x78], 0
je 0x4f5572
mov eax, ebx
call fcn.004f4eb0
test al, al
jne 0x4f5572
cmp dword [ebx + 0x7c], 0
jg 0x4f5572
mov eax, dword [ebx + 0x1dc]
cmp byte [eax + 0x277], 1
jne 0x4f52df
mov eax, dword [0x639de4]
mov eax, dword [eax]
cmp dword [eax + 0x7c], 0
jg 0x4f5572
cmp dword [ebx + 0x1ec], 0
jne 0x4f5344
mov ecx, dword [0x639cd4]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4693a0]
call fcn.0046c388
mov esi, eax
mov dword [ebx + 0x1ec], esi
mov dword [esi + 0xc], 0xffffff9e
mov dword [esi + 0x304], ebx
mov dword [esi + 0x300], 0x504290
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x1f0], eax
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x1f4], eax
mov eax, dword [ebx + 0x1ec]
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x38], 0x504294
xor edx, edx
call fcn.0046e3c4
xor edx, edx
mov eax, dword [ebx + 0x1ec]
call fcn.0046d580
cmp dword [ebx + 0x1f8], 0
je 0x4f53fc
mov eax, ebx
call fcn.00502980
mov esi, eax
mov eax, ebx
call fcn.0050210c
imul esi, eax
mov eax, dword [ebx + 0x1dc]
call fcn.0046d130
mov ebp, eax
mov eax, ebx
call fcn.00501de4
add ebp, eax
sub ebp, esi
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.00505430
sub ebp, dword [esp + 0x18]
mov eax, dword [ebx + 0x1f8]
call fcn.004f4c34
sub ebp, eax
mov eax, dword [ebx + 0x1dc]
call fcn.0045e79c
xor ecx, ecx
mov edx, dword [ebx + 0x1f8]
call fcn.004f4b8c
mov edi, eax
mov eax, dword [ebx + 0x1dc]
call fcn.0046d110
add edi, eax
mov dword [esp + 0xc], edi
mov edi, dword [ebx + 0x1dc]
mov eax, edi
call fcn.0045e79c
xor ecx, ecx
mov edx, dword [ebx + 0x1f8]
call fcn.004f4b8c
add eax, eax
mov edx, dword [edi + 0x48]
sub edx, eax
mov dword [esp + 0x10], edx
test esi, esi
je 0x4f5442
inc esi
jmp 0x4f5442
mov eax, ebx
call fcn.005027f4
mov ecx, eax
mov eax, dword [ebx + 0x1dc]
mov edx, dword [eax + 0x4c]
movzx eax, byte [esp]
call fcn.005536d0
mov esi, eax
mov eax, dword [ebx + 0x1dc]
call fcn.0046d130
mov ebp, eax
mov eax, dword [ebx + 0x1dc]
call fcn.0046d110
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x1dc]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x10], eax
mov edi, 0x658
mov eax, dword [ebx + 0x1dc]
cmp byte [eax + 0x277], 1
jne 0x4f5503
mov eax, dword [0x639de4]
mov eax, dword [eax]
mov eax, dword [eax + 0x1dc]
mov cl, 1
mov dl, 1
call fcn.004eb62c
mov esi, eax
mov eax, dword [ebx + 0x1dc]
call fcn.0046d130
add esi, eax
add esi, 2
push esi
mov eax, dword [0x639de4]
mov eax, dword [eax]
mov eax, dword [eax + 0x1dc]
mov cl, 1
mov dl, 3
call fcn.004eb62c
mov esi, eax
mov eax, dword [ebx + 0x1dc]
call fcn.0046d110
add esi, eax
mov eax, esi
add eax, 2
lea ecx, [esp + 0x28]
pop edx
call fcn.0041b7b4
lea edx, [esp + 0x24]
lea ecx, [esp + 1]
mov eax, dword [0x639de4]
mov eax, dword [eax]
mov eax, dword [eax + 0x1dc]
call fcn.00456134
push edi
mov eax, ebx
call fcn.005027f4
push eax
mov eax, dword [ebx + 0x1dc]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [esp + 0x11]
push eax
mov eax, dword [esp + 0x11]
push eax
push 0
mov eax, dword [ebx + 0x1ec]
call fcn.0045e79c
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4f5572
push 0xffffffffffffffec
mov eax, dword [ebx + 0x1dc]
call fcn.0045e79c
push eax
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x4f5540
push edi
push esi
mov eax, dword [esp + 0x18]
push eax
push ebp
mov eax, dword [esp + 0x1c]
push eax
push 0xffffffffffffffff
mov eax, dword [ebx + 0x1ec]
call fcn.0045e79c
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4f5572
push edi
push esi
mov eax, dword [esp + 0x18]
push eax
push ebp
mov eax, dword [esp + 0x1c]
push eax
push 3
mov eax, dword [ebx + 0x1dc]
call fcn.0045e79c
push eax
call sub.user32.dll_GetWindow
push eax
mov eax, dword [ebx + 0x1ec]
call fcn.0045e79c
push eax
call sub.user32.dll_SetWindowPos
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret