Function at 0x4015d9
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
push edi
push 0
push 0
mov edi, eax
lea ebx, [edi + 0x20]
push 0x1009
push dword [ebx]
mov dword [esp + 0x3c], ebx
call dword [0x4173b8]
lea esi, [edi + 0x28]
mov dword [esp + 0x40], esi
call fcn.004039e3
push 0x419230
push dword [edi + 0x24]
call dword [0x417390]
xor esi, esi
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.0040b526
cmp dword [esp + 0x38], esi
pop ecx
mov dword [esp + 0x28], esi
jle 0x4019e7
mov eax, dword [0x41dddc]
mov esi, 0x41dddc
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
mov eax, dword [0x41dddc]
add edi, 0x10
mov ecx, esi
mov dword [esp + 0x24], edi
call dword [eax + 0xc]
mov ebx, eax
mov eax, dword [0x41dddc]
add ebx, 0x10
mov ecx, esi
mov dword [esp + 0x18], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [0x41dddc]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push 0x419294
lea ecx, [esp + 0x34]
call fcn.00403557
push eax
lea eax, [esp + 0x60]
push eax
call dword [0x417288]
lea eax, [esp + 0x58]
push eax
call dword [0x417284]
test eax, eax
jne 0x4016e1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00404aac
lea eax, [ebx - 0x10]
jmp 0x4019c2
mov eax, dword [0x41dddc]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x58]
push eax
mov ebx, 0x104
push ebx
push ebx
lea esi, [esp + 0x1c]
call fcn.00404ba8
push eax
push 0x419a78
push 0x4192ac
push 0x4192c0
call dword [0x41722c]
mov dword [esp + 0x14], eax
call fcn.00404a14
cmp dword [esp + 0x14], 0
mov eax, dword [esp + 0x10]
je 0x40199b
cmp dword [eax - 0xc], 0
je 0x40199b
mov eax, esi
lea edi, [esp + 0x24]
call fcn.004030b7
lea eax, [esp + 0x58]
push eax
push ebx
push ebx
call fcn.00404ba8
push eax
push 0x419a78
push 0x4192cc
push 0x4192c0
call dword [0x41722c]
mov edi, eax
call fcn.00404a14
mov eax, dword [esp + 0x10]
test edi, edi
je 0x401835
cmp dword [eax - 0xc], 0
je 0x401835
mov ebx, esi
call fcn.0040316d
call fcn.004031af
mov eax, esi
lea edi, [esp + 0x1c]
call fcn.004030b7
lea eax, [esp + 0x58]
push eax
mov eax, 0x104
push eax
push eax
call fcn.00404ba8
push eax
push 0x419a78
push 0x4192e0
push 0x4192c0
call dword [0x41722c]
mov edi, eax
call fcn.00404a14
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp edi, ebx
je 0x401835
cmp dword [eax - 0xc], ebx
je 0x401835
mov eax, esi
lea edi, [esp + 0x20]
call fcn.004030b7
mov dword [esp + 0x14], ebx
xor esi, esi
push esi
push 0x4192f0
lea eax, [esp + 0x18]
push 0x4192fc
push eax
call fcn.0040389f
add esp, 0x10
lea eax, [esp + 0x58]
push eax
push 0xffffffffffffffff
push 0x419308
push dword [esp + 0x1c]
call dword [0x417224]
cmp eax, 0xffffffff
je 0x40182b
or dword [esp + 0x14], eax
inc esi
cmp esi, 0x64
jl 0x4017ee
cmp dword [esp + 0x14], ebx
jne 0x40186d
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
jmp 0x4019ca
test byte [esp + 0x14], 1
je 0x401883
push 0x41931c
lea eax, [esp + 0x1c]
push eax
call fcn.0040311e
test byte [esp + 0x14], 2
je 0x401899
push str.CurUser_
lea eax, [esp + 0x1c]
push eax
call fcn.0040311e
test byte [esp + 0x14], 4
je 0x4018af
push 0x419340
lea eax, [esp + 0x1c]
push eax
call fcn.0040311e
mov esi, dword [esp + 0x18]
movzx eax, word [esi]
xor ecx, ecx
mov edx, esi
cmp ax, bx
je 0x4018ee
movzx eax, ax
cmp ax, 0x2c
jne 0x4018d0
cmp ecx, ebx
jne 0x4018d2
mov ecx, edx
jmp 0x4018d2
xor ecx, ecx
inc edx
inc edx
movzx eax, word [edx]
cmp ax, bx
jne 0x4018c2
cmp ecx, ebx
je 0x4018ee
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [esp + 0x1c]
call fcn.0040336f
mov esi, dword [esp + 0x2c]
mov edi, dword [0x4173b8]
push ebx
push ebx
mov ebx, 0x1004
push ebx
push dword [esi]
call edi
inc eax
push eax
lea eax, [esp + 0x14]
push 0x418ee8
push eax
call fcn.0040389f
add esp, 0xc
push 0
push 0
push ebx
push dword [esi]
call edi
push dword [esp + 0x24]
push eax
push esi
call fcn.0040344e
lea edi, [esp + 0x44]
mov dword [esp + 0x14], eax
call fcn.00401f55
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x30]
call fcn.00403557
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004030f8
lea eax, [esp + 0x1c]
lea edi, [esp + 0x50]
call fcn.004030b7
lea eax, [esp + 0x20]
lea edi, [esp + 0x54]
call fcn.004030b7
lea eax, [esp + 0x24]
lea edi, [esp + 0x44]
call fcn.004030b7
mov ebx, dword [esp + 0x40]
mov eax, edi
push eax
call fcn.004038c0
push eax
push dword [esp + 0x18]
push esi
call fcn.004049c0
mov esi, edi
call fcn.00401f81
jmp 0x401831
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00404aac
lea eax, [edi - 0x10]
call fcn.00404aac
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x34]
jl 0x401647
mov ebx, dword [esp + 0x2c]
xor esi, esi
push 0xffff
push esi
push 0x101e
push dword [ebx]
call dword [0x4173b8]
cmp dword [esp + 0x30], esi
je 0x401a0a
push dword [esp + 0x30]
call fcn.0040de46
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret