Function at 0x5d2a20
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607d5f
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x69def4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
cmp dword [esi + 0x48], eax
jne 0x5d2bf1
lea eax, [ebp - 0x2c]
cmp eax, ebx
je 0x5d2aa7
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.004070f0
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x3f
push eax
lea ecx, [ebp - 0x2c]
call fcn.00420a80
cmp eax, 0xffffffff
je 0x5d2b2c
push eax
push 0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407510
mov edi, eax
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x5d2b13
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x5d2af6
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407310
xor eax, eax
mov dword [ebp - 0x18], 7
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00406bc0
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x5d2b2c
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00407310
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x2f
push eax
lea ecx, [ebp - 0x2c]
call fcn.00420a80
cmp eax, 0xffffffff
je 0x5d2b74
inc eax
cmp eax, dword [ebx + 0x10]
jae 0x5d2b74
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407510
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405e00
lea ecx, [ebp - 0x74]
call fcn.00405cd0
cmp dword [ebp - 0x1c], 4
jae 0x5d2b91
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x30], 0
je 0x5d2c5a
cmp dword [ebp - 0x1c], 0
je 0x5d2c5a
lea eax, [ebp - 0x2c]
push eax
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.005d2620
push str..temp
push eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
call fcn.004304f0
add esp, 0x18
lea ecx, [ebp - 0x44]
push eax
call fcn.00405e00
lea ecx, [ebp - 0x74]
call fcn.00405cd0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00405cd0
jmp 0x5d2c5a
push str..temp
lea eax, [esi + 0x38]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0041e1d0
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x44]
cmp eax, edi
je 0x5d2c41
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x5d2c24
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00407310
xor eax, eax
mov dword [ebp - 0x30], 7
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.00406bc0
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x5d2c5a
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00407310
or edi, 0xffffffff
cmp dword [ebp - 0x34], 0
mov dword [ebp - 0x94], edi
je 0x5d2f35
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x44]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0xffffffff
je 0x5d2cc4
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call ebx
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call edi
cmp eax, 0xffffffff
je 0x5d2cc4
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], 0
cmovae eax, dword [ebp - 0x44]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x34], 0
je 0x5d2d18
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0
cmovae eax, dword [ebp - 0x44]
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x94], edi
cmp edi, 0xffffffff
je 0x5d2d18
lea ecx, [esi + 0x50]
lea eax, [ebp - 0x44]
cmp ecx, eax
je 0x5d2f3b
push 0xffffffffffffffff
push 0
push eax
call fcn.004070f0
jmp 0x5d2f3b
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
lea edi, [esi + 0x38]
mov byte [ebp - 4], 5
cmp dword [edi + 0x10], eax
jne 0x5d2d7f
lea eax, [ebp - 0x2c]
push eax
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.005d2620
push str..temp1
push eax
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 6
push eax
call fcn.004304f0
add esp, 0x18
lea ecx, [ebp - 0x5c]
push eax
call fcn.00405e00
lea ecx, [ebp - 0x8c]
call fcn.00405cd0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
jmp 0x5d2da3
push str..temp1
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.0041e1d0
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
call fcn.00405e00
lea ecx, [ebp - 0x8c]
call fcn.00405cd0
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5d2dec
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call ebx
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5d2dec
lea ecx, [ebp - 0x5c]
call fcn.005d3800
cmp dword [ebp - 0x4c], 0
jne 0x5d2e80
cmp dword [edi + 0x10], 0
jne 0x5d2e43
lea eax, [ebp - 0x2c]
push eax
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.005d2620
push str..temp2
push eax
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 7
push eax
call fcn.004304f0
add esp, 0x18
lea ecx, [ebp - 0x5c]
push eax
call fcn.00405e00
lea ecx, [ebp - 0x8c]
call fcn.00405cd0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
jmp 0x5d2e67
push str..temp2
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.0041e1d0
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
call fcn.00405e00
lea ecx, [ebp - 0x8c]
call fcn.00405cd0
cmp dword [esi + 0x60], 0
je 0x5d2e80
cmp dword [esi + 0x64], 8
lea eax, [esi + 0x50]
jb 0x5d2e7d
mov eax, dword [eax]
push eax
call ebx
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call ebx
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push 0
cmovae eax, dword [ebp - 0x5c]
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x94], eax
cmp edi, 0xffffffff
je 0x5d2ed3
lea ecx, [esi + 0x50]
lea eax, [ebp - 0x5c]
cmp ecx, eax
je 0x5d2ed3
push 0xffffffffffffffff
push 0
push eax
call fcn.004070f0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00405cd0
cmp edi, 0xffffffff
jne 0x5d2f3b
cmp dword [esi], 0
je 0x5d2f05
push dword [esi + 0x88]
sub esp, 0x18
mov ecx, esp
push 0x67fa18
call fcn.00405c70
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x2c]
call fcn.00405cd0
lea ecx, [ebp - 0x44]
call fcn.00405cd0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005caa5c
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x9c]
mov ecx, esi
mov byte [ebp - 4], 8
push dword [ebp + 8]
push edi
call fcn.005d30c0
cmp dword [esi + 0x30], 0
mov byte [ebp - 0x8d], al
je 0x5d3054
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x8d], 0
mov dword [ebp - 0x94], 0xffffffff
jne 0x5d2f8d
add esi, 0x50
cmp dword [esi + 0x14], 8
jb 0x5d2f85
mov esi, dword [esi]
push esi
call ebx
jmp 0x5d3054
mov eax, dword [esi + 0x60]
lea edi, [esi + 0x50]
add eax, 0xfffffffb
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x8c]
push eax
call fcn.00407510
add esi, 8
push eax
mov ecx, esi
call fcn.00405e00
lea ecx, [ebp - 0x8c]
call fcn.00405cd0
cmp dword [esi + 0x14], 8
jb 0x5d2fc7
mov eax, dword [esi]
jmp 0x5d2fc9
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x5d2fd3
mov ecx, dword [edi]
jmp 0x5d2fd5
mov ecx, edi
push eax
push ecx
call fcn.005df1d9
add esp, 8
test eax, eax
je 0x5d3054
cmp dword [esi + 0x14], 8
jb 0x5d2fed
mov eax, dword [esi]
jmp 0x5d2fef
mov eax, esi
push eax
call ebx
cmp dword [esi + 0x14], 8
jb 0x5d2ffc
mov ecx, dword [esi]
jmp 0x5d2ffe
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x5d3008
mov eax, dword [edi]
jmp 0x5d300a
mov eax, edi
push ecx
push eax
call fcn.005df1d9
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x5d301e
mov ecx, dword [esi]
jmp 0x5d3020
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x5d302a
mov eax, dword [edi]
jmp 0x5d302c
mov eax, edi
push ecx
push eax
call fcn.005df1d9
add esp, 8
test eax, eax
je 0x5d3054
cmp dword [esi + 0x14], 8
jb 0x5d3042
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x5d304a
mov edi, dword [edi]
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x5d3069
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407310
xor eax, eax
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00405cd0
mov al, byte [ebp - 0x8d]
jmp 0x5d2f17