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

Disassembly:
push 0xffffffffffffffff
push 0x444630
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.00442be4
mov edi, dword [esp + 0x7c]
lea eax, [esp + 0x54]
push eax
call fcn.004ad0dd
push 0x18
push ecx
mov dword [esp + 0x80], ebx
call dword [sym.imp.gdi32.dll_GetObjectA]
mov esi, dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push ebx
call esi
push eax
lea ecx, [esp + 0x28]
call sub.mfc42.dll_CDC::Attach
cmp edi, ebx
jne 0x4055ee
xor eax, eax
jmp 0x4055f1
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x28]
push eax
push edx
call sub.mfc42.dll_CDC::SelectGdiObject
mov ebp, eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], ebp
call fcn.00442be4
lea ecx, [esp + 0x14]
call fcn.00403ec0
mov dword [esp + 0x14], 0x448b44
lea ecx, [esp + 0x1c]
call fcn.00403ec0
mov dword [esp + 0x1c], 0x448b1c
push ebx
mov byte [esp + 0x78], 3
call esi
push eax
lea ecx, [esp + 0x38]
call sub.mfc42.dll_CDC::Attach
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 sub.mfc42.dll_CGdiObject::Attach
push 0xf
call dword [sym.imp.user32.dll_GetSysColor]
push eax
call dword [sym.imp.gdi32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x18]
call sub.mfc42.dll_CGdiObject::Attach
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
and eax, esi
push eax
mov eax, dword [esp + 0x3c]
push eax
call sub.mfc42.dll_CDC::SelectGdiObject
mov edi, dword [esp + 0x18]
mov esi, eax
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x14]
neg eax
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], ebx
sbb eax, eax
mov dword [esp + 0x48], ebx
and eax, edi
mov dword [esp + 0x50], edx
push eax
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.user32.dll_FillRect]
mov edx, dword [esp + 0x38]
mov ebx, dword [sym.imp.gdi32.dll_GetPixel]
push 1
push 1
push edx
call ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x7c], eax
call sub.mfc42.dll_CGdiObject::DeleteObject
test esi, esi
je 0x4056ee
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x38]
push esi
push eax
call sub.mfc42.dll_CDC::SelectGdiObject
mov eax, dword [esp + 0x58]
xor edi, edi
test eax, eax
jle 0x405755
mov ebp, dword [sym.imp.gdi32.dll_SetPixel]
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
jle 0x405748
mov ecx, dword [esp + 0x28]
push esi
push edi
push ecx
call ebx
cmp eax, dword [esp + 0x7c]
je 0x40573f
push 0x3fd33333
push 0x33333333
push eax
call fcn.00402550
mov edx, dword [esp + 0x34]
add esp, 0xc
push eax
push esi
push edi
push edx
call ebp
mov eax, dword [esp + 0x5c]
inc esi
cmp esi, eax
jl 0x405713
mov ecx, dword [esp + 0x58]
inc edi
cmp edi, ecx
jl 0x40570d
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40575d
xor eax, eax
jmp 0x405760
mov eax, dword [ebp + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
call sub.mfc42.dll_CDC::SelectGdiObject
mov edi, sym.imp.mfc42.dll_CGdiObject::GetRuntimeClass_1
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 4
call sub.mfc42.dll_CGdiObject::DeleteObject
mov esi, sym.imp.mfc42.dll_CObject::GetRuntimeClass_1
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 5
call sub.mfc42.dll_CGdiObject::DeleteObject
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], esi
mov byte [esp + 0x74], 0
call sub.mfc42.dll_CDC::CDC
lea ecx, [esp + 0x24]
mov dword [esp + 0x74], 0xffffffff
call sub.mfc42.dll_CDC::CDC
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 4