Function at 0x401900
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4527c6
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x46d070]
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, ecx
sub esp, 8
lea ecx, [ebp - 0x12c]
call fcn.004027b0
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0043a360
lea ebx, [esi + 0x18]
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x401962
mov eax, dword [ebx]
jmp 0x401964
mov eax, ebx
push eax
push 0x20
lea eax, [ebp - 0x50]
push eax
push 0x46383c
push 0x463840
push str.linked
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x6c], 0
call fcn.00409bd0
test eax, eax
je 0x40199b
lea ecx, [eax + 0x10]
jmp 0x40199d
xor ecx, ecx
lea edx, [ebp - 0x50]
call fcn.004098a0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x401bab
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00403400
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x401bab
push dword [ebp - 0x70]
mov edx, dword [esi + 0x58]
add esi, 0x54
push ecx
mov ecx, dword [esi]
call fcn.0040b140
mov eax, dword [esi]
add esp, 8
mov ecx, dword [ebp - 0x6c]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
sar eax, 3
cmp eax, ecx
jae 0x401a19
cmp ecx, 0x1fffffff
jbe 0x401a0e
push str.vector_T__too_long
call fcn.00433cb3
push ecx
mov ecx, esi
call fcn.00405850
mov ecx, dword [ebp - 0x6c]
xor eax, eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
xor edi, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x70], edi
test ecx, ecx
je 0x401bab
nop
lea ecx, [ebp - 0x12c]
call fcn.00409bd0
test eax, eax
je 0x401a54
lea ecx, [eax + 0x10]
jmp 0x401a56
xor ecx, ecx
push edi
mov edx, 0x463858
call fcn.004098a0
mov ecx, eax
call fcn.00402f20
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x401b89
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x12c]
call fcn.0040ae70
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x401b89
cmp dword [ebx + 0x14], 8
jb 0x401aa0
mov ecx, dword [ebx]
jmp 0x401aa2
mov ecx, ebx
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
push ecx
cmovae eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x50]
push 0x20
push ecx
push 0x46383c
push eax
push str.linked
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x18
call fcn.004359c7
add esp, 4
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00402640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.0040b080
mov byte [ebp - 4], 3
lea eax, [ebp - 0x78]
mov ecx, dword [esi + 4]
cmp eax, ecx
jae 0x401b35
mov eax, dword [esi]
lea edx, [ebp - 0x78]
cmp eax, edx
ja 0x401b35
mov edi, edx
sub edi, eax
sar edi, 3
cmp ecx, dword [esi + 8]
jne 0x401b27
push ecx
mov ecx, esi
call fcn.004057f0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea eax, [eax + edi*8]
test ecx, ecx
je 0x401b52
jmp 0x401b4c
cmp ecx, dword [esi + 8]
jne 0x401b42
push ecx
mov ecx, esi
call fcn.004057f0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x401b52
lea eax, [ebp - 0x78]
push eax
call fcn.0040b2c0
add dword [esi + 4], 8
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x74]
test edi, edi
je 0x401b82
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x401b82
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x401b82
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x70]
inc edi
mov dword [ebp - 0x70], edi
cmp edi, dword [ebp - 0x6c]
jb 0x401a40
mov eax, dword [ebp - 0x54]
cmp eax, 8
jb 0x401bab
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.0040d960
lea ecx, [ebp - 0xc4]
call fcn.004026c0
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0xc4], vtable.std::ios_base.0
call fcn.00433d45
add esp, 4
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.0043598e
mov esp, ebp
pop ebp
ret