Function at 0x468090
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541d26
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x589ed0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x4b8], eax
mov dword [ebp - 0x4b4], ecx
cmp dword [eax + 0x14], 8
mov edi, eax
jb 0x4680d6
mov edi, dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4680ea
test al, 0x10
jne 0x468174
mov esi, edi
test edi, edi
je 0x4683ef
push 0x5c
push esi
call fcn.004d9450
mov esi, eax
add esp, 8
test esi, esi
je 0x468174
cmp word [esi - 2], 0x3a
je 0x46816f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x468111
sub ecx, edx
mov edx, esi
sar ecx, 1
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x468125
sub edx, ebx
sar edx, 1
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x218]
call fcn.0046a610
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46816f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4683ef
add esi, 2
jne 0x4680f4
push dword [ebp - 0x4b4]
lea ecx, [ebp - 0x260]
mov esi, 1
call fcn.00404610
mov edx, 0x56b958
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.0046b090
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x4b0]
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4683d9
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
nop dword [eax + eax]
mov ecx, 0x567d54
lea eax, [ebp - 0x484]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x468216
test dx, dx
je 0x468212
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x468216
add eax, 4
add ecx, 4
test dx, dx
jne 0x4681f0
xor eax, eax
jmp 0x46821b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4683c7
mov ecx, 0x56b944
lea eax, [ebp - 0x484]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x468256
test dx, dx
je 0x468252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x468256
add eax, 4
add ecx, 4
test dx, dx
jne 0x468230
xor eax, eax
jmp 0x46825b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4683c7
push dword [ebp - 0x4b4]
lea ecx, [ebp - 0x248]
call fcn.00404610
push dword [ebp - 0x4b8]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00404610
lea edx, [ebp - 0x484]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.0046b090
lea edx, [ebp - 0x484]
lea ecx, [ebp - 0x230]
call fcn.0046b090
test byte [ebp - 0x4b0], 0x10
je 0x4682ef
push 0x5c
lea ecx, [ebp - 0x248]
call fcn.00418c70
push 0x5c
lea ecx, [ebp - 0x230]
call fcn.00418c70
push 0
push 0
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x248]
call fcn.00468090
test eax, eax
jne 0x468327
xor esi, esi
jmp 0x468327
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
push 0
cmovae ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
push ecx
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
and esi, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x46836b
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x468361
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46840f
push edx
push ecx
call fcn.004b9f4f
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x4683c7
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4683bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46840f
push edx
push ecx
call fcn.004b9f4f
add esp, 8
lea eax, [ebp - 0x4b0]
push eax
push edi
call ebx
test eax, eax
jne 0x4681e0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x260]
call fcn.004066a0
mov eax, esi
jmp 0x4683f1
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 - 0x10]
xor ecx, ebp
call fcn.004ba2f5
mov esp, ebp
pop ebp
ret 8
call fcn.004e4b18
int3