Function at 0x494ed0
Capabilities:
Check if file exists
Enumerate files on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x552a7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
call fcn.00448fe0
add esp, 4
push 0x5372e0
lea ecx, [ebp - 0x278]
push ecx
call fcn.0044d6f0
add esp, 4
push eax
lea edx, [ebp - 4]
push edx
call fcn.0041bc20
add esp, 0xc
lea ecx, [ebp - 0x278]
call fcn.0041d100
lea ecx, [ebp - 8]
call fcn.0041d2b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x494f53
mov dword [ebp - 0x27c], 0
lea ecx, [ebp - 4]
call fcn.0041d100
lea ecx, [ebp - 8]
call fcn.0041d100
mov eax, dword [ebp - 0x27c]
jmp 0x495165
push 0x250
push 0
lea eax, [ebp - 0x260]
push eax
call fcn.004f7580
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push 0x5372f4
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x280]
push eax
call fcn.0041bc20
add esp, 0xc
mov ecx, eax
call fcn.0041d2b0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
lea ecx, [ebp - 0x280]
call fcn.0041d100
cmp dword [ebp - 0x264], 0xffffffff
jne 0x494fd5
mov dword [ebp - 0x284], 0
lea ecx, [ebp - 4]
call fcn.0041d100
lea ecx, [ebp - 8]
call fcn.0041d100
mov eax, dword [ebp - 0x284]
jmp 0x495165
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x260]
and ecx, 0x10
jne 0x49511d
lea edx, [ebp - 0x234]
mov dword [ebp - 0x274], edx
push 0x537314
mov eax, dword [ebp - 0x274]
push eax
call fcn.0041b370
add esp, 8
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
je 0x495025
xor ecx, ecx
mov edx, dword [ebp - 0x26c]
mov word [edx], cx
push 0x2d
mov eax, dword [ebp - 0x274]
push eax
call fcn.004162a0
add esp, 8
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
je 0x495050
xor ecx, ecx
mov edx, dword [ebp - 0x26c]
mov word [edx], cx
push 0x2d
mov eax, dword [ebp - 0x274]
push eax
call fcn.004965a0
add esp, 8
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
je 0x4950bc
mov ecx, dword [ebp - 0x26c]
sub ecx, dword [ebp - 0x274]
sar ecx, 1
cmp ecx, 8
je 0x495096
mov edx, dword [ebp - 0x26c]
sub edx, dword [ebp - 0x274]
sar edx, 1
cmp edx, 0x10
jne 0x4950bc
xor eax, eax
mov ecx, dword [ebp - 0x26c]
mov word [ecx], ax
mov edx, dword [ebp - 0x26c]
add edx, 2
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x274], eax
lea ecx, [ebp - 4]
call fcn.0041d2b0
push eax
push 0
push 0x53731c
mov ecx, dword [ebp - 0x274]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x268], eax
lea ecx, [ebp - 4]
call fcn.0041d2b0
push eax
push 0
push str.blockNum
mov edx, dword [ebp - 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x268], 0
jg 0x495114
cmp dword [ebp - 0x270], 0
jle 0x49511d
mov dword [ebp - 0xc], 1
jmp 0x495139
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x494fdc
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x288], eax
lea ecx, [ebp - 4]
call fcn.0041d100
lea ecx, [ebp - 8]
call fcn.0041d100
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f7567
mov esp, ebp
pop ebp
ret