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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41da7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push esi
push edi
xor esi, esi
push esi
mov edi, ecx
push esi
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x30], edi
call sub.MFC71.DLL_CPen::CPen
lea eax, [edi + 0x15c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x94], eax
mov eax, dword [edi + 0xe4]
mov dword [esp + 0x8c], ecx
xor ecx, ecx
cmp eax, esi
mov dword [esp + 0xd4], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x90], edx
mov dword [esp + 0x20], ecx
jle 0x4156ce
lea ebx, [ebx]
cmp ecx, dword [esp + 0x90]
jne 0x4156bb
mov edx, dword [edi + 0xe0]
xor eax, eax
test edx, edx
mov dword [esp + 0x28], eax
jle 0x4156bb
cmp eax, dword [esp + 0x8c]
jne 0x4156a4
fild dword [esp + 0x28]
mov ebx, dword [edi + 0x118]
cmp ebx, dword [edi + 0x11c]
fmul dword [edi + 0xe8]
mov dword [esp + 0x14], ebx
fmul dword [0x41f854]
fstp dword [esp + 0x44]
fild dword [esp + 0x20]
fmul dword [edi + 0xec]
fmul dword [0x41f854]
fstp dword [esp + 0x48]
je 0x4156a4
lea esp, [esp]
mov eax, dword [esp + 0x94]
mov ecx, dword [ebx]
inc eax
cmp ecx, eax
jne 0x41568b
mov edx, dword [edi + 0x198]
mov ecx, dword [edi + 0x194]
mov eax, dword [edi + 0x19c]
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], ecx
mov ecx, dword [edi + 0x1a0]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x80]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x98]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x9c]
mov dword [eax + 8], ecx
lea esi, [edi + 0x128]
push ebx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.004104b0
test al, al
je 0x41568b
mov byte [esp + 0xf], 1
xor ebx, ebx
mov ecx, dword [edi + 8]
test ecx, ecx
mov dword [esp + 0x18], ebx
je 0x415687
mov eax, dword [edi + 0xc]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x415687
mov ecx, dword [edi + 0x150]
xor eax, eax
mov eax, ebx
mov edx, eax
shr edx, 5
lea edx, [ecx + edx*4]
and eax, 0x1f
mov ecx, 1
mov dword [esp + 0x1c], ecx
mov ecx, eax
mov eax, dword [esp + 0x1c]
shl eax, cl
test dword [edx], eax
je 0x415681
mov eax, ebx
cdq
mov ecx, 7
idiv ecx
lea ecx, [esp + 0x30]
mov edx, dword [edx*4 + 0x426040]
mov dword [esp + 0x78], edx
call sub.MFC71.DLL_CDC::CDC
mov ebx, dword [ebp + 8]
test ebx, ebx
mov byte [esp + 0xd4], 1
jne 0x4152bf
xor eax, eax
jmp 0x4152c2
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x34]
call sub.MFC71.DLL_CDC::Attach
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0x41ff54
mov eax, dword [edi + 0x140]
mov ecx, dword [edi + 0x13c]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
mov byte [esp + 0xe0], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x50]
call sub.MFC71.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x34]
push ecx
push edx
call sub.MFC71.DLL_CDC::SelectGdiObject
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x1dc]
mov ebx, dword [eax]
cmp ebx, eax
mov dword [esp + 0x1c], ebx
je 0x4155b4
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 8]
lea eax, [eax + ecx*4]
push eax
lea edx, [esp + 0xb0]
push edx
lea ecx, [ebx + 0x40]
call fcn.00411450
mov eax, dword [eax]
cmp eax, dword [ebx + 0x44]
je 0x415599
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
cmp ecx, eax
mov dword [esp + 0x98], eax
je 0x415599
lea ebx, [ecx + 0x10]
mov dword [esp + 0x2c], ebx
jmp 0x415380
fld dword [ebx - 0xc]
fdiv dword [edi + 0x130]
fadd dword [0x41f850]
call fcn.0041c780
test eax, eax
jle 0x4153a1
cmp eax, 1
mov dword [esp + 0x10], eax
jg 0x4153ad
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x40]
je 0x4153ee
lea ecx, [esp + 0x58]
mov dword [esp + 0x40], eax
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x5c]
call sub.MFC71.DLL_CGdiObject::Attach
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x34]
call sub.MFC71.DLL_CDC::SelectObject_1
mov dword [esp + 0x60], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x415580
mov eax, dword [ebx + 4]
sub eax, ecx
sar eax, 5
test eax, eax
jle 0x415580
mov dword [esp + 0x10], 0
mov dword [esp + 0x54], eax
mov eax, dword [ebx]
mov ecx, dword [esp + 0x10]
lea ebx, [ecx + eax]
lea edx, [esp + 0x44]
push edx
sub esp, 0x10
lea eax, [ebx + 0x10]
mov edx, dword [eax]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, esi
call fcn.004104b0
test al, al
je 0x415562
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x44]
push edx
push ebx
push eax
lea ecx, [esp + 0xbc]
push ecx
mov ecx, edi
call fcn.004067c0
fld dword [0x41f86c]
fdiv dword [esi + 8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
fld dword [esp + 0x64]
fsub dword [esi]
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fld dword [esp + 0x68]
fsub dword [esi + 4]
mov dword [esp + 0xa4], eax
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fstp st(0)
mov edi, dword [esi + 0x18]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x28]
add ebx, 8
push ebx
sub edi, eax
push edx
lea eax, [esp + 0xcc]
push eax
call fcn.004067c0
fld dword [0x41f86c]
fdiv dword [esi + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
fld dword [esp + 0x6c]
fsub dword [esi]
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fld dword [esp + 0x70]
fsub dword [esi + 4]
mov dword [esp + 0x9c], eax
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fstp st(0)
mov ebx, dword [esi + 0x18]
mov ecx, dword [esp + 0x9c]
sub ebx, eax
mov eax, dword [esp + 0xa4]
cmp ecx, eax
jne 0x415539
cmp ebx, edi
je 0x41555e
push edi
push eax
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x3c]
call sub.MFC71.DLL_CDC::MoveTo
mov eax, dword [esp + 0x9c]
push ebx
push eax
lea ecx, [esp + 0x38]
call sub.MFC71.DLL_CDC::LineTo
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x2c]
add ecx, 0x20
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x54], eax
jne 0x415414
mov eax, dword [esp + 0x98]
add ebx, 0x1c
lea ecx, [ebx - 0x10]
cmp ecx, eax
mov dword [esp + 0x2c], ebx
jne 0x415380
lea ecx, [esp + 0x1c]
call fcn.00406970
mov eax, dword [edi + 0x1dc]
mov ebx, dword [esp + 0x1c]
cmp ebx, eax
jne 0x415334
mov ebx, dword [esp + 0x18]
mov eax, dword [edi + 8]
shl ebx, 2
cmp dword [ebx + eax], 1
jne 0x4155d2
push 1
lea edx, [esp + 0x34]
push edx
mov ecx, edi
call fcn.004133e0
mov eax, dword [edi + 8]
mov eax, dword [ebx + eax]
cmp eax, dword [edi]
jne 0x4155ea
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.004133e0
mov al, byte [esp + 0xf]
mov edx, dword [esp + 0x34]
mov ecx, dword [edi + 0x13c]
test al, al
mov eax, dword [edi + 0x140]
je 0x41560e
mov byte [esp + 0xf], 0
push 0xcc0020
jmp 0x415613
push 0xee0086
push 0
push 0
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [eax + 4]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x415636
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x34]
push eax
push edx
call sub.MFC71.DLL_CDC::SelectGdiObject
mov eax, dword [esp + 0x60]
test eax, eax
je 0x415653
push eax
lea ecx, [esp + 0x34]
call sub.MFC71.DLL_CDC::SelectObject_1
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd4], 1
mov dword [esp + 0x4c], 0x41f858
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x30]
mov byte [esp + 0xd4], 0
call fcn.0041c36c
mov ebx, dword [esp + 0x18]
inc ebx
jmp 0x415241
mov ebx, dword [esp + 0x14]
mov eax, dword [edi + 0x11c]
add ebx, 0x14
cmp ebx, eax
mov dword [esp + 0x14], ebx
jne 0x4151b0
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xe0]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x415161
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 0xe4]
inc ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x415140
lea ecx, [esp + 0x58]
mov dword [esp + 0xd4], 0xffffffff
mov dword [esp + 0x58], 0x41f858
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8