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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
cmp dword [0x54aed0], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
je 0x40faff
push 0
push 0
push 0xb
call fcn.004c2570
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x1c4], eax
mov eax, dword [eax + 0x18]
push eax
call fcn.004c1ccb
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x28]
push ecx
mov esi, eax
push edx
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
push eax
push ecx
lea ecx, [edi + 0x5c]
mov ebx, esi
call fcn.0040f430
mov eax, dword [edi + 0x60]
xor edx, edx
test eax, eax
setne dl
test eax, eax
mov dword [esp + 0x18], edx
je 0x40fb85
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
sub edx, dword [esp + 0x28]
test esi, esi
je 0x40fb6b
mov ebx, dword [esi + 4]
mov eax, dword [eax + 4]
push 0xcc0020
push 0
push 0
push ebx
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esp + 0x18], 0
je 0x40fb8f
mov esi, dword [edi + 0x60]
mov ebx, dword [esp + 0x14]
push 0
push esi
push ebx
add edi, 0x54
push edi
call fcn.00412320
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
test al, 4
mov edx, 3
mov dword [esp + 0xc], 0
lea ecx, [edx - 1]
je 0x40fbc4
mov dword [esp + 0xc], 1
jmp case.default.0x40fbdf
test al, 1
je 0x40fbce
mov dword [esp + 0xc], edx
jmp case.default.0x40fbdf
cmp dword [ebx + 0x1a4], 0
je case.default.0x40fbdf
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
jmp dword [eax*4 + 0x40fd68]
mov dword [esp + 0x10], 0
jmp 0x40fc06
mov ecx, ebx
mov dword [esp + 0x20], 0xffffffff
call fcn.004c2556
shr eax, 0x16
and eax, 1
mov dword [esp + 0x1c], eax
je 0x40fc3b
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
push 1
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.004c189d
mov eax, dword [esp + 0x1c]
movzx ecx, word [ebx + 0x80]
test cl, 1
je 0x40fc5c
test eax, eax
je 0x40fc57
shr ecx, 3
and ecx, 1
add ecx, ecx
add ecx, ecx
jmp 0x40fc59
xor ecx, ecx
mov dword [ebx + 0x78], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push esi
push ebx
mov ecx, edi
call eax
sub esp, 0x10
mov eax, esp
or ecx, 0xffffffff
mov dword [eax], ecx
or edx, ecx
or ebx, ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x1c]
or ecx, ecx
mov dword [eax + 0xc], ecx
xor eax, eax
push eax
push eax
push esi
push edi
xor ecx, ecx
call fcn.00412bd0
sub esp, 0x10
mov eax, esp
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
xor ebx, ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x38]
xor eax, eax
push eax
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x34]
push esi
push eax
push 1
push edi
xor eax, eax
call fcn.00412c30
mov ebx, dword [esp + 0x14]
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x14]
xor eax, eax
push eax
push ecx
mov ecx, ebx
call fcn.0040fd80
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
push esi
push ebx
mov ecx, edi
call eax
cmp dword [esp + 0x18], 0
je 0x40fd3b
mov ebx, dword [ebx + 0x60]
test ebx, ebx
je 0x40fd3b
mov eax, dword [esp + 0x34]
mov edx, dword [ebx + 4]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 4]
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esp + 0x1c], 0
je 0x40fd5e
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x40fd5e
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
push 0
mov ecx, esi
call fcn.004c189d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4