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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42eda8
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00412a30
mov ecx, esi
mov ebx, eax
call fcn.00412a60
mov ebp, dword [esp + 0x6c]
test ebp, ebp
jne 0x412bc6
mov ebp, ebx
mov ecx, dword [esp + 0x70]
test ecx, ecx
jne 0x412bd0
mov ecx, eax
mov edi, dword [esp + 0x64]
test edi, edi
jl 0x412dd0
cmp edi, ebp
jge 0x412dd0
cmp ebp, ebx
jg 0x412dd0
mov edx, dword [esp + 0x68]
test edx, edx
jl 0x412dd0
cmp edx, ecx
jge 0x412dd0
cmp ecx, eax
jg 0x412dd0
mov eax, dword [esi + 4]
sub ecx, edx
sub ebp, edi
mov edi, ecx
test eax, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x6c], edi
je 0x412dd0
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CDC::CDC
mov eax, dword [esp + 0x58]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x50], ebx
jne 0x412c3c
xor eax, eax
jmp 0x412c3f
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CDC::Attach
mov esi, dword [esi + 4]
cmp esi, ebx
je 0x412c69
mov eax, dword [esp + 0x3c]
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
jmp 0x412c6d
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
lea eax, [ecx + ebp - 1]
cdq
idiv ebp
mov ecx, eax
lea eax, [edi + ebx - 1]
cdq
idiv edi
test ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
jle 0x412da4
mov esi, dword [esp + 0x5c]
mov edx, ebp
mov ecx, esi
mov edi, esi
neg edx
neg ecx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x34], edx
jmp 0x412cbd
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x412d89
lea edx, [edi + ebp]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edx
lea edx, [ecx + ebx]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x74]
add esi, edx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x6c]
neg esi
jmp 0x412ced
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x28]
add eax, ecx
cmp eax, edx
mov dword [esp + 0x30], eax
jle 0x412d05
mov dword [esp + 0x10], ebx
jmp 0x412d0d
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x2c]
lea eax, [edi + ebp]
cmp eax, edx
jle 0x412d2a
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x5c]
add edx, eax
mov eax, dword [esp + 0x74]
add edx, eax
jmp 0x412d2c
mov edx, ebp
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x38]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebp
mov ebp, dword [esp + 0x6c]
push ebp
mov ebp, dword [esp + 0x6c]
push ebp
push eax
mov eax, dword [esp + 0x20]
push eax
push edx
push ecx
mov ecx, dword [esp + 0x74]
push edi
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
add ebx, esi
dec eax
mov dword [esp + 0x14], eax
jne 0x412ce9
mov ebx, dword [esp + 0x78]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x70]
add edi, ebp
add eax, edx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x412cb9
mov eax, dword [esp + 0x20]
test eax, eax
je 0x412db8
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xffffffff
call fcn.0042b90c
mov eax, 1
jmp 0x412dd2
xor eax, eax
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 0x24