Function at 0x480300
Capabilities:
Check if file exists
Create directory
Enumerate files on windows
Enumerate files recursively
Get file size
Move file
Read file on windows
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f0a49
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x70f200]
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 ebx, ecx
mov dword [ebp - 0x2a0], ebx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push 0
push esi
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2b0], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x480385
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x480385
push 0
push 0
push esi
push str.Error__Could_not_create_destination_directory:
mov ecx, ebx
call fcn.0045a700
add dword [edi + 0x40], 1
adc dword [edi + 0x44], 0
xor al, al
jmp 0x480a0e
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.005dc5e0
sub esp, 8
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6249f8
push dword [ebp - 0x2a8]
call fcn.005dc520
or esi, 0xffffffff
mov byte [ebp - 0x2a4], 1
mov dword [ebp - 0x298], esi
push 0x260
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.00420090
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.005dc190
push 0x250
mov ebx, eax
lea eax, [ebp - 0x294]
push 0
push eax
call fcn.00420090
add esp, 0xc
lea eax, [ebp - 0x294]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edx, eax
mov dword [ebp - 0x44], edx
cmp edx, esi
je 0x4804c5
mov ecx, 1
mov dword [ebp - 0x40], ecx
nop dword [eax + eax]
cmp word [ebp - 0x268], 0x2e
jne 0x480476
mov ax, word [ebp - 0x266]
test ax, ax
je 0x4804a0
cmp ax, 0x2e
jne 0x480476
cmp word [ebp - 0x264], 0
je 0x4804a0
test ecx, ecx
je 0x4804c5
mov eax, dword [ebp - 0x294]
test cl, 1
je 0x48048c
test eax, 0x400
jne 0x4804a0
test cl, 2
je 0x480497
test al, 0x10
je 0x4804c5
jmp 0x4804a0
test cl, 4
je 0x4804c5
test al, 0x10
jne 0x4804c5
lea eax, [ebp - 0x294]
push eax
push edx
call ebx
test eax, eax
je 0x4804b6
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
jmp 0x480450
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_FindClose]
or edx, 0xffffffff
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 3
cmp edx, 0xffffffff
je 0x4809e6
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
add ecx, 1
push 0
push 0x1f4
push dword [edi + 0x4c]
adc eax, 0
mov dword [ebp - 0x2ac], ecx
push dword [edi + 0x48]
mov dword [ebp - 0x20], eax
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], eax
call fcn.0042fc20
push dword [edi + 0x54]
push dword [edi + 0x50]
push edx
push eax
call fcn.0042fd90
push 0
push 0x1f4
push dword [ebp - 0x20]
mov ebx, eax
push dword [ebp - 0x2ac]
call fcn.0042fc20
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edx
push eax
call fcn.0042fd90
add ebx, eax
cmp dword [edi], 0
mov dword [edi + 0x10], ebx
jne 0x4809d7
nop
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x268]
push eax
push 0x624284
push dword [ebp - 0x2a8]
lea ecx, [ebp - 0x2c]
call fcn.005dc200
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x268]
push eax
push 0x624284
push dword [ebp - 0x2b0]
lea ecx, [ebp - 0x1c]
call fcn.005dc200
mov ecx, dword [ebp - 0x294]
test cl, 0x10
je 0x4805db
push edi
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x2c]
call fcn.005dc190
mov ecx, dword [ebp - 0x2a0]
push eax
call fcn.00480300
mov edx, dword [ebp - 0x2a4]
movzx ecx, dl
movzx eax, al
imul eax, ecx
mov dword [ebp - 0x2a4], eax
jmp 0x480950
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4805ea
test ecx, eax
jne 0x480950
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [edi + 8]
test cl, 2
je 0x480609
test al, al
jne 0x480950
test cl, 1
je 0x480783
test al, al
je 0x480783
push 0
push 0x2000000
push 3
push 0
push 3
push SysReAllocString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x299], 1
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp esi, 0xffffffff
je 0x480654
test esi, esi
je 0x480654
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
mov dword [ebp - 0x298], esi
test ebx, ebx
jne 0x4806f6
or esi, 0xffffffff
mov dword [ebp - 0x298], esi
mov bl, byte [ebp - 0x299]
cmp esi, 0xffffffff
je 0x48068c
test esi, esi
je 0x48068c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov dword [ebp - 0x298], esi
test bl, bl
jne 0x480783
push 0
mov eax, dword [ebp - 0x274]
add dword [edi + 0x48], eax
mov ecx, dword [ebp - 0x278]
adc dword [edi + 0x4c], ecx
push 0x1f4
push dword [edi + 0x4c]
mov dword [ebp - 0x3c], eax
push dword [edi + 0x48]
mov dword [ebp - 0x38], ecx
call fcn.0042fc20
push dword [edi + 0x54]
push dword [edi + 0x50]
push edx
push eax
call fcn.0042fd90
push 0
push 0x1f4
push dword [edi + 0x34]
mov ebx, eax
push dword [edi + 0x30]
call fcn.0042fc20
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edx
push eax
call fcn.0042fd90
add ebx, eax
mov dword [edi + 0x10], ebx
jmp 0x480950
cmp ebx, 0xffffffff
je 0x48066d
mov eax, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x27c]
mov dword [edi + 0x58], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push esi
mov dword [edi + 0x5c], ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x48066d
mov eax, dword [ebp - 0x30]
lea ebx, [edi + 0x60]
mov ecx, dword [ebp - 0x34]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
cmp dword [edi + 0x5c], eax
jg 0x48066d
jl 0x48074a
cmp dword [edi + 0x58], ecx
ja 0x48066d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x48066d
mov eax, dword [ebp - 0x274]
mov ecx, dword [ebp - 0x278]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
cmp eax, dword [ebx]
jne 0x48077c
cmp ecx, dword [ebx + 4]
jne 0x48077c
xor bl, bl
jmp 0x480673
mov bl, 1
jmp 0x480673
cmp byte [edi + 0xb4], 0
je 0x4807cf
push 1
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x2c]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
test eax, eax
jne 0x480696
push eax
lea ecx, [ebp - 0x2c]
call fcn.005dc190
mov ecx, dword [ebp - 0x2a0]
push eax
push str.Error__Could_not_move_file:
call fcn.0045a700
jmp 0x480950
push 0x2000000
push 0x10
lea ecx, [ebp - 0x2c]
call fcn.005dc190
push eax
lea ecx, [edi + 0x74]
call fcn.005e4120
test eax, eax
jne 0x48080b
push eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.005dc190
mov ecx, dword [ebp - 0x2a0]
push eax
push str.Error__Could_not_open_source_file:
call fcn.0045a700
jmp 0x480950
push SysReAllocString
push 0x16
lea ecx, [ebp - 0x1c]
lea ebx, [edi + 0x94]
call fcn.005dc190
push eax
mov ecx, ebx
call fcn.005e4120
test eax, eax
jne 0x48087f
push 2
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call fcn.005771e0
test eax, eax
je 0x480950
push 0x82000000
push 0x16
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
mov ecx, ebx
call fcn.005e4120
test eax, eax
jne 0x48087f
push eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.005dc190
mov ecx, dword [ebp - 0x2a0]
push eax
push str.Error__Could_not_open_destination_file:
call fcn.0045a700
jmp 0x480950
cmp dword [edi], 0
jne 0x48092f
push 0
lea eax, [ebp - 0x20]
push eax
push 0x200000
push dword [edi + 0x6c]
lea ecx, [edi + 0x74]
call fcn.005e4670
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x480ae0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x480a41
push eax
push dword [edi + 0x6c]
mov ecx, ebx
call fcn.005e3780
mov ecx, dword [ebp - 0x20]
push 0
cmp eax, ecx
jne 0x480a2c
add dword [edi + 0x48], ecx
push 0x1f4
adc dword [edi + 0x4c], 0
push dword [edi + 0x4c]
push dword [edi + 0x48]
call fcn.0042fc20
push dword [edi + 0x54]
push dword [edi + 0x50]
push edx
push eax
call fcn.0042fd90
push 0
push 0x1f4
push dword [edi + 0x34]
mov ebx, eax
push dword [edi + 0x30]
call fcn.0042fc20
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edx
push eax
call fcn.0042fd90
add ebx, eax
mov dword [edi + 0x10], ebx
lea ebx, [edi + 0x94]
cmp dword [edi], 0
je 0x480888
lea ebx, [edi + 0x94]
push ecx
lea ecx, [edi + 0x74]
call fcn.005e36a0
push ecx
mov ecx, ebx
call fcn.005e36a0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push 0
push eax
call fcn.005771e0
mov eax, dword [ebp - 0x44]
cmp eax, 0xffffffff
je 0x4809e6
lea ecx, [ebp - 0x294]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x480b2b
lea ecx, [ebp - 0x294]
call fcn.004011a0
test al, al
je 0x4809d7
add dword [edi + 0x30], 1
push 0
adc dword [edi + 0x34], 0
push 0x1f4
push dword [edi + 0x34]
push dword [edi + 0x30]
call fcn.0042fc20
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edx
push eax
call fcn.0042fd90
push 0
push 0x1f4
push dword [edi + 0x4c]
mov ebx, eax
push dword [edi + 0x48]
call fcn.0042fc20
push dword [edi + 0x54]
push dword [edi + 0x50]
push edx
push eax
call fcn.0042fd90
add ebx, eax
mov dword [edi + 0x10], ebx
cmp dword [edi], 0
je 0x480540
mov edx, dword [ebp - 0x44]
cmp edx, 0xffffffff
je 0x4809e6
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x4809f6
test esi, esi
je 0x4809f6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.005dc430
lea ecx, [ebp - 0x1c]
call fcn.005dc430
mov edx, dword [ebp - 0x2a4]
mov al, dl
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.0041e1b5
mov esp, ebp
pop ebp
ret 0xc
push 0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
push str.Could_not_write_local_file:
jmp 0x480af2
push ecx
lea ecx, [edi + 0x74]
call fcn.005e36a0
push ecx
mov ecx, ebx
call fcn.005e36a0
push dword [ebp - 0x294]
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x2000000
push 3
push 0
push 3
push 0x100
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp esi, 0xffffffff
je 0x480a9a
test esi, esi
je 0x480a9a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
mov dword [ebp - 0x298], esi
test ebx, ebx
jne 0x480ab1
or esi, 0xffffffff
mov dword [ebp - 0x298], esi
jmp 0x480ad2
cmp ebx, 0xffffffff
je 0x480ad2
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [edi], 0
jne 0x4809d7
jmp 0x480950
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.005dc190
push eax
push str.Could_not_read_local_file:
mov ecx, dword [ebp - 0x2a0]
call fcn.0045a700
push ecx
lea ecx, [edi + 0x74]
call fcn.005e36a0
push ecx
mov ecx, ebx
call fcn.005e36a0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push 0
push eax
call fcn.005771e0
add dword [edi + 0x40], 1
adc dword [edi + 0x44], 0
jmp 0x480950
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x44], 0xffffffff
jmp 0x4809e6