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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x49c
mov eax, dword [0x487004]
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 0x410a30
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 0x410ae2
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 0x410ac2
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 0x410a55
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [esi + 0x1097600], 1
jne 0x410afa
xor eax, eax
xor ecx, ecx
jmp 0x410b06
mov eax, dword [esi + 0x1095eb0]
mov ecx, dword [esi + 0x1095eb4]
fld qword [esi + 0x83568]
mov dword [esi + 0x1095eb8], eax
fld qword [0x47b770]
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.00442dd6
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.00442dd6
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.00442ea0
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.00442ea0
mov ecx, dword [esp + 0x3c]
push ecx
push edi
push edx
push eax
call fcn.00442e60
fild qword [esp + 0x38]
mov edi, edx
mov dword [esp + 0x18], eax
fst qword [esp + 0x80]
mov dword [esp + 0x1c], edi
fld qword [0x47b7f0]
mov dword [esp + 0x50], eax
fdivr st(1)
mov dword [esp + 0x54], edi
call fcn.00442dd6
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 0x410c32
jl 0x410c22
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
jae 0x410c32
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 0x411061
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 0x410c9b
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.00442e60
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.00442ea0
add eax, dword [esp + 0x28]
mov edi, edx
adc edi, dword [esp + 0x2c]
mov dword [esp + 0x78], eax
cmp edi, dword [esp + 0x34]
jl 0x410d6b
jg 0x410cf1
cmp eax, dword [esp + 0x30]
jb 0x410d6b
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 0x410d0e
fadd qword [0x47b710]
fmulp st(1)
fdiv qword [0x47b7f0]
call fcn.00442dd6
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 0x410d6d
cmp dword [esp + 0x44], eax
jle 0x410d6d
cmp dword [esp + 0x10], 0xa
je 0x410d6d
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 0x410d6d
fstp st(0)
cmp edi, dword [esp + 0x1c]
jl 0x41103c
mov edi, dword [esp + 0x18]
jg 0x410d87
cmp dword [esp + 0x78], edi
jb 0x41103c
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.004112b0
lea eax, [esi + 0x10966f8]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x410de1
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.0043d52d
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
push edi
mov eax, esi
call fcn.00411140
lea eax, [esi + 0x10966f8]
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x410e40
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.0043d52d
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 0x410ec7
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 0x410f00
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 0x411040
cmp edi, dword [esi + 0x82500]
jg 0x411040
push 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
cmp dword [esi + 0x1095648], eax
jge 0x410f69
mov eax, dword [esp + 0x24]
mov ecx, eax
and cl, 1
add eax, 1
test cl, cl
mov dword [esp + 0x24], eax
jne 0x411040
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 0x410f88
lea edi, [eax + ecx]
mov ecx, dword [esi + 0x82500]
lea edx, [eax + edi]
cmp edx, ecx
jle 0x410f99
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 0x410fa7
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 0x410fed
lea edi, [eax + ecx]
mov ecx, dword [esi + 0x82500]
lea edx, [eax + edi]
cmp edx, ecx
jle 0x410ffe
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 0x411010
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 0x410c90
jmp 0x411063
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 [0x47b700]
fdiv qword [esi + 0x1094e48]
call fcn.00442da0
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 [0x47b700]
fdiv qword [esi + 0x83538]
call fcn.00442da0
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.0043c4a7
mov esp, ebp
pop ebp
ret 0x18