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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4ac
mov eax, dword [0x44aad4]
xor eax, esp
mov dword [esp + 0x4a8], eax
mov eax, dword [ebp + 0x1c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x82d28]
lea eax, [esp + 0xa0]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add dword [esp + 0xa0], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
cmp eax, 0x780
mov dword [esi + 0x1095648], eax
jle 0x40f757
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea edx, [esp + 0x88]
push edx
push 4
push str.Plot
push edi
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 + 0x14], ecx
jl 0x40f809
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x83544]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x10]
cdq
idiv ecx
mov edx, dword [ebp + 0xc]
push 0
mov ebx, eax
add ebx, dword [ebp + 0x10]
push ebx
push edx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 0x14]
push ebx
push eax
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x14]
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 0x40f7e9
mov ecx, dword [ebp + 0xc]
push 0
add ebx, 1
push ebx
push ecx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0x14]
push ebx
push edx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
mov eax, dword [esi + 0x83544]
add ecx, 1
lea edx, [eax + eax*4]
cmp ecx, edx
mov dword [esp + 0x14], ecx
jle 0x40f77c
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [esi + 0x1097600], 1
jne 0x40f821
xor eax, eax
xor ecx, ecx
jmp 0x40f82d
mov eax, dword [esi + 0x1095eb0]
mov ecx, dword [esi + 0x1095eb4]
fld qword [esi + 0x83568]
mov dword [esi + 0x1095eb8], eax
fld qword [0x443500]
mov eax, dword [esi + 0x10cc078]
fmul st(1), st(0)
mov dword [esi + 0x1095ebc], ecx
fld dword [eax + 0x4ff0]
mov ebx, dword [esi + 0x1095eb8]
mov dword [esp + 0x5c], ecx
fdivp st(2)
fxch st(1)
call fcn.00427926
fmul qword [esi + 0x83570]
mov ecx, ebx
sub ecx, eax
mov eax, dword [esp + 0x5c]
sbb eax, edx
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x10cc078]
fdiv dword [eax + 0x4ff0]
mov dword [esp + 0x30], ecx
call fcn.00427926
mov ecx, dword [esi + 0x1095694]
sub ebx, eax
mov eax, dword [esp + 0x5c]
sbb eax, edx
sub ecx, dword [esi + 0x83558]
mov dword [esp + 0x6c], 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 + 0x78], ebx
call fcn.004279e0
mov ecx, dword [esp + 0x34]
push edx
mov ebx, eax
push ebx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x58], ebx
call fcn.004279e0
mov ecx, dword [esp + 0x4c]
push ecx
push ebx
push edx
push eax
call fcn.004279a0
fild qword [esp + 0x48]
mov ebx, edx
mov dword [esp + 0x18], eax
fst qword [esp + 0x88]
mov dword [esp + 0x1c], ebx
fld qword [0x443578]
mov dword [esp + 0x60], eax
fdivr st(1)
mov dword [esp + 0x64], ebx
call fcn.00427926
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov dword [esp + 0x58], eax
mov eax, ebx
sbb eax, edx
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x34]
cmp ebx, edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
jg 0x40f959
jl 0x40f949
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x30]
jae 0x40f959
mov ecx, dword [esp + 0x48]
add dword [esp + 0x18], ecx
adc ebx, dword [esp + 0x4c]
mov dword [esp + 0x1c], ebx
mov ecx, dword [esi + 0x824f8]
cmp ecx, dword [esi + 0x82500]
mov dword [esp + 0x54], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], ecx
jg 0x40fdc4
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x30]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x6c]
sbb eax, edx
mov dword [esp + 0x84], 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 + 0x14], edx
mov dword [esp + 0x7c], eax
jmp 0x40f9cb
fld qword [esp + 0x88]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esi + 0x82500]
sub eax, dword [esi + 0x824f8]
mov dword [esp + 0x24], ecx
cdq
mov edi, eax
mov eax, ecx
mov ecx, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x84]
mov ebx, edx
cdq
push ecx
push edx
push eax
call fcn.004279a0
push ebx
push edi
push edx
push eax
call fcn.004279e0
add eax, dword [esp + 0x30]
mov ebx, edx
adc ebx, dword [esp + 0x34]
mov dword [esp + 0x70], eax
cmp ebx, dword [esp + 0x3c]
jl 0x40fab5
jg 0x40fa2d
cmp eax, dword [esp + 0x38]
jb 0x40fab5
mov edi, dword [esp + 0x54]
add edi, 1
mov edx, edi
test edx, edx
mov dword [esp + 0x68], edx
fild dword [esp + 0x68]
mov dword [esp + 0x54], edi
jge 0x40fa4c
fadd qword [0x4434a0]
fmulp st(1)
fdiv qword [0x443578]
call fcn.00427926
mov ecx, dword [esp + 0x60]
sub ecx, eax
mov eax, dword [esp + 0x64]
sbb eax, edx
mov dword [esp + 0x3c], eax
mov eax, 2
cmp dword [esp + 0x24], eax
mov dword [esp + 0x38], ecx
jle 0x40faaf
cmp dword [esp + 0x44], eax
jle 0x40faaf
cmp edi, 0xa
je 0x40faaf
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
push 0
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x70]
jmp 0x40fabb
mov eax, dword [esp + 0x70]
jmp 0x40fab7
fstp st(0)
mov edi, dword [esp + 0x2c]
cmp ebx, dword [esp + 0x1c]
jl 0x40fd9f
jg 0x40fad1
cmp eax, dword [esp + 0x18]
jb 0x40fd9f
mov ecx, dword [ebp + 0x10]
mov ebx, dword [esp + 0x10]
push 0
push ecx
push ebx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0x18]
push edx
push ebx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebp + 0x10]
mov ebx, dword [esp + 0x14]
push 0
push eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
mov eax, esi
call fcn.00410000
lea eax, [esi + 0x10966f8]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40fb27
sub eax, ecx
add eax, 1
push eax
lea ebx, [esi + 0x10967f8]
push ebx
push 0xffffffffffffffff
lea eax, [esi + 0x10966f8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, ebx
neg ecx
mov eax, ebx
mov dword [esp + 0x24], ecx
lea edx, [esp + ecx + 0xb0]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40fb61
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov eax, esi
call fcn.0040fea0
lea eax, [esi + 0x10966f8]
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40fb90
sub eax, ecx
add eax, 1
push eax
push ebx
push 0xffffffffffffffff
lea eax, [esi + 0x10966f8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x24]
lea ecx, [esp + ecx + 0x2b0]
mov edi, edi
movzx eax, word [ebx]
mov word [ecx + ebx], ax
add ebx, 2
test ax, ax
jne 0x40fbc0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, eax
sub edx, dword [esp + 0x58]
mov dword [esp + 0x60], eax
mov dword [esp + 0x38], edx
mov edx, ecx
sbb edx, dword [esp + 0x5c]
add eax, dword [esp + 0x48]
mov dword [esp + 0x64], ecx
adc ecx, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x54], 1
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40fc15
mov ebx, dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
sub eax, ecx
lea ecx, [esp + 0x98]
push ecx
sar eax, 1
push eax
lea edx, [esp + 0xb8]
push edx
push edi
call ebx
lea eax, [esp + 0x2b0]
lea edx, [eax + 2]
jmp 0x40fc50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fc50
sub eax, edx
lea ecx, [esp + 0x90]
push ecx
sar eax, 1
push eax
lea edx, [esp + 0x2b8]
push edx
push edi
call ebx
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x824f8]
jl 0x40fda3
cmp ebx, dword [esi + 0x82500]
jg 0x40fda3
push 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
cmp dword [esi + 0x1095648], eax
jge 0x40fcbc
mov eax, dword [esp + 0x28]
mov ecx, eax
and cl, 1
add eax, 1
test cl, cl
mov dword [esp + 0x28], eax
jne 0x40fda3
mov eax, dword [esp + 0x98]
mov ecx, dword [esi + 0x824f8]
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
sub edx, eax
cmp edx, ecx
jge 0x40fcdb
lea ebx, [eax + ecx]
mov ecx, dword [esi + 0x82500]
lea edx, [eax + ebx]
cmp edx, ecx
jle 0x40fcec
sub ecx, eax
mov ebx, ecx
lea ecx, [esp + 0xb0]
lea edx, [ecx + 2]
mov dword [esp + 0x24], edx
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40fd00
sub ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x18]
sar ecx, 1
push ecx
lea ecx, [esp + 0xb4]
push ecx
push edx
sub ebx, eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_TextOutW]
mov eax, dword [esp + 0x90]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x824f8]
cdq
sub eax, edx
sar eax, 1
mov edx, ebx
sub edx, eax
cmp edx, ecx
jge 0x40fd49
lea ebx, [eax + ecx]
mov ecx, dword [esi + 0x82500]
lea edx, [eax + ebx]
cmp edx, ecx
jle 0x40fd5a
sub ecx, eax
mov ebx, ecx
lea ecx, [esp + 0x2b0]
lea edx, [ecx + 2]
mov dword [esp + 0x24], edx
jmp 0x40fd70
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40fd70
sub ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x10]
sub edx, dword [esp + 0x94]
sar ecx, 1
push ecx
lea ecx, [esp + 0x2b4]
push ecx
push edx
sub ebx, eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_TextOutW]
mov ebx, dword [esp + 0x10]
mov eax, 1
sub dword [esp + 0x44], eax
add dword [esp + 0x14], eax
add ebx, eax
cmp ebx, dword [esi + 0x82500]
mov dword [esp + 0x10], ebx
jle 0x40f9c0
jmp 0x40fdc6
fstp st(0)
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push 0
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ebx
push edx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [ebp + 0xc]
push ebx
push edx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
fld qword [esi + 0x83578]
fmul qword [0x443490]
fdiv qword [esi + 0x1094e48]
call fcn.004278f0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [esi + 0x82d28]
push 0
push 0x400
push eax
call edi
fld qword [esi + 0x83538]
fsub qword [esi + 0x84588]
fmul qword [0x443490]
fdiv qword [esi + 0x83538]
call fcn.004278f0
mov ecx, dword [esi + 0x82d28]
push eax
push 1
push 0x400
push ecx
call edi
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 + 0x4b4]
pop edi
mov dword [esi + 0x1094e20], ebx
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0042374b
mov esp, ebp
pop ebp
ret 0x18