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

Disassembly:
push ebp
lea ebp, [esp - 0x508]
sub esp, 0x508
push 0xffffffffffffffff
push 0x4b263f
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x4d1644]
xor eax, ebp
mov dword [ebp + 0x504], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x4baf98]
mov eax, dword [str.UserDataSet]
mov edx, dword [0x4baf9c]
mov dword [ebp + 0x4f0], ecx
mov ecx, dword [0x4bafa4]
mov dword [ebp + 0x4fc], ecx
mov ecx, 8
mov esi, str.UserDataSavePath
lea edi, [ebp + 0x4c8]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x4ec], eax
mov eax, dword [0x4bafa0]
mov dword [ebp + 0x4f4], edx
mov edx, dword [0x4bafa8]
xor ebx, ebx
mov dword [ebp + 0x4f8], eax
mov dword [ebp + 0x500], edx
movsw word es:[edi], word [esi]
mov dword [ebp + 0x2a0], 7
mov dword [ebp + 0x29c], ebx
mov word [ebp + 0x28c], bx
lea eax, [ebp + 0x288]
push eax
mov dword [ebp - 4], ebx
call fcn.00479240
add esp, 4
test eax, eax
jne 0x479639
cmp dword [ebp + 0x2a0], 8
jb 0x479a22
mov ecx, dword [ebp + 0x28c]
push ecx
call fcn.00479e49
add esp, 4
jmp 0x479a22
mov eax, dword [ebp + 0x28c]
mov esi, 8
cmp dword [ebp + 0x2a0], esi
jae 0x479652
lea eax, [ebp + 0x28c]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
jne 0x479680
cmp dword [ebp + 0x2a0], esi
jb 0x479a22
mov edx, dword [ebp + 0x28c]
push edx
call fcn.00479e49
add esp, 4
jmp 0x479a22
push 0x206
lea eax, [ebp + 0x2c2]
push ebx
push eax
mov word [ebp + 0x2c0], bx
call fcn.0047a360
mov eax, dword [ebp + 0x28c]
add esp, 0xc
cmp dword [ebp + 0x2a0], esi
jae 0x4796b0
lea eax, [ebp + 0x28c]
push eax
push 0x104
lea ecx, [ebp + 0x2c0]
push ecx
push 0x4be620
lea edx, [ebp + 0x4c8]
push edx
lea eax, [ebp + 0x4ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp + 0x2c0]
push ecx
lea ecx, [ebp + 0x2a4]
call fcn.004042bd
mov eax, dword [ebp + 0x2b8]
cmp eax, 2
mov byte [ebp - 4], 1
jae 0x479745
cmp dword [ebp + 0x2bc], esi
jb 0x47970e
mov edx, dword [ebp + 0x2a8]
push edx
call fcn.00479e49
add esp, 4
cmp dword [ebp + 0x2a0], esi
mov dword [ebp + 0x2bc], 7
mov dword [ebp + 0x2b8], ebx
mov word [ebp + 0x2a8], bx
jb 0x479a22
mov eax, dword [ebp + 0x28c]
push eax
call fcn.00479e49
add esp, 4
jmp 0x479a22
lea esi, [eax - 1]
cmp esi, eax
jbe 0x479751
call fcn.0047a2b7
cmp dword [ebp + 0x2bc], 8
mov eax, dword [ebp + 0x2a8]
jae 0x479766
lea eax, [ebp + 0x2a8]
cmp word [eax + esi*2], 0x5c
je 0x47977d
push 0x4b775c
lea ecx, [ebp + 0x2a4]
call fcn.0040cbc0
cmp dword [ebp + 0x2bc], 8
mov eax, dword [ebp + 0x2a8]
jae 0x479792
lea eax, [ebp + 0x2a8]
push eax
call edi
cmp eax, 0xffffffff
je 0x479a0c
test al, 0x10
je 0x479a0c
push 0x250
lea ecx, [ebp]
push ebx
push ecx
mov esi, 1
call fcn.0047a360
push 0x4b8544
lea edx, [ebp + 0x2a4]
push edx
lea eax, [ebp + 0x26c]
push eax
call fcn.0040cbf0
add esp, 0x18
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
mov byte [ebp - 4], 2
jae 0x4797ee
lea eax, [ebp + 0x270]
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], edi
call fcn.004793b0
mov byte [ebp - 4], 3
lea ebx, [ebx]
cmp edi, 0xffffffff
je 0x479942
cmp esi, ebx
je 0x47993b
test byte [ebp], 0x10
je 0x479929
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x4b8538
lea edx, [ebp + 0x2c]
push edx
call esi
test eax, eax
je 0x479929
push 0x4b8540
lea eax, [ebp + 0x2c]
push eax
call esi
test eax, eax
je 0x479929
lea ecx, [ebp + 0x2c]
push ecx
lea ecx, [ebp + 0x250]
call fcn.004042bd
push 1
push 3
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.0043aae0
lea edx, [ebp + 0x250]
push edx
lea eax, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 5
call fcn.0043a2f0
add esp, 8
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 6
call fcn.004793e0
mov dword [ebp - 4], 5
jmp 0x4798cf
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
cmp eax, ebx
ja 0x47990b
jb 0x4798e8
cmp ecx, 0xfffffffd
ja 0x47990b
cmp edx, ebx
je 0x47990b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
push edx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x38], ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00479090
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.00434a80
lea ecx, [ebp + 0x250]
mov byte [ebp - 4], 3
call fcn.00402055
lea ecx, [ebp]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x479810
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edi, edi
cmp dword [ebp - 0x14], ebx
je 0x479963
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
call fcn.00478a20
mov edi, dword [eax + 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push edx
mov esi, ecx
push esi
lea edx, [ebp - 0x24]
push edx
mov byte [ebp - 4], 2
call fcn.00479170
mov eax, dword [ebp - 0x18]
push eax
call fcn.00479e49
mov esi, 8
add esp, 4
cmp dword [ebp + 0x284], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
jb 0x4799ac
mov ecx, dword [ebp + 0x270]
push ecx
call fcn.00479e49
add esp, 4
cmp dword [ebp + 0x2bc], esi
mov dword [ebp + 0x284], 7
mov dword [ebp + 0x280], ebx
mov word [ebp + 0x270], bx
jb 0x4799da
mov edx, dword [ebp + 0x2a8]
push edx
call fcn.00479e49
add esp, 4
cmp dword [ebp + 0x2a0], esi
mov dword [ebp + 0x2bc], 7
mov dword [ebp + 0x2b8], ebx
mov word [ebp + 0x2a8], bx
jb 0x479a08
mov eax, dword [ebp + 0x28c]
push eax
call fcn.00479e49
add esp, 4
mov eax, edi
jmp 0x479a24
lea ecx, [ebp + 0x2a4]
call fcn.00402055
lea ecx, [ebp + 0x288]
call fcn.00402055
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x504]
xor ecx, ebp
call fcn.00479e10
add ebp, 0x508
mov esp, ebp
pop ebp
ret