Function at 0x409500
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5575da
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x58]
mov esi, dword [ebp + 0xc]
push eax
call fcn.00408200
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00408200
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x40]
xor esi, esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x324], esi
cmovae eax, dword [ebp - 0x40]
push eax
call edi
test eax, eax
jne 0x409584
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0040b060
add esp, 4
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call edi
test eax, eax
je 0x40996b
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00408200
push 4
push 0x574524
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.00404770
cmp dword [ebp - 0x8c], 8
lea ecx, [ebp - 0x320]
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x32c], eax
cmp eax, 0xffffffff
jne 0x4095fe
lea ecx, [ebp - 0xa0]
call fcn.004029d0
xor esi, esi
jmp 0x40996b
mov ecx, SysReAllocString
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov edi, dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x328], eax
cmp edi, 8
jae 0x40963a
movups xmm0, xmmword [eax]
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x409677
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, ecx
lea ecx, [ebp - 0x28]
lea eax, [esi + 1]
push eax
call fcn.00404700
lea ecx, [edi*2 + 2]
mov dword [ebp - 0x28], eax
push ecx
push dword [ebp - 0x328]
push eax
call fcn.004ef620
mov dword [ebp - 0x14], esi
add esp, 0xc
mov esi, dword [ebp - 0x324]
mov dword [ebp - 0x18], edi
push 1
push 0x57446c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00404770
lea ecx, [ebp - 0x2f4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409696
sub ecx, edx
lea eax, [ebp - 0x2f4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00404770
test byte [ebp - 0x320], 0x10
je 0x40975c
cmp word [ebp - 0x2f4], 0x2e
je 0x4098ed
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409703
lea eax, [ebp - 0x28]
push eax
call fcn.0040bad0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040b060
add esp, 8
push 0x57446c
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004078f0
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00407730
push dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
push ecx
push eax
call fcn.00409500
add esp, 0x24
lea ecx, [ebp - 0x88]
mov esi, eax
mov dword [ebp - 0x324], esi
call fcn.004029d0
lea ecx, [ebp - 0x70]
jmp 0x4098e4
cmp dword [ebp + 0x10], 0
je 0x409868
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov dword [ebp - 0x78], 0
cmovae edx, dword [ebp - 0x28]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409790
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x88]
call fcn.004048f0
push 0x57446c
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.004078f0
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00407730
add esp, 0x18
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 8
jb 0x4097ee
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409807
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.004048f0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00409e60
add esp, 8
lea ecx, [ebp - 0x70]
mov esi, eax
mov dword [ebp - 0x324], esi
call fcn.004029d0
lea ecx, [ebp - 0xb8]
call fcn.004029d0
lea ecx, [ebp - 0xd0]
call fcn.004029d0
lea ecx, [ebp - 0x88]
jmp 0x4098e4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4098ed
push 0x57446c
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.004078f0
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 0xa
push ecx
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00407730
add esp, 0x18
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x4098c1
mov eax, dword [eax]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x324], esi
call fcn.004029d0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 3
call fcn.004029d0
mov edi, dword [ebp - 0x32c]
lea eax, [ebp - 0x320]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x409951
mov edx, dword [ebp - 0x14]
mov ecx, SysReAllocString
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x409603
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409942
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a08
push edx
push ecx
call fcn.004845fc
add esp, 8
jmp 0x4095fe
lea ecx, [ebp - 0x28]
call fcn.004029d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0xa0]
call fcn.004029d0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4099a1
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409997
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a08
push edx
push ecx
call fcn.004845fc
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x4099eb
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4099e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a0d
push edx
push ecx
call fcn.004845fc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
call fcn.004faed4
call fcn.004faed4
int3