Function at 0x4a0954
Capabilities:
Enumerate files on windows
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5bdf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x674
lea ecx, [ebp - 0x114]
call fcn.004048c0
mov dword [ebp - 4], 0
mov dword [0x53bd30], 0
push 0x208
push 0
lea eax, [ebp - 0x460]
push eax
call fcn.004b9030
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x460]
push ecx
call fcn.004a0867
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x668]
push edx
call fcn.004b9030
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
push str._sConfig_
lea ecx, [ebp - 0x668]
push ecx
call fcn.004b953d
add esp, 0xc
lea edx, [ebp - 0x668]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4a0a35
push 0
push 0x537d90
push str.Fail_to_find_Config_folder
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x674], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.004dd6c1
mov eax, dword [ebp - 0x674]
jmp 0x4a0c6e
lea eax, [ebp - 0x254]
push eax
push str..ini
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0xffffffff
jne 0x4a0a91
push 0
push 0x537dbc
push str.Not_find_any_.ini_files_of_Config_folder
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x678], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.004dd6c1
mov eax, dword [ebp - 0x678]
jmp 0x4a0c6e
cmp dword [ebp - 0x258], 0xffffffff
je 0x4a0c3f
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x114]
call fcn.004dd84a
lea edx, [ebp - 0x668]
push edx
push 0
lea ecx, [ebp - 0x114]
call fcn.004d2a86
lea ecx, [ebp - 0x114]
call fcn.004048e0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x66c], eax
mov eax, dword [ebp - 0x66c]
and eax, 0x10
test eax, eax
je 0x4a0b0b
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4a0b06
jmp 0x4a0c3f
jmp 0x4a0c3a
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.004b9030
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.004b9290
add esp, 8
push 0x2e
lea eax, [ebp - 0x110]
push eax
call fcn.004b9dd0
add esp, 8
mov dword [ebp - 0x670], eax
mov ecx, dword [ebp - 0x670]
mov byte [ecx], 0
mov edx, dword [0x53bd30]
cmp dword [edx*4 + 0x53b5ac], 0
jne 0x4a0b81
push 0x104
call fcn.004b9b1e
add esp, 4
mov ecx, dword [0x53bd30]
mov dword [ecx*4 + 0x53b5ac], eax
mov edx, dword [0x53bd30]
cmp dword [edx*4 + 0x53b5ac], 0
jne 0x4a0bd9
push 0
push str.ERROR
push str.Fail_to_allocate_memory_to_store_Ini_file_name
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x67c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.004dd6c1
mov eax, dword [ebp - 0x67c]
jmp 0x4a0c6e
push 0x104
push 0
mov ecx, dword [0x53bd30]
mov edx, dword [ecx*4 + 0x53b5ac]
push edx
call fcn.004b9030
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [0x53bd30]
mov edx, dword [ecx*4 + 0x53b5ac]
push edx
call fcn.004b9290
add esp, 8
mov eax, dword [0x53bd30]
add eax, 1
mov dword [0x53bd30], eax
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4a0c3a
jmp 0x4a0c3f
jmp 0x4a0a91
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x680], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.004dd6c1
mov eax, dword [ebp - 0x680]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret