Function at 0x4bf860
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 0x4bfb85
mov eax, ebx
call fcn.004bf4b8
test al, al
jne 0x4bfb85
cmp dword [ebx + 0xb4], 0
jg 0x4bfb85
cmp dword [ebx + 0x268], 0
je 0x4bf8ae
mov eax, dword [ebx + 0x24c]
cmp dword [eax + 0x290], 0
je 0x4bfb85
mov eax, dword [ebx + 0x24c]
cmp byte [eax + 0x277], 1
jne 0x4bf8db
mov eax, dword [0x5d1d9c]
cmp dword [eax], 0
je 0x4bf8db
mov eax, dword [0x5d1d9c]
mov eax, dword [eax]
cmp dword [eax + 0xb4], 0
jg 0x4bfb85
mov eax, dword [ebx + 0x22c]
and eax, 0x80
cmp eax, 0x80
je 0x4bfb85
cmp dword [ebx + 0x258], 0
jne 0x4bf956
mov ecx, dword [0x5d1c60]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x46c86c]
call fcn.0046f934
mov esi, eax
mov dword [ebx + 0x258], esi
mov dword [esi + 0xc], 0xffffff9e
mov dword [esi + 0x304], ebx
mov dword [esi + 0x300], 0x4d1140
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x260], eax
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x264], eax
mov eax, dword [ebx + 0x258]
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x38], 0x4d1144
xor edx, edx
call fcn.00471970
xor edx, edx
mov eax, dword [ebx + 0x258]
call fcn.00470b2c
cmp dword [ebx + 0x268], 0
je 0x4bfa0f
mov eax, ebx
call fcn.004cfa38
mov esi, eax
mov eax, ebx
call fcn.004cf300
imul esi, eax
inc esi
mov eax, dword [ebx + 0x24c]
call fcn.004706dc
mov ebp, eax
mov eax, ebx
call fcn.004cf20c
add ebp, eax
sub ebp, esi
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.004d26b0
sub ebp, dword [esp + 0x18]
mov eax, dword [ebx + 0x268]
call fcn.004bf20c
sub ebp, eax
mov eax, dword [ebx + 0x24c]
call fcn.00461e10
xor ecx, ecx
mov edx, dword [ebx + 0x268]
call fcn.004bf0dc
mov edi, eax
mov eax, dword [ebx + 0x24c]
call fcn.004706bc
add edi, eax
mov dword [esp + 0xc], edi
mov edi, dword [ebx + 0x24c]
mov eax, edi
call fcn.00461e10
xor ecx, ecx
mov edx, dword [ebx + 0x268]
call fcn.004bf0dc
add eax, eax
mov edx, dword [edi + 0x48]
sub edx, eax
mov dword [esp + 0x10], edx
test esi, esi
je 0x4bfa55
inc esi
jmp 0x4bfa55
mov eax, ebx
call fcn.004cf874
mov ecx, eax
mov eax, dword [ebx + 0x24c]
mov edx, dword [eax + 0x4c]
movzx eax, byte [esp]
call fcn.005278cc
mov esi, eax
mov eax, dword [ebx + 0x24c]
call fcn.004706dc
mov ebp, eax
mov eax, dword [ebx + 0x24c]
call fcn.004706bc
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x24c]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x10], eax
mov edi, 0x658
mov eax, dword [ebx + 0x24c]
cmp byte [eax + 0x277], 1
jne 0x4bfb16
mov eax, dword [0x5d1d9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x24c]
mov cl, 1
mov dl, 1
call fcn.004b0ef0
mov esi, eax
mov eax, dword [ebx + 0x24c]
call fcn.004706dc
add esi, eax
add esi, 2
push esi
mov eax, dword [0x5d1d9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x24c]
mov cl, 1
mov dl, 3
call fcn.004b0ef0
mov esi, eax
mov eax, dword [ebx + 0x24c]
call fcn.004706bc
add esi, eax
mov eax, esi
add eax, 2
lea ecx, [esp + 0x28]
pop edx
call fcn.00407ecc
lea edx, [esp + 0x24]
lea ecx, [esp + 1]
mov eax, dword [0x5d1d9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x24c]
call fcn.004596e4
push edi
mov eax, ebx
call fcn.004cf874
push eax
mov eax, dword [ebx + 0x24c]
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 + 0x258]
call fcn.00461e10
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4bfb85
push 0xffffffffffffffec
mov eax, dword [ebx + 0x24c]
call fcn.00461e10
push eax
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x4bfb53
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 + 0x258]
call fcn.00461e10
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4bfb85
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 + 0x24c]
call fcn.00461e10
push eax
call sub.user32.dll_GetWindow
push eax
mov eax, dword [ebx + 0x258]
call fcn.00461e10
push eax
call sub.user32.dll_SetWindowPos
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret