Function at 0x490ec4
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 0x4911a6
mov eax, ebx
call fcn.00490ae4
test al, al
jne 0x4911a6
cmp dword [ebx + 0x7c], 0
jg 0x4911a6
mov eax, dword [ebx + 0x1dc]
cmp byte [eax + 0x277], 1
jne 0x490f13
mov eax, dword [0x4f865c]
mov eax, dword [eax]
cmp dword [eax + 0x7c], 0
jg 0x4911a6
cmp dword [ebx + 0x1ec], 0
jne 0x490f78
mov ecx, dword [0x4f85c4]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x439ec0]
call fcn.0043ce0c
mov esi, eax
mov dword [ebx + 0x1ec], esi
mov dword [esi + 0xc], 0xffffff9e
mov dword [esi + 0x304], ebx
mov dword [esi + 0x300], 0x49fec4
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], 0x49fec8
xor edx, edx
call fcn.0043ee48
xor edx, edx
mov eax, dword [ebx + 0x1ec]
call fcn.0043e004
cmp dword [ebx + 0x1f8], 0
je 0x491030
mov eax, ebx
call fcn.0049e5b4
mov esi, eax
mov eax, ebx
call fcn.0049dd40
imul esi, eax
mov eax, dword [ebx + 0x1dc]
call fcn.0043dbb4
mov ebp, eax
mov eax, ebx
call fcn.0049da18
add ebp, eax
sub ebp, esi
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.004a1064
sub ebp, dword [esp + 0x18]
mov eax, dword [ebx + 0x1f8]
call fcn.00490868
sub ebp, eax
mov eax, dword [ebx + 0x1dc]
call fcn.00461ebc
xor ecx, ecx
mov edx, dword [ebx + 0x1f8]
call fcn.004907c0
mov edi, eax
mov eax, dword [ebx + 0x1dc]
call fcn.0043db94
add edi, eax
mov dword [esp + 0xc], edi
mov edi, dword [ebx + 0x1dc]
mov eax, edi
call fcn.00461ebc
xor ecx, ecx
mov edx, dword [ebx + 0x1f8]
call fcn.004907c0
add eax, eax
mov edx, dword [edi + 0x48]
sub edx, eax
mov dword [esp + 0x10], edx
test esi, esi
je 0x491076
inc esi
jmp 0x491076
mov eax, ebx
call fcn.0049e428
mov ecx, eax
mov eax, dword [ebx + 0x1dc]
mov edx, dword [eax + 0x4c]
movzx eax, byte [esp]
call fcn.004e3c0c
mov esi, eax
mov eax, dword [ebx + 0x1dc]
call fcn.0043dbb4
mov ebp, eax
mov eax, dword [ebx + 0x1dc]
call fcn.0043db94
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 0x491137
mov eax, dword [0x4f865c]
mov eax, dword [eax]
mov eax, dword [eax + 0x1dc]
mov cl, 1
mov dl, 1
call fcn.00486438
mov esi, eax
mov eax, dword [ebx + 0x1dc]
call fcn.0043dbb4
add esi, eax
add esi, 2
push esi
mov eax, dword [0x4f865c]
mov eax, dword [eax]
mov eax, dword [eax + 0x1dc]
mov cl, 1
mov dl, 3
call fcn.00486438
mov esi, eax
mov eax, dword [ebx + 0x1dc]
call fcn.0043db94
add esi, eax
mov eax, esi
add eax, 2
lea ecx, [esp + 0x28]
pop edx
call fcn.00417c24
lea edx, [esp + 0x24]
lea ecx, [esp + 1]
mov eax, dword [0x4f865c]
mov eax, dword [eax]
mov eax, dword [eax + 0x1dc]
call fcn.00459894
push edi
mov eax, ebx
call fcn.0049e428
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.00461ebc
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4911a6
push 0xffffffffffffffec
mov eax, dword [ebx + 0x1dc]
call fcn.00461ebc
push eax
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x491174
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.00461ebc
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4911a6
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.00461ebc
push eax
call sub.user32.dll_GetWindow
push eax
mov eax, dword [ebx + 0x1ec]
call fcn.00461ebc
push eax
call sub.user32.dll_SetWindowPos
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret