Function at 0x407cd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7681
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x587614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x824], ebx
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x83c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push dword [ebp + 0xc]
lea eax, [ebp - 0x828]
mov byte [ebp - 4], 2
push str.Curve_02d
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
add esp, 0xc
lea eax, [ebp - 0x810]
push dword [ebp + 8]
push 0x3fc
push eax
push str.12345678
push dword [ebp - 0x828]
push 0x4c09bc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x810]
push 0x4c07a8
push eax
call fcn.00408820
add esp, 0xc
cmp eax, 1
jne 0x407fbd
cmp dword [ebp - 0x820], 2
jl 0x407fbd
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x407dae
push eax
call sub.mfc140u.dll_operator
add esp, 4
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x407dd3
push eax
call sub.mfc140u.dll_operator
add esp, 4
mov dword [ebx + 0x34], 0
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok]
xor eax, eax
mov dword [ebx + 0x3c], 0
xor esi, esi
mov dword [ebx + 0x38], 0
xor ebx, ebx
push ebx
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push 0x4c09c8
push eax
mov dword [ebp - 0x81c], esi
call edi
push ebx
push 0x4c09c8
push ebx
call edi
add esp, 0x18
test eax, eax
je 0x407f9a
nop dword [eax]
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x818], 0
push ecx
push 0x4c07a8
push eax
mov dword [ebp - 0x814], 0
call fcn.00408820
push 0
push 0x4c09c8
push 0
call edi
lea ecx, [ebp - 0x814]
push ecx
push 0x4c07a8
push eax
call fcn.00408820
push 0
push 0x4c09c8
push 0
call edi
mov esi, dword [ebp - 0x818]
add esp, 0x30
mov edi, dword [ebp - 0x814]
mov ecx, 0x64
mov dword [ebp - 0x838], eax
xor eax, eax
test esi, esi
cmovs esi, eax
cmp esi, 0x64
cmovg esi, ecx
test edi, edi
mov dword [ebp - 0x818], esi
cmovs edi, eax
cmp edi, ecx
cmovg edi, ecx
mov dword [ebp - 0x814], edi
test ebx, ebx
jne 0x407ebf
xor esi, esi
xor edi, edi
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x814], edi
mov eax, dword [ebp - 0x820]
dec eax
cmp ebx, eax
jne 0x407eda
mov esi, ecx
mov edi, ecx
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x814], edi
cmp dword [ebp - 0x82c], 0
jne 0x407f7e
mov ecx, dword [ebp - 0x824]
add ecx, 0x30
mov dword [ebp - 0x830], ecx
mov eax, dword [ecx + 8]
mov dword [ebp - 0x834], eax
test eax, eax
js 0x408009
push 0xffffffffffffffff
inc eax
push eax
call fcn.00408330
mov ecx, dword [ebp - 0x830]
sub esp, 0x10
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x834]
mov dword [eax + ecx*8], esi
mov dword [eax + ecx*8 + 4], edi
movd xmm0, dword [ebp - 0x814]
mov ecx, dword [ebp - 0x824]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movd xmm0, dword [ebp - 0x818]
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.00405d30
cmp dword [ebp - 0x818], 0x64
jne 0x407f7e
cmp dword [ebp - 0x814], 0x64
jne 0x407f7e
lea esi, [ebx + 1]
mov dword [ebp - 0x82c], 1
mov dword [ebp - 0x81c], esi
jmp 0x407f84
mov esi, dword [ebp - 0x81c]
mov eax, dword [ebp - 0x838]
inc ebx
test eax, eax
je 0x407f9a
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok]
jmp 0x407e20
mov eax, dword [ebp - 0x820]
cmp eax, esi
mov ecx, dword [ebp - 0x824]
cmovne eax, esi
mov dword [ebp - 0x820], eax
call fcn.004068a0
mov esi, 1
jmp 0x407fc8
push 0
mov ecx, ebx
call fcn.00406930
xor esi, esi
lea ecx, [ebp - 0x83c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x828]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b61c2
mov esp, ebp
pop ebp
ret 8
call sub.mfc140u.dll_AfxThrowInvalidArgException
int3