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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
jne 0x4f2bb1
mov eax, dword [ebx + 0x25c]
test byte [eax + 0x1c], 1
jne 0x4f2bb1
mov eax, dword [ebx + 0x25c]
call fcn.00450248
push eax
call sub.user32.dll_IsZoomed
test eax, eax
jne 0x4f283b
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x18]
and eax, 2
cmp eax, 2
je 0x4f283b
mov edi, dword [esi + 8]
cmp dword [edi + 8], 0
jne 0x4f25da
cmp dword [edi + 0xc], 0
je 0x4f283b
mov edi, dword [esi + 8]
cmp byte [0x5230bc], 0
je 0x4f2627
mov eax, dword [ebx + 0x25c]
cmp byte [eax + 0x22b], 0
jne 0x4f2627
cmp dword [ebx + 0x278], 0
jne 0x4f2627
mov eax, ebx
call fcn.004e1558
test al, al
je 0x4f2627
mov eax, dword [ebx + 0x25c]
call fcn.00450248
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4f2627
mov dl, 1
mov eax, ebx
call fcn.004efbac
cmp byte [ebx + 0x56], 0
je 0x4f27a3
mov eax, dword [ebx + 0x25c]
cmp byte [eax + 0x1a6], 0
je 0x4f27a3
mov edx, esp
mov eax, dword [ebx + 0x25c]
call fcn.004e14f8
mov ebp, dword [ebx + 0x278]
test ebp, ebp
je 0x4f274f
mov eax, ebp
call fcn.004dd6c4
mov edx, dword [ebx + 0x25c]
add eax, dword [edx + 0x48]
push eax
mov eax, dword [ebx + 0x278]
mov eax, dword [eax + 0x34]
call fcn.0050bd80
mov eax, dword [eax + 0xd4]
movsx eax, word [eax + 0x38]
pop edx
add edx, eax
push edx
lea eax, [edi + 8]
mov ecx, dword [ebx + 0x58]
mov edx, dword [esp + 0xc]
call fcn.004e1440
mov eax, dword [ebx + 0x278]
call fcn.004dd6c4
mov ebp, eax
mov eax, dword [ebx + 0x25c]
add ebp, dword [eax + 0x4c]
mov eax, dword [ebx + 0x278]
mov eax, dword [eax + 0x34]
call fcn.0050bd80
mov eax, dword [eax + 0xd4]
movsx eax, word [eax + 0x3c]
add ebp, eax
push ebp
lea eax, [edi + 0xc]
mov ecx, dword [ebx + 0x58]
mov edx, dword [esp + 0x10]
call fcn.004e1440
mov eax, dword [ebx + 0x278]
call fcn.004dd6c4
mov ebp, eax
neg ebp
mov eax, dword [ebx + 0x278]
mov eax, dword [eax + 0x34]
call fcn.0050bd80
mov eax, dword [eax + 0xd4]
movsx eax, word [eax + 0x36]
add ebp, eax
push ebp
lea eax, [edi + 8]
mov ecx, dword [ebx + 0x58]
mov edx, dword [esp + 4]
call fcn.004e1440
mov eax, dword [ebx + 0x278]
call fcn.004dd688
mov ebp, eax
neg ebp
mov eax, dword [ebx + 0x278]
mov eax, dword [eax + 0x34]
call fcn.0050bd80
mov eax, dword [eax + 0xd4]
movsx eax, word [eax + 0x3a]
sub ebp, eax
push ebp
lea eax, [edi + 0xc]
mov ecx, dword [ebx + 0x58]
mov edx, dword [esp + 8]
call fcn.004e1440
jmp 0x4f27a3
mov eax, dword [ebx + 0x25c]
mov eax, dword [eax + 0x48]
push eax
lea eax, [edi + 8]
mov ecx, dword [ebx + 0x58]
mov edx, dword [esp + 0xc]
call fcn.004e1440
mov eax, dword [ebx + 0x25c]
mov eax, dword [eax + 0x4c]
push eax
lea eax, [edi + 0xc]
mov ecx, dword [ebx + 0x58]
mov edx, dword [esp + 0x10]
call fcn.004e1440
push 0
lea eax, [edi + 8]
mov ecx, dword [ebx + 0x58]
mov edx, dword [esp + 4]
call fcn.004e1440
push 0
lea eax, [edi + 0xc]
mov ecx, dword [ebx + 0x58]
mov edx, dword [esp + 8]
call fcn.004e1440
mov eax, dword [ebx + 0x23c]
test ah, 0x60
je 0x4f283b
push esi
lea esi, [ebx + 0xe0]
lea edi, [esp + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
and eax, 0x2000
cmp eax, 0x2000
jne 0x4f2815
mov edx, dword [ebx + 0x25c]
mov edx, dword [edx + 0x44]
mov eax, dword [esi + 8]
cmp edx, dword [eax + 0xc]
jne 0x4f27fc
mov edx, dword [ebx + 0xe4]
mov dword [eax + 0xc], edx
mov edx, dword [ebx + 0x25c]
mov ecx, dword [ebx + 0xe4]
sub ecx, dword [edx + 0x44]
sub dword [eax + 0x14], ecx
jmp 0x4f280b
mov edx, dword [ebx + 0xe4]
add edx, dword [ebx + 0xec]
mov dword [eax + 0x14], edx
and dword [ebx + 0x23c], 0xffffdfff
mov eax, dword [ebx + 0x23c]
and eax, 0x4000
cmp eax, 0x4000
jne 0x4f2831
and dword [ebx + 0x23c], 0xffffbfff
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4f2bbf
mov eax, dword [ebx + 0x50]
call fcn.0050bd80
test eax, eax
je 0x4f2bb1
call fcn.004c2be0
test al, al
je 0x4f2bb1
cmp byte [ebx + 0x78], 0
je 0x4f2bb1
cmp byte [ebx + 0x232], 0
jne 0x4f2bb1
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x18]
and edx, 0x80
cmp edx, 0x80
je 0x4f2890
cmp dword [eax + 8], 0xffff8300
jne 0x4f2a35
mov eax, dword [ebx + 0x50]
cmp dword [eax + 0x44], 0
je 0x4f2a35
mov eax, dword [ebx + 0x25c]
call fcn.00450248
push eax
call sub.user32.dll_IsIconic
test eax, eax
jne 0x4f29eb
mov eax, dword [ebx + 0x50]
call fcn.0050bd80
cmp byte [eax + 0xd0], 2
je 0x4f2bb1
cmp byte [ebx + 0x95], 0
je 0x4f2bb1
mov eax, dword [ebx + 0x50]
call fcn.0050bd80
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0x10]
cmp byte [eax + 6], 0
je 0x4f2bb1
mov eax, dword [ebx + 0x23c]
and eax, 0x200
cmp eax, 0x200
je 0x4f2bb1
mov eax, dword [ebx + 0x25c]
cmp dword [eax + 0x30], 0
jne 0x4f2bb1
or dword [ebx + 0x23c], 0x200
mov dl, 1
mov eax, ebx
call fcn.004dd2e8
mov edx, dword [ebx + 0x50]
mov dword [edx + 0x44], eax
mov ebp, dword [ebx + 0x278]
test ebp, ebp
je 0x4f29d0
mov byte [ebp + 0x28], 1
mov eax, dword [ebx + 0x25c]
cmp byte [eax + 0x2e0], 0
je 0x4f2959
movzx edi, byte [eax + 0x2e1]
jmp 0x4f295e
mov edi, 0xff
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x278]
call fcn.004f852c
push eax
mov eax, dword [ebp + 0x18]
call fcn.00450248
push eax
call sub.user32.dll_SetWindowRgn
push 0
mov eax, dword [ebx + 0x278]
mov eax, dword [eax + 0x18]
call fcn.00450248
mov edx, dword [ebx + 0x50]
mov edx, dword [edx + 0x44]
mov ecx, edi
call fcn.004dc4ec
push 0x65b
push 0
push 0
mov eax, dword [ebx + 0x278]
mov edi, dword [eax + 0x18]
mov eax, dword [edi + 0x44]
push eax
mov eax, dword [edi + 0x40]
push eax
push 0
mov eax, dword [ebx + 0x278]
mov eax, dword [eax + 0x18]
call fcn.00450248
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4f2bb1
mov eax, dword [ebx + 0x25c]
call fcn.00450248
call fcn.004dc60c
mov dword [ebx + 0xd8], eax
jmp 0x4f2bb1
mov eax, dword [ebx + 0x25c]
cmp byte [eax + 0x22b], 1
je 0x4f2bb1
mov eax, dword [esi + 8]
cmp dword [eax + 8], 0xffff8300
jne 0x4f2bb1
mov edx, esi
mov eax, dword [ebx + 0x24c]
call dword [ebx + 0x248]
mov dl, 1
mov eax, dword [ebx + 0x25c]
call fcn.00463fec
mov eax, ebx
call fcn.004dc80c
jmp 0x4f2bbf
mov eax, dword [ebx + 0x278]
test eax, eax
je 0x4f2bb1
cmp dword [eax + 0x18], 0
je 0x4f2bb1
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
je 0x4f2bb1
mov eax, dword [esi + 8]
cmp dword [eax + 0x14], 0
je 0x4f2bb1
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x18]
and eax, 0x10
cmp eax, 0x10
jne 0x4f2bb1
mov eax, dword [ebx + 0x23c]
and eax, 0x100
cmp eax, 0x100
je 0x4f2bb1
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x18]
and eax, 2
cmp eax, 2
je 0x4f2bb1
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x18]
and eax, 1
cmp eax, 1
je 0x4f2bb1
mov edi, dword [esi + 8]
mov eax, dword [edi + 0x10]
cmp eax, dword [ebx + 0x210]
jl 0x4f2ad0
mov eax, dword [edi + 0x14]
cmp eax, dword [ebx + 0x214]
jge 0x4f2bb1
cmp dword [ebx + 0x234], 0
je 0x4f2afc
mov ebp, dword [ebx + 0x234]
mov eax, dword [ebp + 0x80]
cmp byte [eax + 6], 0
jne 0x4f2bb1
mov eax, dword [ebp + 0x7c]
cmp byte [eax + 6], 0
jne 0x4f2bb1
mov eax, dword [ebx + 0x278]
mov eax, dword [eax + 0x18]
call fcn.0045054c
test al, al
je 0x4f2bb1
mov eax, dword [ebx + 0x25c]
call fcn.00450248
push eax
call sub.user32.dll_IsIconic
test eax, eax
jne 0x4f2b9b
or dword [ebx + 0x23c], 1
push 0
mov edi, dword [esi + 8]
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
mov eax, dword [ebx + 0x278]
call fcn.004f852c
push eax
mov eax, dword [ebx + 0x278]
mov eax, dword [eax + 0x18]
call fcn.00450248
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [ebx + 0x278]
cmp dword [eax + 0x18], 0
je 0x4f2b92
push 0x61b
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x278]
mov eax, dword [eax + 0x18]
call fcn.00450248
push eax
mov eax, dword [ebx + 0x25c]
call fcn.00450248
push eax
call sub.user32.dll_SetWindowPos
and dword [ebx + 0x23c], 0xfffffffe
jmp 0x4f2bb1
mov eax, dword [ebx + 0x50]
mov byte [eax + 0x39], 1
mov cl, 0xff
mov dl, 1
mov eax, dword [ebx + 0x278]
call fcn.004f74a0
mov edx, esi
mov eax, dword [ebx + 0x24c]
call dword [ebx + 0x248]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret