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

Disassembly:
push 0x16c
mov eax, 0x4a422f
call fcn.00481da3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x154], ecx
mov ecx, dword [ebp + 0x10]
push ecx
push eax
mov dword [ebp - 0x120], edx
mov edx, dword [ebp + 0x24]
lea eax, [ebp - 0x11c]
xor ebx, ebx
push eax
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x124], ebx
call fcn.0040a465
add esp, 0xc
cmp edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x138], edi
jne 0x41d86f
mov dword [ebp - 0x138], str.index.dat
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x13c]
push esi
push eax
call fcn.0040a465
add esp, 0xc
mov byte [ebp - 4], 1
push dword [ebp - 0x138]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.00402dca
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x13c]
add ecx, 0xfffffff0
call fcn.00401325
mov esi, 0x4ed5e8
push esi
lea ecx, [ebp - 0x144]
call fcn.00401640
lea ecx, [ebp - 0x11c]
push ecx
push eax
lea eax, [ebp - 0x148]
push eax
mov byte [ebp - 4], 4
call fcn.0040a465
add esp, 0xc
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x144]
add ecx, 0xfffffff0
call fcn.00401325
call fcn.00428e38
lea ecx, [ebp - 0x148]
call fcn.0042e810
call fcn.00428e69
cmp edi, ebx
mov eax, edi
jne 0x41d910
mov eax, str.index.dat
push eax
lea ecx, [ebp - 0x148]
call fcn.00401250
cmp edi, ebx
jne 0x41d925
mov edi, str.index.dat
push esi
lea ecx, [ebp - 0x14c]
call fcn.00401640
lea ecx, [ebp - 0x11c]
push ecx
push eax
lea eax, [ebp - 0x13c]
push eax
mov byte [ebp - 4], 7
call fcn.0040a465
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x158]
push eax
mov byte [ebp - 4], 8
call fcn.00402dca
add esp, 0xc
mov ecx, dword [ebp - 0x13c]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x14c]
add ecx, 0xfffffff0
call fcn.00401325
mov edi, dword [ebp - 0x120]
cmp edi, ebx
jne 0x41d990
mov edi, 0x4ad1b4
push esi
lea ecx, [ebp - 0x120]
call fcn.00401640
lea ecx, [ebp - 0x11c]
push ecx
push eax
lea eax, [ebp - 0x144]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040a465
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x128]
push eax
mov byte [ebp - 4], 0xd
call fcn.00402dca
add esp, 0xc
mov ecx, dword [ebp - 0x144]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00401325
cmp dword [ebp + 0x1c], ebx
je 0x41da8b
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x154]
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0x158]
call fcn.0041d5c5
cmp eax, ebx
mov dword [ebp - 0x150], eax
jne 0x41da83
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x160]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x128]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x158]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x148]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x15c]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.00401325
mov eax, dword [ebp - 0x150]
jmp 0x41de63
mov eax, dword [ebp - 0x160]
mov dword [eax], ebx
cmp dword [ebp + 0x20], ebx
je 0x41da9d
mov ebx, dword [ebp - 0x128]
call fcn.004057fa
xor ebx, ebx
lea eax, [ebp - 0x128]
call fcn.0040602a
cmp eax, ebx
mov dword [ebp - 0x13c], eax
jle 0x41ddfa
mov eax, dword [ebp - 0x130]
lea edi, [ebp - 0x140]
mov dword [ebp - 0x140], 1
call fcn.0040603f
mov dword [ebp - 0x14c], eax
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x138]
call fcn.0040161b
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x14c], ebx
je 0x41db07
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x140]
call fcn.004061ff
pop ecx
cmp dword [ebp - 0x13c], ebx
mov dword [ebp - 0x130], ebx
jle 0x41dde4
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, 0x104
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x134]
call fcn.0040161b
push dword [ebp - 0x130]
lea eax, [ebp - 0x134]
push 0x4ad28c
push eax
mov byte [ebp - 4], 0x12
call fcn.004063eb
add esp, 0xc
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x12c]
call fcn.0040161b
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x128]
push edi
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x124], eax
call fcn.0040133f
push dword [ebp - 0x124]
push edi
push eax
push 0x4ac888
push dword [ebp - 0x134]
push 0x4acf30
call ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x12c]
call fcn.00402fd4
cmp dword [ebp - 0x14c], 0
je 0x41dbcb
push dword [ebp - 0x138]
push dword [ebp - 0x12c]
call fcn.0047bbb4
test eax, eax
pop ecx
pop ecx
jne 0x41ddac
push esi
lea ecx, [ebp - 0x170]
call fcn.00401640
lea ecx, [ebp - 0x11c]
push ecx
push eax
lea eax, [ebp - 0x164]
push eax
mov byte [ebp - 4], 0x14
call fcn.0040a465
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
push eax
lea eax, [ebp - 0x174]
push eax
mov byte [ebp - 4], 0x15
call fcn.0040a465
add esp, 0xc
push 0x4ad1b4
push eax
lea eax, [ebp - 0x140]
push eax
mov byte [ebp - 4], 0x16
call fcn.00402dca
add esp, 0xc
mov ecx, dword [ebp - 0x174]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x164]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x170]
add ecx, 0xfffffff0
call fcn.00401325
push dword [ebp - 0x140]
and dword [ebp - 0x124], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41dd64
push dword [ebp - 0x130]
lea eax, [ebp - 0x134]
push 0x4ae1a8
push eax
call fcn.004063eb
add esp, 0xc
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x120]
call fcn.0040161b
mov byte [ebp - 4], 0x1b
mov eax, dword [ebp - 0x128]
push edi
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x168], eax
call fcn.0040133f
push dword [ebp - 0x168]
push edi
push eax
push 0x4ac888
push dword [ebp - 0x134]
push 0x4acf30
call ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x120]
call fcn.00402fd4
push dword [ebp - 0x120]
lea ecx, [ebp - 0x144]
call fcn.004216f4
push 0x103
lea eax, [ebp - 0x117]
push 0
mov byte [ebp - 4], 0x1c
push eax
mov byte [ebp - 0x118], 0
call fcn.0047e7d0
mov ecx, dword [ebp - 0x140]
add esp, 0xc
lea edx, [ebp - 0x118]
call fcn.004121c7
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x144]
call fcn.004976b1
test eax, eax
pop ecx
pop ecx
je 0x41dd42
mov dword [ebp - 0x124], 1
mov ecx, dword [ebp - 0x144]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00401325
jmp 0x41dd6e
mov dword [ebp - 0x124], 1
push dword [ebp - 0x160]
mov ecx, dword [ebp - 0x154]
xor eax, eax
push eax
push dword [ebp - 0x124]
push eax
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x16c]
call fcn.0041d7fa
mov ecx, dword [ebp - 0x140]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x12c]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x134]
add ecx, 0xfffffff0
call fcn.00401325
inc dword [ebp - 0x130]
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x13c]
jl 0x41db24
mov ecx, dword [ebp - 0x138]
add ecx, 0xfffffff0
call fcn.00401325
mov esi, dword [ebp - 0x150]
jmp 0x41de1b
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x128]
call fcn.0040f3fb
mov esi, eax
mov eax, dword [ebp - 0x154]
pop ecx
mov dword [eax + 0x288], esi
mov ecx, dword [ebp - 0x128]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x158]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x148]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x15c]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.00401325
mov eax, esi
call fcn.00481e26
ret 0x20