Function at 0x4166e0
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x1a5c
call fcn.00462080
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x1a58], eax
push ebx
mov ebx, dword [esp + 0x1a68]
push ebp
mov ebp, dword [esp + 0x1a68]
push esi
push edi
push 0
push ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x416727
mov dword [esp + 0x10], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0xa72]
push ecx
mov word [esp + 0xa74], ax
call fcn.00460290
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x127e]
push eax
mov word [esp + 0x1280], dx
call fcn.00460290
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x28a]
push edx
mov word [esp + 0x28c], cx
call fcn.00460290
mov eax, ebp
add esp, 0x24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416786
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
mov edi, 0x5c
cmp word [ebp + eax*2 - 2], di
je 0x4167af
push 0x49bcb8
push ebp
call esi
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4167b4
sub eax, edx
sar eax, 1
cmp word [ebx + eax*2 - 2], di
je 0x4167d2
push 0x49bcb8
push ebx
call esi
push ebp
lea eax, [esp + 0xa6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x489ca4
lea ecx, [esp + 0xa6c]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xa6c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x416811
xor eax, eax
jmp 0x416938
test edi, edi
je 0x41692d
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
nop
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41692d
lea edx, [esp + 0x44]
push edx
push ebp
lea eax, [esp + 0x1270]
push 0x48a788
push eax
call esi
lea ecx, [esp + 0x54]
push ecx
push ebx
lea edx, [esp + 0x280]
push 0x48a788
push edx
call esi
add esp, 0x20
test byte [esp + 0x18], 0x10
jne 0x41688a
push 0
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x1270]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x416820
mov dword [esp + 0x10], eax
jmp 0x416820
mov ecx, 0x48a784
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4168b9
test dx, dx
je 0x4168b5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4168b9
add eax, 4
add ecx, 4
test dx, dx
jne 0x416893
xor eax, eax
jmp 0x4168be
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416820
mov ecx, 0x489c88
lea eax, [esp + 0x44]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4168f6
test dx, dx
je 0x4168f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4168f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4168d0
xor eax, eax
jmp 0x4168fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416820
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0x126c]
push eax
call fcn.004166e0
test eax, eax
jne 0x416820
mov dword [esp + 0x10], eax
jmp 0x416820
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1a68]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00460f10
add esp, 0x1a5c
ret 8