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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.004125f0
mov eax, dword [0x4297c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
push esi
mov esi, dword [ebp + 0x24]
push edi
mov edi, 8
mov dword [ebp - 0x1040], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1044], ecx
cmp dword [ebp + 0x20], edi
jae 0x410fee
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41101c
cmp dword [ebp + 0x20], edi
jb 0x41100a
mov edx, dword [ebp + 0xc]
push edx
call fcn.004122e7
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125d9
mov esp, ebp
pop ebp
ret
push ebx
push 0xffe
xor ebx, ebx
lea ecx, [ebp - 0x1002]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x1004], ax
call fcn.004123b0
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp dword [ebp + 0x20], edi
jae 0x411048
lea eax, [ebp + 0xc]
cmp dword [esi + 0x18], edi
jb 0x411052
mov esi, dword [esi + 4]
jmp 0x411055
add esi, 4
push eax
push 0x7ff
lea edx, [ebp - 0x1004]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
jne 0x411091
cmp dword [ebp + 0x20], edi
jb 0x41107e
mov eax, dword [ebp + 0xc]
push eax
call fcn.004122e7
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004125d9
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x1004]
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4112d8
jmp 0x4110b2
xor ebx, ebx
mov edi, 7
xor edx, edx
xor eax, eax
push 0x423078
push esi
mov dword [ebp - 0x1008], edi
mov dword [ebp - 0x100c], ebx
mov word [ebp - 0x101c], dx
mov dword [ebp - 0x1024], edi
mov dword [ebp - 0x1028], ebx
mov word [ebp - 0x1038], ax
call fcn.00412343
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41125d
mov eax, esi
lea edx, [eax + 2]
cmp ebx, esi
jbe 0x411210
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411106
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x1020]
call fcn.00410560
mov edi, ebx
sub edi, esi
sar edi, 1
cmp edi, dword [ebp - 0x100c]
jbe 0x411135
call fcn.004127f9
cmp dword [ebp - 0x1008], 8
mov eax, dword [ebp - 0x101c]
jae 0x41114a
lea eax, [ebp - 0x101c]
xor ecx, ecx
push esi
mov word [eax + edi*2], cx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc edi
cmp edi, eax
jge 0x411180
lea edx, [ebx + 2]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411164
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x103c]
call fcn.00410560
mov edi, 7
mov ecx, dword [ebp - 0x1040]
lea eax, [ebp - 0x1020]
push eax
call fcn.00410f00
lea ecx, [ebp - 0x103c]
push ecx
mov ecx, dword [ebp - 0x1044]
call fcn.00410f00
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
push esi
call ebx
cmp dword [ebp - 0x1024], 8
lea esi, [esi + eax*2 + 2]
jb 0x4111d1
mov edx, dword [ebp - 0x1038]
push edx
call fcn.004122e7
add esp, 4
xor eax, eax
cmp dword [ebp - 0x1008], 8
mov dword [ebp - 0x1024], edi
mov dword [ebp - 0x1028], 0
mov word [ebp - 0x1038], ax
jb 0x411202
mov ecx, dword [ebp - 0x101c]
push ecx
call fcn.004122e7
add esp, 4
xor edx, edx
mov word [ebp - 0x101c], dx
jmp 0x4112b8
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411210
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x1020]
call fcn.00410560
sub ebx, esi
sar ebx, 1
cmp ebx, dword [ebp - 0x100c]
jbe 0x41123d
call fcn.004127f9
cmp dword [ebp - 0x1008], 8
mov eax, dword [ebp - 0x101c]
jae 0x411252
lea eax, [ebp - 0x101c]
xor edx, edx
mov word [eax + ebx*2], dx
jmp 0x411185
mov ebx, 8
cmp dword [ebp - 0x1024], ebx
jb 0x411279
mov eax, dword [ebp - 0x1038]
push eax
call fcn.004122e7
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1024], edi
mov dword [ebp - 0x1028], 0
mov word [ebp - 0x1038], cx
cmp dword [ebp - 0x1008], ebx
jb 0x4112a9
mov edx, dword [ebp - 0x101c]
push edx
call fcn.004122e7
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor eax, eax
mov word [ebp - 0x101c], ax
push esi
mov dword [ebp - 0x100c], 0
mov dword [ebp - 0x1008], edi
call ebx
test eax, eax
jne 0x4110b0
mov edi, 8
cmp dword [ebp + 0x20], edi
jb 0x4112e9
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004122e7
add esp, 4
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004125d9
mov esp, ebp
pop ebp
ret