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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41d8df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x74]
push edi
xor edi, edi
cmp eax, edi
je 0x411439
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov eax, dword [esi + 0x13c]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x98], eax
push edi
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
mov dword [esp + 0xc4], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa4], 0x19
call sub.MFC71.DLL_CDC::FillSolidRect
mov edx, dword [ebx + 4]
push 0xf
push 9
lea ecx, [esp + 0x98]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [ebx]
push 0xc8c800
mov ecx, ebx
call dword [eax + 0x38]
lea ecx, [esi + 0x15c]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x7c], ecx
xor ecx, ecx
cmp eax, edi
mov dword [esp + 0x74], edx
mov dword [esp + 0x34], ecx
jle 0x41142f
lea ecx, [ecx]
cmp ecx, dword [esp + 0x78]
jne 0x41141c
mov edx, dword [esi + 0xe0]
xor eax, eax
test edx, edx
mov dword [esp + 0x30], eax
jle 0x41141c
mov edi, edi
cmp eax, dword [esp + 0x74]
jne 0x411405
fild dword [esp + 0x30]
mov edi, dword [esi + 0x118]
cmp edi, dword [esi + 0x11c]
fmul dword [esi + 0xe8]
mov dword [esp + 0x14], edi
fmul dword [0x41f854]
fstp dword [esp + 0x50]
fild dword [esp + 0x34]
fmul dword [esi + 0xec]
fmul dword [0x41f854]
fstp dword [esp + 0x54]
je 0x411405
mov eax, dword [esp + 0x7c]
mov ecx, dword [edi]
inc eax
cmp ecx, eax
jne 0x4113ec
mov eax, dword [esi + 0x198]
mov edx, dword [esi + 0x194]
mov ecx, dword [esi + 0x19c]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], edx
mov edx, dword [esi + 0x1a0]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x8c], edx
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x98]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xa0], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0xa0]
lea ecx, [esi + 0x128]
push edi
mov dword [edx + 0xc], eax
call fcn.004104b0
test al, al
je 0x4113ec
xor edi, edi
mov eax, 0x420cb4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], eax
push 0xffff
push 2
push edi
mov byte [esp + 0xc8], 2
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x3c]
call sub.MFC71.DLL_CGdiObject::Attach
mov edx, dword [ebx]
push 5
mov ecx, ebx
call dword [edx + 0x2c]
fld dword [0x420d48]
fdiv dword [esi + 0x130]
fadd dword [0x41f850]
call fcn.0041c780
cmp eax, edi
mov ecx, eax
jg 0x411012
mov ecx, 1
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jne 0x411028
mov ecx, 4
jmp 0x411035
cmp ecx, 0x190
jle 0x411035
mov ecx, 0x190
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
shl edi, 2
mov eax, edi
neg eax
mov dword [esp + 0x18], eax
mov eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
neg eax
mov dword [esp + 0x28], eax
lea eax, [eax + eax*2]
mov dword [esp + 0x2c], eax
mov eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
lea ecx, [eax + eax*2]
lea edx, [esp + 0x38]
mov dword [esp + 0x24], ecx
push edx
mov ecx, ebx
mov dword [esp + 0x24], eax
call sub.MFC71.DLL_CDC::SelectObject_1
mov dword [esp + 0x70], eax
mov al, byte [esi + 0x146]
test al, al
je 0x411237
cmp dword [esi + 0x94], 2
jg 0x4110ac
mov dword [esp + 0x10], 1
jmp 0x4110b2
mov eax, dword [esi]
mov dword [esp + 0x10], eax
fld dword [esi + 0x88]
call fcn.0041c780
fld dword [esi + 0x84]
push eax
call fcn.0041c780
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x9c]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push 0x420d14
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
mov eax, dword [ebx]
add esp, 0x1c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ebx, dword [ebp + 8]
push eax
mov eax, dword [esp + 0x18]
push 3
push 2
mov ecx, ebx
call dword [eax + 0x64]
lea edx, [esp + 0x50]
push edx
lea eax, [esi + 0x84]
push eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0xac]
push ecx
mov ecx, esi
call fcn.004067c0
fld dword [0x41f86c]
fdiv dword [esi + 0x130]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
fld dword [esp + 0x68]
fsub dword [esi + 0x128]
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fld dword [esp + 0x6c]
fsub dword [esi + 0x12c]
mov dword [esp + 0x40], eax
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fstp st(0)
mov ecx, dword [esi + 0x140]
sub ecx, eax
mov al, byte [esi + 0x144]
test al, al
je 0x4111a5
cmp dword [esi + 0x94], 2
jle 0x4111ae
test al, al
jne 0x4111cb
cmp dword [esi + 0x94], 2
jle 0x4111cb
mov edx, dword [esp + 0x14]
mov al, byte [edx + 4]
test al, al
push ecx
jne 0x4111c4
mov eax, dword [esp + 0x44]
push eax
jmp 0x411390
mov edx, dword [esp + 0x44]
push edx
jmp 0x4111dc
mov edx, dword [esp + 0x14]
mov al, byte [edx + 4]
test al, al
push ecx
jne 0x41122e
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x30]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x44]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov dword [edx + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x40]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], edi
push ebx
mov dword [ecx + 0xc], edi
call fcn.00410060
add esp, 0x3c
jmp 0x4113ad
mov edx, dword [esp + 0x44]
jmp 0x41138f
cmp dword [esi + 0x98], 2
jg 0x41124a
mov dword [esp + 0x10], 1
jmp 0x411250
mov edx, dword [esi]
mov dword [esp + 0x10], edx
fld dword [esi + 0x90]
call fcn.0041c780
fld dword [esi + 0x8c]
push eax
call fcn.0041c780
mov ecx, dword [esi + 0xa0]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x80]
push eax
push ecx
push edx
lea eax, [esp + 0x30]
push 0x420ce0
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
mov eax, dword [ebx]
add esp, 0x1c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ebx, dword [ebp + 8]
push eax
mov eax, dword [esp + 0x18]
push 3
push 2
mov ecx, ebx
call dword [eax + 0x64]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
lea eax, [esi + 0x8c]
push eax
push edx
lea eax, [esp + 0xb4]
push eax
mov ecx, esi
call fcn.004067c0
fld dword [0x41f86c]
fdiv dword [esi + 0x130]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
fld dword [esp + 0x58]
fsub dword [esi + 0x128]
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fld dword [esp + 0x5c]
fsub dword [esi + 0x12c]
mov dword [esp + 0x48], eax
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fstp st(0)
mov ecx, dword [esi + 0x140]
sub ecx, eax
mov al, byte [esi + 0x144]
test al, al
je 0x411346
cmp dword [esi + 0x98], 2
jle 0x41134f
test al, al
jne 0x411376
cmp dword [esi + 0x98], 2
jle 0x411376
mov eax, dword [esp + 0x14]
mov dl, byte [eax + 4]
test dl, dl
push ecx
jne 0x411382
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
push ecx
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], edi
mov dword [edx + 0xc], edi
jmp 0x4113a4
mov edx, dword [esp + 0x14]
mov al, byte [edx + 4]
test al, al
push ecx
jne 0x41138b
mov eax, dword [esp + 0x4c]
jmp 0x4111db
mov edx, dword [esp + 0x4c]
push edx
mov eax, dword [esp + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
push ebx
call fcn.00410590
add esp, 0x1c
mov edx, dword [esp + 0x70]
push edx
mov ecx, ebx
call sub.MFC71.DLL_CDC::SelectObject_1
mov edi, 0x41f858
lea ecx, [esp + 0x60]
mov byte [esp + 0xbc], 1
mov dword [esp + 0x60], edi
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x38]
mov byte [esp + 0xbc], 0
mov dword [esp + 0x38], edi
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x11c]
add edi, 0x14
cmp edi, eax
mov dword [esp + 0x14], edi
jne 0x410f28
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0xe0]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x410ee0
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 0xe4]
inc ecx
cmp ecx, eax
mov dword [esp + 0x34], ecx
jl 0x410ec0
lea ecx, [esp + 0x1c]
call dword [0x41f228]
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4