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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x14e
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov edx, dword [ebp + 8]
mov eax, 0x1a50
mov dword [edx + 2], 0x3a7b60dd
mov dword [edx + 6], eax
mov ecx, 0x2d
mov edx, dword [ebp + 8]
mov word [edx + 0x24], cx
mov eax, 0x3d
mov ecx, dword [ebp + 8]
mov word [ecx + 0x26], ax
mov edx, 0x5c
mov eax, dword [ebp + 8]
mov word [eax + 0x2a], dx
mov ecx, 0x6a
mov edx, dword [ebp + 8]
mov word [edx + 0x28], cx
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x2e], ax
mov edx, 0x3b
mov eax, dword [ebp + 8]
mov word [eax + 0x2c], dx
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx + 0x32], cx
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x30], ax
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + 0x34], dx
mov ecx, 0xd
mov edx, dword [ebp + 8]
mov word [edx + 0x16], cx
mov eax, 5
mov ecx, dword [ebp + 8]
mov word [ecx + 0xe], ax
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + 0xa], dx
mov ecx, 0xc
mov edx, dword [ebp + 8]
mov word [edx + 0x10], cx
mov eax, 2
mov ecx, dword [ebp + 8]
mov word [ecx + 0x12], ax
mov edx, 2
mov eax, dword [ebp + 8]
mov word [eax + 0x14], dx
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx + 0xc], cx
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x18], ax
mov edx, 1
mov eax, dword [ebp + 8]
mov word [eax + 0x1a], dx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x142], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x13e], 0
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x1c], ax
mov edx, 1
mov eax, dword [ebp + 8]
mov word [eax + 0x1e], dx
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx + 0x20], cx
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x22], ax
mov edx, dword [ebp + 8]
mov byte [edx + 0x146], 6
mov eax, dword [ebp + 8]
mov byte [eax + 0x147], 0
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx + 0x148], cx
mov eax, dword [ebp + 8]
mov dword [eax + 0x14a], 0
push 0x4327ac
mov ecx, dword [ebp + 8]
add ecx, 0x36
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4327b8
mov edx, dword [ebp + 8]
add edx, 0x76
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 0xc], 0
je 0x418bcc
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0041ec10
add esp, 0xc
push 6
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00418f70
add esp, 8
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418a55
push 0x4327c4
mov eax, dword [ebp + 8]
add eax, 0xb6
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x418af3
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00418e90
add esp, 4
push str..imc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x460], eax
cmp dword [ebp - 0x460], 0xffffffff
je 0x418af3
mov edx, dword [ebp - 0x45c]
and edx, 0x10
jne 0x418aca
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xb6
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 0x460]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x418af3
lea eax, [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0x460]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418af1
mov edx, dword [ebp - 0x460]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x418af3
jmp 0x418a90
push 0xa
lea eax, [ebp - 0x20c]
push eax
call fcn.00418f70
add esp, 8
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418b2f
push 0x4327e4
mov edx, dword [ebp + 8]
add edx, 0xf6
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x418bcc
lea eax, [ebp - 0x20c]
push eax
call fcn.00418e90
add esp, 4
push str..ims
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x45c]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x460], eax
cmp dword [ebp - 0x460], 0xffffffff
je 0x418bcc
mov ecx, dword [ebp - 0x45c]
and ecx, 0x10
jne 0x418ba3
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp + 8]
add eax, 0xb6
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x460]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x418bcc
lea edx, [ebp - 0x45c]
push edx
mov eax, dword [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418bca
mov ecx, dword [ebp - 0x460]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x418bcc
jmp 0x418b6a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d2df
mov esp, ebp
pop ebp
ret