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

Disassembly:
push 0xffffffffffffffff
push 0x43e9ee
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x44ef30]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44ef30]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x184], 1
call fcn.00417947
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4099f2
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x18c]
push ecx
lea edx, [esp + 0x2c]
push str._s
push edx
mov byte [esp + 0x190], 2
call fcn.00404d40
mov eax, dword [esp + 0x198]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00402880
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00403190
test al, al
je 0x409e07
mov eax, dword [esp + 0x190]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00402880
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00403190
test al, al
jne 0x409b07
mov eax, dword [esp + 0x190]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x409b07
call fcn.00417947
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409aad
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x190]
push ecx
lea edx, [esp + 0x18]
push str.Could_not_create_directory:_s_n
push edx
mov byte [esp + 0x190], 3
call fcn.00404d40
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x184], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x190]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00402880
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00403190
test al, al
je 0x409e07
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x38]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
jne 0x409b56
lea eax, [esi - 0x10]
jmp 0x409e0e
mov bl, 0xa
jmp 0x409b60
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004087b0
mov edx, dword [esp + 0x18]
push 0x441bc4
push edx
mov byte [esp + 0x18c], 4
call fcn.00424875
add esp, 8
test eax, eax
je 0x409dc0
mov eax, dword [esp + 0x18]
push 0x441bc0
push eax
call fcn.00424875
add esp, 8
test eax, eax
je 0x409dc0
push 0x441bc8
lea ecx, [esp + 0x190]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.004051e0
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x19c], 5
call fcn.00405120
add esp, 0x18
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x184], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x441bc8
lea ecx, [esp + 0x194]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004051e0
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x19c], 8
call fcn.00405120
add esp, 0x18
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x184], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [esp + 0x38], 0x10
je 0x409cb3
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00402880
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
mov byte [esp + 0x190], 0xb
call fcn.00402880
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov ecx, ebp
mov byte [esp + 0x18c], bl
call fcn.00409990
jmp 0x409d70
call fcn.00417947
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4099e8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 1
push ecx
push edx
mov byte [esp + 0x190], 0xc
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x1c]
test eax, eax
mov eax, dword [esp + 0x20]
push eax
lea edx, [esp + 0x18]
push ecx
je 0x409d0a
push str.copied:__s_to__s
jmp 0x409d0f
push str.not_copied:__s_to__s
push edx
call fcn.00404d40
mov esi, dword [esp + 0x24]
add esp, 0x10
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
push esi
call fcn.00402880
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [esp + 0x188], 0xd
call fcn.004038f0
mov ecx, eax
mov byte [esp + 0x188], 0xc
call fcn.00404f60
mov byte [esp + 0x184], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409d70
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x184], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x184], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409dc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x184], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409de8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x38]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409b60
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0x184], 1
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409e2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x184], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x190]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x184], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.00425da1
add esp, 0x174
ret 8