Function at 0x410f20
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 0x5421b0
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 0x410fb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x41163b
jmp 0x410fd4
mov ebx, dword [esp + 0x1c]
test byte [esp + 0x74], 0x10
je 0x41125c
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 0x41102c
test dx, dx
je 0x411028
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41102c
add eax, 4
add ecx, 4
test dx, dx
jne 0x411006
xor eax, eax
jmp 0x411031
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x411238
mov ecx, 0x570584
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41106b
test dx, dx
je 0x411067
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41106b
add eax, 4
add ecx, 4
test dx, dx
jne 0x411045
xor eax, eax
jmp 0x411070
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x411238
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 0x4110d0
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 0x4110eb
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.00410f20
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 0x41115d
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 0x411185
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x411210
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 0x4111e8
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 0x411210
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 0x411238
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 0x411610
cmp byte [ebp + 0x10], 0
push 0x57058c
push edi
je 0x41143e
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 0x411670
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 0x411310
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 0x411337
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 0x41135e
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 0x411384
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x411393
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 0x5710ac
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 0x411407
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 0x41142e
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 0x411603
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 0x411670
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 0x4114dd
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 0x411504
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 0x41152b
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 0x411551
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x411560
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 0x5710ac
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 0x4115d1
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 0x4115f8
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 0x41161c
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 0x410fd0
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.005155a4
mov esp, ebp
pop ebp
ret 0xc