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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43c650
push eax
mov eax, dword [esp + 0x20]
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax]
xor ebx, ebx
push edi
cmp dword [ecx - 8], ebx
je 0x418c6d
mov ecx, esi
call fcn.00416bf0
test eax, eax
je 0x418c6d
mov eax, dword [esi + 0x13c]
cmp eax, ebx
jl 0x418c6d
mov ecx, dword [esi + 0x138]
cmp eax, ecx
je 0x418c6d
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0x43ff18
xor edx, edx
cmp eax, ebx
setl dl
dec edx
mov dword [esp + 0x6c], ebx
and eax, edx
xor edx, edx
cmp ecx, ebx
setl dl
dec edx
and ecx, edx
mov edx, dword [esi + 0xf8]
push edx
push ebx
push ebx
push ecx
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0x48]
call fcn.00415920
mov ecx, dword [esp + 0x18]
mov ebp, dword [sym.imp.GDI32.dll_GetRegionData]
push ebx
push ebx
push ecx
call ebp
mov edi, eax
cmp edi, ebx
jg 0x4189d0
mov dword [esp + 0x14], 0x43fc94
mov dword [esp + 0x6c], 1
jmp 0x418c64
push edi
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x1c]
add esp, 4
mov ebx, eax
push ebx
push edi
push edx
mov dword [esp + 0x1c], ebx
call ebp
test eax, eax
je 0x418c4b
cmp eax, 1
je 0x418c4b
mov eax, dword [ebx + 8]
test eax, eax
ja 0x418a1e
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x14], 0x43fc94
mov dword [esp + 0x6c], 3
jmp 0x418c64
mov ebp, dword [esp + 0x84]
mov edi, dword [esp + 0x74]
push ebp
lea eax, [esp + 0x28]
push edi
push eax
mov ecx, esi
call fcn.00420150
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CDC::CDC
test edi, edi
mov byte [esp + 0x6c], 4
jne 0x418a5c
xor eax, eax
jmp 0x418a5f
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CDC::Attach
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x43fb94
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov edx, dword [edi + 4]
sub eax, ecx
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x6c], 5
push ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CGdiObject::Attach
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 sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esi + 0x98]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x28]
push ecx
sub eax, edi
push edx
push eax
push 0
push 0
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CDC::FillSolidRect_1
push 1
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CDC::SetBkMode
mov ecx, dword [esi + 0x88]
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CDC::SelectObject
cmp word [esi + 0x10e], 2
push 0
jne 0x418b21
mov edx, dword [esi + 0x670]
mov eax, dword [esp + 0x7c]
add edx, eax
lea eax, [esp + 0x30]
push edx
push eax
jmp 0x418b2f
mov ecx, dword [esi + 0x670]
lea edx, [esp + 0x30]
neg ecx
push ecx
push edx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CDC::SetViewportOrg
mov eax, dword [esp + 0x80]
push ebp
push eax
push 0
lea ecx, [esp + 0x40]
push 0
push ecx
mov ecx, esi
call fcn.00418410
mov eax, dword [ebx + 8]
mov dword [esp + 0x84], 0
test eax, eax
jbe 0x418c07
lea esi, [ebx + 0x24]
lea edx, [esi - 4]
test edx, edx
je 0x418bea
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov edi, dword [esi - 4]
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
mov edi, dword [esi]
mov ebp, dword [esi - 4]
sub edx, eax
lea eax, [esp + 0x34]
sub ecx, ebx
push 0xcc0020
neg eax
sbb eax, eax
push edi
and eax, dword [esp + 0x40]
push ebp
push eax
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x8c]
push ebx
push ecx
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x84]
mov ecx, dword [ebx + 8]
inc eax
add esi, 0x10
cmp eax, ecx
mov dword [esp + 0x84], eax
jb 0x418b6a
push ebx
call sub.MFC42.DLL_operatordelete
mov esi, 0x43fc94
add esp, 4
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 6
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], 0x43fc80
mov byte [esp + 0x6c], 0
call fcn.0043a526
mov dword [esp + 0x14], esi
mov dword [esp + 0x6c], 7
jmp 0x418c64
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x14], 0x43fc94
mov dword [esp + 0x6c], 2
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14