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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b0d08
push eax
mov dword fs:[0], esp
sub esp, 0x58
lea eax, [esp + 0x20]
push ebp
mov ebp, ecx
push edi
push eax
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x44]
xor edi, edi
cmp eax, edi
je 0x409b10
mov ecx, dword [eax + 4]
cmp ecx, edi
je 0x409b10
lea edx, [esp + 0x48]
mov eax, ecx
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x50]
mov eax, 0x20
cmp ecx, eax
jl 0x409930
cmp dword [esp + 0x4c], eax
jl 0x409930
mov edx, dword [esp + 0x70]
push edi
push edi
push edi
lea ecx, [esp + 0x34]
push 4
push ecx
mov ecx, dword [ebp + 0x44]
push edx
call fcn.0045cdd0
pop edi
pop ebp
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 4
lea ecx, [esp + 0x18]
call fcn.00454da4
mov eax, dword [esp + 0x70]
mov dword [esp + 0x68], edi
cmp eax, edi
jne 0x409949
xor eax, eax
jmp 0x40994c
mov eax, dword [eax + 4]
push ebx
push esi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CDC::Attach
mov ecx, dword [esp + 0x54]
mov eax, 0x80
cdq
idiv ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0x4bd52c
mov ebx, eax
mov eax, 0x80
imul ebx, ecx
mov ecx, dword [esp + 0x58]
cdq
idiv ecx
mov esi, eax
imul esi, ecx
mov eax, dword [esp + 0x62]
mov ecx, dword [esp + 0x60]
and eax, 0xffff
and ecx, 0xffff
push edi
push eax
push ecx
push esi
push ebx
mov byte [esp + 0x84], 1
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [esp + 0x28]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [ebp + 0x44]
push edi
push edi
mov dword [esp + 0x1c], eax
push edi
lea edx, [esp + 0x4c]
push 4
lea eax, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], esi
call fcn.0045cdd0
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
cmp ebp, eax
jge 0x409aa4
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
cmp edi, eax
jge 0x409a98
mov ecx, dword [esp + 0x78]
lea eax, [ebx + ebp]
mov dword [esp + 0x48], eax
lea eax, [edi + esi]
mov edx, dword [ecx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], edi
call dword [edx + 0x60]
test eax, eax
je 0x409a88
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x78]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, edx
mov edx, dword [ecx + 4]
push 0
push eax
push esi
push ebx
push edi
push ebp
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
cmp edi, eax
jl 0x409a32
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add ebp, ebx
cmp ebp, ecx
jl 0x409a2e
xor edi, edi
mov eax, dword [esp + 0x14]
pop esi
cmp eax, edi
pop ebx
je 0x409ab1
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x1c]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::DeleteDC
mov dword [esp + 0x10], 0x4bd504
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0x4bd4f0
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
pop edi
pop ebp
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 4
mov ecx, dword [ebp + 0x20]
push edi
push edi
push 0x111f
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x28]
push eax
push edx
call sub.MFC42.DLL_CDC::FillSolidRect
mov ecx, dword [esp + 0x60]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x64
ret 4