Function at 0x419560
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x45ae53
push eax
mov eax, 0x5488
mov dword fs:[0], esp
call fcn.00456620
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x44]
mov dword [esp + 0x40], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], esi
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54a0], ebx
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x24]
mov byte [esp + 0x54a0], 1
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov byte [esp + 0x54a0], 2
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x18]
mov byte [esp + 0x54a0], 3
call sub.MFC42u.DLL_CString::CString_4
mov ax, word [0x473258]
mov ecx, 0x81
mov word [esp + 0x290], ax
xor eax, eax
lea edi, [esp + 0x292]
mov byte [esp + 0x54a0], 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esi + 0x15c], ebx
jne 0x419b32
mov ebp, dword [sym.imp.MSVCRT.dll_wcsncpy]
lea ecx, [esp + 0x290]
test ecx, ecx
mov dword [esi + 0x15c], 1
je 0x4196d6
mov edx, str.config
mov word [esp + 0x290], bx
test edx, edx
je 0x4196d6
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x1498]
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4196bf
lea eax, [esp + 0x1498]
push 0x800
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x1498]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x1498]
push str.config
lea eax, [esp + 0x149c]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x1498]
push 0x104
lea edx, [esp + 0x294]
push ecx
push edx
jmp 0x4196d1
push 0x104
lea eax, [esp + 0x294]
push str.config
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x290]
push ecx
lea ecx, [esp + 0x20]
call fcn.00456320
push 0x46e348
lea ecx, [esp + 0x20]
call fcn.004562cc
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x30], edi
je 0x419b32
test byte [esp + 0x40], 0x10
je 0x419b17
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea ecx, [esp + 0x6c]
push 0x46e344
push ecx
call esi
add esp, 8
test eax, eax
je 0x419b17
lea edx, [esp + 0x6c]
push 0x46e33c
push edx
call esi
add esp, 8
test eax, eax
je 0x419b17
push str.config_
lea ecx, [esp + 0x18]
call fcn.00456320
push str.config_
lea ecx, [esp + 0x14]
call fcn.00456320
push str.config_
lea ecx, [esp + 0x1c]
call fcn.00456320
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x14]
push eax
call fcn.004562cc
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004562cc
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x18]
push edx
call fcn.004562cc
push str.miniui.xml
lea ecx, [esp + 0x1c]
call fcn.004562cc
push 0x46d988
lea ecx, [esp + 0x14]
call fcn.004562cc
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x10]
push eax
call fcn.004562cc
push 0x46d980
lea ecx, [esp + 0x14]
call fcn.004562cc
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::operator
push str._skin.png
lea ecx, [esp + 0x18]
call fcn.004562cc
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString_4
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x54ac], 5
call fcn.00421940
add esp, 0xc
mov edx, dword [esp + 0x10]
mov byte [esp + 0x54a0], 6
cmp edx, ebx
mov esi, edx
je 0x419af1
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x498]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x498]
test eax, eax
je 0x419af1
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x2498]
push edx
rep stosd dword es:[edi], eax
mov word [esp + 0x49c], bx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4198ca
lea ecx, [esp + 0x2498]
push 0x800
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x2498]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x2498]
push esi
lea ecx, [esp + 0x249c]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x2498]
push 0x400
lea eax, [esp + 0x49c]
push edx
push eax
jmp 0x4198d8
push 0x400
lea ecx, [esp + 0x49c]
push esi
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x498]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x419af1
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x419af1
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0xc98]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc98]
test eax, eax
je 0x419af1
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x3498]
push esi
rep stosd dword es:[edi], eax
mov word [esp + 0xc9c], bx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x419991
lea ecx, [esp + 0x3498]
push 0x800
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x3498]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x3498]
push esi
lea ecx, [esp + 0x349c]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x3498]
push 0x400
lea eax, [esp + 0xc9c]
push edx
push eax
jmp 0x41999f
push 0x400
lea ecx, [esp + 0xc9c]
push esi
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0xc98]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x419af1
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x419af1
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x1498]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1498]
test eax, eax
je 0x419af1
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x4498]
push esi
rep stosd dword es:[edi], eax
mov word [esp + 0x149c], bx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x419a58
lea ecx, [esp + 0x4498]
push 0x800
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x4498]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x4498]
push esi
lea ecx, [esp + 0x449c]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x4498]
push 0x400
lea eax, [esp + 0x149c]
push edx
push eax
jmp 0x419a66
push 0x400
lea ecx, [esp + 0x149c]
push esi
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x1498]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x419af1
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 8], ebx
je 0x419af1
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 0x154]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, ebx
jl 0x419af1
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.004562c0
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x54ac], 7
call fcn.004562c0
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
mov byte [esp + 0x54b0], 8
call fcn.004562c0
mov ecx, esi
mov byte [esp + 0x54ac], 6
call fcn.00417920
lea ecx, [esp + 0x28]
mov byte [esp + 0x54a0], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x54a0], 4
call sub.MFC42u.DLL_CString::CString
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x40]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x419713
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x18]
mov byte [esp + 0x54a0], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x54a0], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x54a0], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54a0], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x54a0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x5498]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5494
ret