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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41d9b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push esi
push edi
push 0xff
mov ebx, ecx
push 2
push 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x38], ebx
call sub.MFC71.DLL_CPen::CPen
push 0xff00
push 2
push 0
lea ecx, [esp + 0x54]
mov dword [esp + 0xc0], 0
call sub.MFC71.DLL_CPen::CPen
lea eax, [ebx + 0x15c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0xe4]
mov dword [esp + 0x68], ecx
xor ecx, ecx
test eax, eax
mov byte [esp + 0xb4], 1
mov dword [esp + 0x6c], edx
mov dword [esp + 0x24], ecx
jle 0x413389
nop
cmp ecx, dword [esp + 0x6c]
jne 0x413376
mov edx, dword [ebx + 0xe0]
xor eax, eax
test edx, edx
mov dword [esp + 0x1c], eax
jle 0x413376
mov edi, edi
cmp eax, dword [esp + 0x68]
jne 0x41335f
fild dword [esp + 0x1c]
mov edi, dword [ebx + 0x118]
cmp edi, dword [ebx + 0x11c]
fmul dword [ebx + 0xe8]
mov dword [esp + 0x10], edi
fmul dword [0x41f854]
fstp dword [esp + 0x30]
fild dword [esp + 0x24]
fmul dword [ebx + 0xec]
fmul dword [0x41f854]
fstp dword [esp + 0x34]
je 0x41335f
mov eax, dword [esp + 0x70]
mov ecx, dword [edi]
inc eax
cmp ecx, eax
jne 0x413346
mov edx, dword [ebx + 0x198]
mov ecx, dword [ebx + 0x194]
mov eax, dword [ebx + 0x19c]
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 0x1a0]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], ecx
lea esi, [ebx + 0x128]
push edi
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.004104b0
test al, al
je 0x413346
xor edx, edx
mov ecx, dword [ebx + 8]
test ecx, ecx
mov dword [esp + 0x28], edx
je 0x413346
mov eax, dword [ebx + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x413346
mov ecx, dword [ebx + 0x150]
xor eax, eax
mov eax, edx
mov edx, eax
shr edx, 5
and eax, 0x1f
lea edx, [ecx + edx*4]
mov ecx, eax
mov eax, dword [edx]
mov edi, 1
shl edi, cl
test eax, edi
je 0x413338
mov eax, dword [ebx + 0x1dc]
mov edi, dword [eax]
cmp edi, eax
mov dword [esp + 0x38], edi
je 0x413338
jmp 0x413100
mov ecx, dword [esp + 0x28]
mov eax, dword [ebx + 8]
shl ecx, 2
add eax, ecx
push eax
lea eax, [esp + 0x90]
push eax
lea ecx, [edi + 0x40]
call fcn.00411450
mov eax, dword [eax]
cmp eax, dword [edi + 0x44]
je 0x41331f
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov al, byte [edi + 0xad]
test al, al
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3c], edx
jne 0x413152
mov cl, byte [edi + 0xae]
test cl, cl
je 0x41331f
test al, al
je 0x413159
lea eax, [esp + 0x40]
push eax
jmp 0x41315e
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC71.DLL_CDC::SelectObject_1
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x3c]
je 0x41331f
add edi, 0x10
mov dword [esp + 0x18], edi
jmp 0x413180
mov ecx, dword [edi]
test ecx, ecx
je 0x413309
mov eax, dword [edi + 4]
sub eax, ecx
sar eax, 5
test eax, eax
jle 0x413309
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov ebx, dword [edi]
add ebx, ecx
lea edx, [esp + 0x30]
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 + 0x24]
push ecx
mov ecx, esi
call fcn.004104b0
test al, al
je 0x4132eb
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push ebx
push eax
lea ecx, [esp + 0xac]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.004067c0
fld dword [0x41f86c]
fdiv dword [esi + 8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
fld dword [esp + 0x74]
fsub dword [esi]
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fld dword [esp + 0x78]
fsub dword [esi + 4]
mov dword [esp + 0x84], eax
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fstp st(0)
mov edi, dword [esi + 0x18]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
add ebx, 8
push ebx
sub edi, eax
push edx
lea eax, [esp + 0xa4]
push eax
call fcn.004067c0
fld dword [0x41f86c]
fdiv dword [esi + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
fld dword [esp + 0x60]
fsub dword [esi]
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fld dword [esp + 0x64]
fsub dword [esi + 4]
mov dword [esp + 0x7c], eax
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fstp st(0)
mov ebx, dword [esi + 0x18]
mov ecx, dword [esp + 0x7c]
sub ebx, eax
mov eax, dword [esp + 0x84]
cmp ecx, eax
jne 0x4132c6
cmp ebx, edi
je 0x4132e7
push edi
mov edi, dword [ebp + 8]
push eax
lea eax, [esp + 0x98]
push eax
mov ecx, edi
call sub.MFC71.DLL_CDC::MoveTo
mov eax, dword [esp + 0x7c]
push ebx
push eax
mov ecx, edi
call sub.MFC71.DLL_CDC::LineTo
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add ecx, 0x20
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
jne 0x4131a6
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
add edi, 0x1c
lea ecx, [edi - 0x10]
cmp ecx, eax
mov dword [esp + 0x18], edi
jne 0x413180
lea ecx, [esp + 0x38]
call fcn.00406970
mov edi, dword [esp + 0x38]
cmp edi, dword [ebx + 0x1dc]
jne 0x413100
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
inc edx
jmp 0x41309c
mov eax, dword [ebx + 0x11c]
add edi, 0x14
cmp edi, eax
mov dword [esp + 0x10], edi
jne 0x413028
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0xe0]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x412fe0
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx + 0xe4]
inc ecx
cmp ecx, eax
mov dword [esp + 0x24], ecx
jl 0x412fc0
mov esi, 0x41f858
lea ecx, [esp + 0x48]
mov byte [esp + 0xb4], 0
mov dword [esp + 0x48], esi
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x40]
mov dword [esp + 0xb4], 0xffffffff
mov dword [esp + 0x40], esi
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0xac]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8