Function at 0x402130
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40758d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x2c], esi
push 0x104
mov dword [ebp - 4], 2
call fcn.004068df
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov edx, eax
cmovae ecx, dword [ebp + 8]
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x402190
push 0x63
call fcn.004068df
add esp, 4
lea ecx, [ebp + 8]
mov edi, eax
call fcn.00401b00
test al, al
je 0x4022c4
push dword [ebp - 0x2c]
cmp dword [ebp + 0x4c], 0x10
lea ecx, [ebp + 0x38]
push 0x63
cmovae ecx, dword [ebp + 0x38]
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
push edi
cmovae eax, dword [ebp + 0x20]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
mov ecx, esi
call fcn.004050e0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40221b
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402211
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023b0
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x402261
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402257
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023b0
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp ecx, 0x10
jb 0x4022a7
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40229d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023b0
push ecx
push edx
call fcn.004068d1
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406642
mov esp, ebp
pop ebp
ret
push str.readini_failed
lea ecx, [ebp - 0x28]
call fcn.004050e0
mov ecx, dword [ebp + 0x1c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
cmp ecx, 0x10
jb 0x40232a
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402320
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023b0
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x40236c
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402362
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023b0
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp ecx, 0x10
jb 0x4022a7
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40229d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40229d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3