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

Disassembly:
push 0xffffffffffffffff
push 0x43f2a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.004350de
mov edi, dword [esp + 0x7c]
lea eax, [esp + 0x54]
push eax
xor ebx, ebx
mov ecx, dword [edi + 4]
push 0x18
push ecx
mov dword [esp + 0x80], ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call esi
push eax
lea ecx, [esp + 0x28]
call fcn.00435195
cmp edi, ebx
jne 0x4053fe
xor eax, eax
jmp 0x405401
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x28]
push eax
push edx
call fcn.004352d6
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], eax
call fcn.004350de
lea ecx, [esp + 0x14]
call fcn.00404aa0
mov dword [esp + 0x14], vtable.CBrush.0
lea ecx, [esp + 0x1c]
call fcn.00404aa0
mov dword [esp + 0x1c], 0x442700
push ebx
mov byte [esp + 0x78], 3
call esi
push eax
lea ecx, [esp + 0x38]
call fcn.00435195
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x20]
call fcn.00435c18
push 0xc0c0c0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x18]
call fcn.00435c18
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.004352d6
mov edx, dword [esp + 0x5c]
mov esi, eax
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x14]
neg eax
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x18]
sbb eax, eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x38]
and eax, edx
push eax
lea eax, [esp + 0x48]
push eax
push ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esp + 0x38]
mov ebp, dword [sym.imp.GDI32.dll_GetPixel]
push 1
push 1
push edx
call ebp
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00435c6f
test esi, esi
je 0x4054f6
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x38]
push esi
push eax
call fcn.004352d6
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x58]
xor edi, edi
test eax, eax
jle 0x405552
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
jle 0x405549
mov ecx, dword [esp + 0x28]
push esi
push edi
push ecx
call ebp
cmp eax, ebx
jne 0x405540
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x28]
push edx
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x5c]
inc esi
cmp esi, eax
jl 0x405521
mov ecx, dword [esp + 0x58]
inc edi
cmp edi, ecx
jl 0x40551b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40555d
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.004352d6
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 4
call fcn.00435c6f
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 5
call fcn.00435c6f
lea ecx, [esp + 0x34]
mov byte [esp + 0x74], 0
call fcn.00435213
lea ecx, [esp + 0x24]
mov dword [esp + 0x74], 0xffffffff
call fcn.00435213
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 4