Function at 0x410ef0
Capabilities:
Check if file exists
Copy file
Create directory
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5420f0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x594ca8]
xor eax, esp
mov dword [esp + 0x2b8], eax
push ebx
push esi
push edi
mov eax, dword [0x594ca8]
xor eax, esp
push eax
lea eax, [esp + 0x2d0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x570574
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x70]
mov ebx, ecx
push eax
mov dword [esp + 0x28], ebx
call fcn.00404260
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x74]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov dword [esp + 0x6c], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410f87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x41160b
jmp 0x410fa4
mov ebx, dword [esp + 0x1c]
test byte [esp + 0x74], 0x10
je 0x41122c
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x14]
call fcn.004040f0
mov dword [esp + 0x2d8], 0
mov esi, dword [esp + 0x10]
mov ecx, 0x570580
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410ffc
test dx, dx
je 0x410ff8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410ffc
add eax, 4
add ecx, 4
test dx, dx
jne 0x410fd6
xor eax, eax
jmp 0x411001
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x411208
mov ecx, 0x570584
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41103b
test dx, dx
je 0x411037
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41103b
add eax, 4
add ecx, 4
test dx, dx
jne 0x411015
xor eax, eax
jmp 0x411040
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x411208
push 0x57058c
lea edx, [esp + 0x2c]
push edi
push edx
call fcn.00404260
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x2f0], 1
call fcn.00403830
add esp, 0x18
mov byte [esp + 0x2d8], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4110a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4110bb
mov edx, dword [esp + 0x14]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esp + 0x18]
push 0x57058c
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00404260
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x2f0], 4
call fcn.00403830
add esp, 0x18
mov ebx, dword [ebp + 0x10]
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov byte [esp + 0x2e4], 5
call fcn.00410ef0
mov byte [esp + 0x2d8], 4
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41112d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2d8], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411155
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4111e0
mov ecx, dword [esp + 0x18]
push 0x57058c
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00404260
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0x2f0], 6
call fcn.00403830
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4111b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2d8], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4111e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2d8], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411208
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2d8], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4115e0
cmp byte [ebp + 0x10], 0
push 0x57058c
push edi
je 0x41140e
lea ecx, [esp + 0x50]
push ecx
call fcn.00404260
lea edx, [esp + 0xac]
push edx
push eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x2f0], 7
call fcn.00404260
mov esi, eax
mov ecx, dword [esp + 0x30]
push 0x57058c
push ecx
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x2fc], 8
call fcn.00404260
lea ecx, [esp + 0xc4]
push ecx
push eax
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0x308], 9
call fcn.00404260
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x30
push 0
push 0
push ebx
push 0x411640
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
mov eax, dword [esp + 0x58]
sete bl
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4112e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2d8], 8
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411307
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2d8], 7
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41132e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2d8], esi
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411354
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x411363
push 0x571860
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x57058c
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.00404260
lea edx, [esp + 0xac]
push edx
push eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x2f0], 0xa
call fcn.00404260
push 0x5710b0
push eax
lea ecx, [esp + 0x80]
push ecx
mov byte [esp + 0x2fc], 0xb
call fcn.00404260
mov eax, dword [eax]
add esp, 0x24
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4113d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2d8], 0xa
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4113fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2d8], esi
mov eax, dword [esp + 0x2c]
jmp 0x4115d3
lea ecx, [esp + 0x54]
push ecx
call fcn.00404260
lea edx, [esp + 0xac]
push edx
push eax
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x2f0], 0xc
call fcn.00404260
mov esi, eax
mov ecx, dword [esp + 0x30]
push 0x57058c
push ecx
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x2fc], 0xd
call fcn.00404260
lea ecx, [esp + 0xc4]
push ecx
push eax
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x308], 0xe
call fcn.00404260
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x30
push 0xb
push ebx
push 0x411640
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
test eax, eax
mov eax, dword [esp + 0x34]
sete bl
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4114ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2d8], 0xd
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4114d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2d8], 0xc
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4114fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2d8], esi
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411521
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x411530
push 0x5718c8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x57058c
lea ecx, [esp + 0x68]
push edi
push ecx
call fcn.00404260
lea edx, [esp + 0xac]
push edx
push eax
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x2f0], 0xf
call fcn.00404260
push 0x5710b0
push eax
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0x2fc], 0x10
call fcn.00404260
mov eax, dword [eax]
add esp, 0x24
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4115a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2d8], 0xf
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4115c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2d8], esi
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4115ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0x74]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410fa0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x2d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.0051553d
mov esp, ebp
pop ebp
ret 0xc