Function at 0x47c680
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 0x4c44bf
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x4e880c]
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 [0x4cfa64]
mov eax, dword [str.UserDataSet]
mov edx, dword [0x4cfa68]
mov dword [ebp + 0x4f0], ecx
mov ecx, dword [0x4cfa70]
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 [0x4cfa6c]
mov dword [ebp + 0x4f4], edx
mov edx, dword [0x4cfa74]
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.0047c370
add esp, 4
test eax, eax
jne 0x47c769
cmp dword [ebp + 0x2a0], 8
jb 0x47cb52
mov ecx, dword [ebp + 0x28c]
push ecx
call fcn.0048c049
add esp, 4
jmp 0x47cb52
mov eax, dword [ebp + 0x28c]
mov esi, 8
cmp dword [ebp + 0x2a0], esi
jae 0x47c782
lea eax, [ebp + 0x28c]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
jne 0x47c7b0
cmp dword [ebp + 0x2a0], esi
jb 0x47cb52
mov edx, dword [ebp + 0x28c]
push edx
call fcn.0048c049
add esp, 4
jmp 0x47cb52
push 0x206
lea eax, [ebp + 0x2c2]
push ebx
push eax
mov word [ebp + 0x2c0], bx
call fcn.0048c300
mov eax, dword [ebp + 0x28c]
add esp, 0xc
cmp dword [ebp + 0x2a0], esi
jae 0x47c7e0
lea eax, [ebp + 0x28c]
push eax
push 0x104
lea ecx, [ebp + 0x2c0]
push ecx
push 0x4d39d0
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 0x47c875
cmp dword [ebp + 0x2bc], esi
jb 0x47c83e
mov edx, dword [ebp + 0x2a8]
push edx
call fcn.0048c049
add esp, 4
cmp dword [ebp + 0x2a0], esi
mov dword [ebp + 0x2bc], 7
mov dword [ebp + 0x2b8], ebx
mov word [ebp + 0x2a8], bx
jb 0x47cb52
mov eax, dword [ebp + 0x28c]
push eax
call fcn.0048c049
add esp, 4
jmp 0x47cb52
lea esi, [eax - 1]
cmp esi, eax
jbe 0x47c881
call fcn.0048c687
cmp dword [ebp + 0x2bc], 8
mov eax, dword [ebp + 0x2a8]
jae 0x47c896
lea eax, [ebp + 0x2a8]
cmp word [eax + esi*2], 0x5c
je 0x47c8ad
push 0x4caa50
lea ecx, [ebp + 0x2a4]
call fcn.0040dab0
cmp dword [ebp + 0x2bc], 8
mov eax, dword [ebp + 0x2a8]
jae 0x47c8c2
lea eax, [ebp + 0x2a8]
push eax
call edi
cmp eax, 0xffffffff
je 0x47cb3c
test al, 0x10
je 0x47cb3c
push 0x250
lea ecx, [ebp]
push ebx
push ecx
mov esi, 1
call fcn.0048c300
push 0x4cda24
lea edx, [ebp + 0x2a4]
push edx
lea eax, [ebp + 0x26c]
push eax
call fcn.0040dae0
add esp, 0x18
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
mov byte [ebp - 4], 2
jae 0x47c91e
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.0047c4e0
mov byte [ebp - 4], 3
lea ebx, [ebx]
cmp edi, 0xffffffff
je 0x47ca72
cmp esi, ebx
je 0x47ca6b
test byte [ebp], 0x10
je 0x47ca59
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x4cda18
lea edx, [ebp + 0x2c]
push edx
call esi
test eax, eax
je 0x47ca59
push 0x4cda20
lea eax, [ebp + 0x2c]
push eax
call esi
test eax, eax
je 0x47ca59
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.0043e0b0
lea edx, [ebp + 0x250]
push edx
lea eax, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 5
call fcn.0043dad0
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.0047c510
mov dword [ebp - 4], 5
jmp 0x47c9ff
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
cmp eax, ebx
ja 0x47ca3b
jb 0x47ca18
cmp ecx, 0xfffffffd
ja 0x47ca3b
cmp edx, ebx
je 0x47ca3b
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.0047c1c0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.0043a950
lea ecx, [ebp + 0x250]
mov byte [ebp - 4], 3
call fcn.00402039
lea ecx, [ebp]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x47c940
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edi, edi
cmp dword [ebp - 0x14], ebx
je 0x47ca93
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.0047bb50
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.0047c2a0
mov eax, dword [ebp - 0x18]
push eax
call fcn.0048c049
mov esi, 8
add esp, 4
cmp dword [ebp + 0x284], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
jb 0x47cadc
mov ecx, dword [ebp + 0x270]
push ecx
call fcn.0048c049
add esp, 4
cmp dword [ebp + 0x2bc], esi
mov dword [ebp + 0x284], 7
mov dword [ebp + 0x280], ebx
mov word [ebp + 0x270], bx
jb 0x47cb0a
mov edx, dword [ebp + 0x2a8]
push edx
call fcn.0048c049
add esp, 4
cmp dword [ebp + 0x2a0], esi
mov dword [ebp + 0x2bc], 7
mov dword [ebp + 0x2b8], ebx
mov word [ebp + 0x2a8], bx
jb 0x47cb38
mov eax, dword [ebp + 0x28c]
push eax
call fcn.0048c049
add esp, 4
mov eax, edi
jmp 0x47cb54
lea ecx, [ebp + 0x2a4]
call fcn.00402039
lea ecx, [ebp + 0x288]
call fcn.00402039
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.0048c010
add ebp, 0x508
mov esp, ebp
pop ebp
ret