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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x49c
mov eax, dword [0x484004]
xor eax, esp
mov dword [esp + 0x498], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push ebx
mov esi, ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x82d28]
lea eax, [esp + 0x90]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add dword [esp + 0x90], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
cmp eax, 0x780
mov dword [esi + 0x1095648], eax
jle 0x4108d0
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea edx, [esp + 0x78]
push edx
push 4
push str.Plot
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esi + 0x83544]
xor ecx, ecx
lea eax, [eax + eax*4]
test eax, eax
mov dword [esp + 0x10], ecx
jl 0x410982
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x83544]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0xc]
cdq
idiv ecx
mov edx, dword [ebp + 0xc]
push 0
mov edi, eax
add edi, dword [ebp + 0x10]
push edi
push edx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 0x14]
push edi
push eax
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x10]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
mov eax, ecx
sub eax, edx
jne 0x410962
mov ecx, dword [ebp + 0xc]
push 0
add edi, 1
push edi
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0x14]
push edi
push edx
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add dword [esp + 0xc], eax
mov eax, dword [esi + 0x83544]
add ecx, 1
lea edx, [eax + eax*4]
cmp ecx, edx
mov dword [esp + 0x10], ecx
jle 0x4108f5
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [esi + 0x1097600], 1
jne 0x41099a
xor eax, eax
xor ecx, ecx
jmp 0x4109a6
mov eax, dword [esi + 0x1095eb0]
mov ecx, dword [esi + 0x1095eb4]
fld qword [esi + 0x83568]
mov dword [esi + 0x1095eb8], eax
fld qword [0x4795b8]
mov eax, dword [esi + 0x10cc078]
fmul st(1), st(0)
mov dword [esi + 0x1095ebc], ecx
fld dword [eax + 0x4ff0]
mov edi, dword [esi + 0x1095eb8]
mov dword [esp + 0x4c], ecx
fdivp st(2)
fxch st(1)
call fcn.00441cd6
fmul qword [esi + 0x83570]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x4c]
sbb eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x10cc078]
fdiv dword [eax + 0x4ff0]
mov dword [esp + 0x28], ecx
call fcn.00441cd6
mov ecx, dword [esi + 0x1095694]
sub edi, eax
mov eax, dword [esp + 0x4c]
sbb eax, edx
sub ecx, dword [esi + 0x83558]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x83540]
cdq
push edx
mov edx, dword [esi + ecx*8 + 0x109569c]
push eax
mov eax, dword [esi + ecx*8 + 0x1095698]
push edx
push eax
mov dword [esp + 0x68], edi
call fcn.00441da0
mov ecx, dword [esp + 0x2c]
push edx
mov edi, eax
push edi
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x48], edi
call fcn.00441da0
mov ecx, dword [esp + 0x3c]
push ecx
push edi
push edx
push eax
call fcn.00441d60
fild qword [esp + 0x38]
mov edi, edx
mov dword [esp + 0x18], eax
fst qword [esp + 0x80]
mov dword [esp + 0x1c], edi
fld qword [0x479638]
mov dword [esp + 0x50], eax
fdivr st(1)
mov dword [esp + 0x54], edi
call fcn.00441cd6
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov dword [esp + 0x48], eax
mov eax, edi
sbb eax, edx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x2c]
cmp edi, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
jg 0x410ad2
jl 0x410ac2
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
jae 0x410ad2
mov ecx, dword [esp + 0x38]
add dword [esp + 0x18], ecx
adc edi, dword [esp + 0x3c]
mov dword [esp + 0x1c], edi
mov ecx, dword [esi + 0x824f8]
cmp ecx, dword [esi + 0x82500]
mov dword [esp + 0x10], 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], ecx
jg 0x410f01
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x28]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x5c]
sbb eax, edx
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x14]
sub eax, ecx
mov dword [esp + 0x44], eax
or eax, 0xffffffff
sub eax, dword [ebp + 0xc]
lea edx, [ecx + 1]
mov dword [esp + 0xc], edx
mov dword [esp + 0x6c], eax
jmp 0x410b3b
fld qword [esp + 0x80]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x24], eax
cdq
push ecx
push edx
push eax
call fcn.00441d60
mov ecx, eax
mov eax, dword [esi + 0x82500]
sub eax, dword [esi + 0x824f8]
mov edi, edx
cdq
push edx
push eax
push edi
push ecx
call fcn.00441da0
add eax, dword [esp + 0x28]
mov edi, edx
adc edi, dword [esp + 0x2c]
mov dword [esp + 0x78], eax
cmp edi, dword [esp + 0x34]
jl 0x410c0b
jg 0x410b91
cmp eax, dword [esp + 0x30]
jb 0x410c0b
mov eax, dword [esp + 0x10]
add eax, 1
test eax, eax
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
mov dword [esp + 0x10], eax
jge 0x410bae
fadd qword [0x479558]
fmulp st(1)
fdiv qword [0x479638]
call fcn.00441cd6
mov ecx, dword [esp + 0x50]
sub ecx, eax
mov eax, dword [esp + 0x54]
sbb eax, edx
mov dword [esp + 0x34], eax
mov eax, 2
cmp dword [esp + 0x20], eax
mov dword [esp + 0x30], ecx
jle 0x410c0d
cmp dword [esp + 0x44], eax
jle 0x410c0d
cmp dword [esp + 0x10], 0xa
je 0x410c0d
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
push 0
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0xc]
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
jmp 0x410c0d
fstp st(0)
cmp edi, dword [esp + 0x1c]
jl 0x410edc
mov edi, dword [esp + 0x18]
jg 0x410c27
cmp dword [esp + 0x78], edi
jb 0x410edc
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x1c]
push edx
push edi
mov eax, esi
call fcn.00411150
lea eax, [esi + 0x10966f8]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x410c81
sub eax, ecx
add eax, 1
push eax
lea ecx, [esi + 0x10967f8]
push ecx
push 0xffffffffffffffff
lea eax, [esi + 0x10966f8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esi + 0x10967f8]
push eax
lea eax, [esp + 0xa4]
push 0x1ff
push eax
call fcn.0043c4ad
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
push edi
mov eax, esi
call fcn.00410fe0
lea eax, [esi + 0x10966f8]
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x410ce0
sub eax, ecx
add eax, 1
push eax
lea eax, [esi + 0x10967f8]
push eax
push 0xffffffffffffffff
lea eax, [esi + 0x10966f8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esi + 0x10967f8]
push eax
lea edx, [esp + 0x2a4]
push 0x1ff
push edx
call fcn.0043c4ad
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, edi
sub ecx, dword [esp + 0x48]
mov dword [esp + 0x50], edi
mov dword [esp + 0x30], ecx
mov ecx, eax
sbb ecx, dword [esp + 0x4c]
add edi, dword [esp + 0x38]
mov dword [esp + 0x54], eax
adc eax, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x10], 1
mov dword [esp + 0x18], edi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x410d67
mov edi, dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
sub eax, ecx
lea ecx, [esp + 0x88]
push ecx
sar eax, 1
push eax
lea edx, [esp + 0xa8]
push edx
push ebx
call edi
lea eax, [esp + 0x2a0]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410da0
sub eax, edx
lea ecx, [esp + 0x70]
push ecx
sar eax, 1
push eax
lea edx, [esp + 0x2a8]
push edx
push ebx
call edi
mov edi, dword [esp + 0x14]
cmp edi, dword [esi + 0x824f8]
jl 0x410ee0
cmp edi, dword [esi + 0x82500]
jg 0x410ee0
push 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
cmp dword [esi + 0x1095648], eax
jge 0x410e09
mov eax, dword [esp + 0x24]
mov ecx, eax
and cl, 1
add eax, 1
test cl, cl
mov dword [esp + 0x24], eax
jne 0x410ee0
mov eax, dword [esp + 0x88]
mov ecx, dword [esi + 0x824f8]
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
sub edx, eax
cmp edx, ecx
jge 0x410e28
lea edi, [eax + ecx]
mov ecx, dword [esi + 0x82500]
lea edx, [eax + edi]
cmp edx, ecx
jle 0x410e39
sub ecx, eax
mov edi, ecx
lea ecx, [esp + 0xa0]
lea edx, [ecx + 2]
mov dword [esp + 0x20], edx
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x410e47
sub ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x18]
sar ecx, 1
push ecx
lea ecx, [esp + 0xa4]
push ecx
push edx
sub edi, eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_TextOutW]
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x824f8]
cdq
sub eax, edx
sar eax, 1
mov edx, edi
sub edx, eax
cmp edx, ecx
jge 0x410e8d
lea edi, [eax + ecx]
mov ecx, dword [esi + 0x82500]
lea edx, [eax + edi]
cmp edx, ecx
jle 0x410e9e
sub ecx, eax
mov edi, ecx
lea ecx, [esp + 0x2a0]
lea edx, [ecx + 2]
mov dword [esp + 0x20], edx
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x410eb0
sub ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x10]
sub edx, dword [esp + 0x74]
sar ecx, 1
push ecx
lea ecx, [esp + 0x2a4]
push ecx
push edx
sub edi, eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_TextOutW]
mov edi, dword [esp + 0x14]
mov eax, 1
sub dword [esp + 0x44], eax
add dword [esp + 0xc], eax
add edi, eax
cmp edi, dword [esi + 0x82500]
mov dword [esp + 0x14], edi
jle 0x410b30
jmp 0x410f03
fstp st(0)
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push edi
push edx
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0xc]
push edi
push edx
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
fld qword [esi + 0x83578]
fmul qword [0x479548]
fdiv qword [esi + 0x1094e48]
call fcn.00441ca0
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [esi + 0x82d28]
push 0
push 0x400
push eax
call ebx
fld qword [esi + 0x83538]
fsub qword [esi + 0x84588]
fmul qword [0x479548]
fdiv qword [esi + 0x83538]
call fcn.00441ca0
mov ecx, dword [esi + 0x82d28]
push eax
push 1
push 0x400
push ecx
call ebx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x1094e14], edx
mov dword [esi + 0x1094e18], eax
mov dword [esi + 0x1094e1c], ecx
mov ecx, dword [esp + 0x4a4]
mov dword [esi + 0x1094e20], edi
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0043b423
mov esp, ebp
pop ebp
ret 0x18