Function at 0x401650
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a16d
mov eax, dword fs:[0]
push eax
mov eax, 0x10a0
call fcn.00409ef0
mov eax, dword [0x412018]
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 esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10a0], ecx
mov ecx, esi
mov dword [ebp - 0x10a4], eax
mov dword [ebp - 0x10a8], edx
mov dword [ebp - 0x10ac], ebx
mov dword [ebp - 0x1018], 0xf
mov dword [ebp - 0x101c], ebx
mov byte [ebp - 0x102c], bl
lea edi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x4016c0
sub ecx, edi
mov eax, esi
mov edi, ecx
lea esi, [ebp - 0x102c]
call fcn.00402030
mov ecx, esi
lea edx, [ebp - 0x109c]
mov dword [ebp - 4], ebx
call fcn.004013d0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1018], 0x10
jb 0x401705
mov eax, dword [ebp - 0x102c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [ebp - 0x10a0]
mov eax, 0xf
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1034], eax
mov eax, esi
mov dword [ebp - 0x101c], ebx
mov byte [ebp - 0x102c], bl
mov dword [ebp - 0x1038], ebx
mov byte [ebp - 0x1048], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401740
sub eax, edx
mov edi, eax
mov eax, esi
lea esi, [ebp - 0x1048]
call fcn.00402030
mov ecx, esi
lea edx, [ebp - 0x1080]
mov byte [ebp - 4], 3
call fcn.004013d0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1034], 0x10
jb 0x401786
mov ecx, dword [ebp - 0x1048]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [ebp - 0x10a8]
mov eax, 0xf
mov dword [ebp - 0x1034], eax
mov dword [ebp - 0x1018], eax
mov eax, esi
mov dword [ebp - 0x1038], ebx
mov byte [ebp - 0x1048], bl
mov dword [ebp - 0x101c], ebx
mov byte [ebp - 0x102c], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4017c0
sub eax, edx
mov edi, eax
mov eax, esi
lea esi, [ebp - 0x102c]
call fcn.00402030
mov ecx, esi
lea edx, [ebp - 0x1064]
mov byte [ebp - 4], 6
call fcn.004013d0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x1018], 0x10
jb 0x401806
mov edx, dword [ebp - 0x102c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [0x421dfc]
mov eax, 8
mov dword [ebp - 0x1018], 0xf
mov dword [ebp - 0x101c], ebx
mov byte [ebp - 0x102c], bl
cmp dword [0x421e10], eax
jae 0x401834
mov esi, 0x421dfc
mov edx, dword [ebp - 0x1064]
cmp dword [ebp - 0x1050], eax
jae 0x401848
lea edx, [ebp - 0x1064]
mov ecx, dword [ebp - 0x1080]
cmp dword [ebp - 0x106c], eax
jae 0x40185c
lea ecx, [ebp - 0x1080]
cmp dword [ebp - 0x1088], eax
mov eax, dword [ebp - 0x109c]
jae 0x401870
lea eax, [ebp - 0x109c]
push esi
push 0x800
lea esi, [ebp - 0x1010]
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov word [ebp - 0x1048], ax
mov edi, 7
mov eax, esi
mov dword [ebp - 0x1034], edi
mov dword [ebp - 0x1038], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4018a5
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea ecx, [ebp - 0x1048]
call fcn.00401ee0
mov ebx, dword [ebp - 0x10a4]
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], 9
call fcn.004012d0
mov esi, 8
cmp dword [ebp - 0x1034], esi
jb 0x4018f8
mov ecx, dword [ebp - 0x1048]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x1050], esi
jb 0x401910
mov edx, dword [ebp - 0x1064]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1050], edi
xor edi, edi
xor eax, eax
mov dword [ebp - 0x1054], edi
mov word [ebp - 0x1064], ax
cmp dword [ebp - 0x106c], esi
jb 0x40193f
mov ecx, dword [ebp - 0x1080]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x106c], 7
mov dword [ebp - 0x1070], edi
mov word [ebp - 0x1080], dx
cmp dword [ebp - 0x1088], esi
jb 0x401970
mov eax, dword [ebp - 0x109c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, ebx
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.004068fb
mov esp, ebp
pop ebp
ret 8