Function at 0x597040
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
xor ebx, ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00406d68
xor eax, eax
push ebp
push 0x59741b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 9], 0
je 0x597096
call fcn.005978b8
test al, al
je 0x5973d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x18]
jl 0x5971e1
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x597434
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x1c]
call fcn.00479c10
push dword [ebp - 0x68]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00407348
mov eax, dword [ebp - 0x14]
call fcn.0047a474
test al, al
je 0x5970ec
mov eax, dword [ebp - 0x14]
call fcn.00406e0c
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x1c]
dec eax
cmp eax, 1
jl 0x59718c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x597434
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x10]
call fcn.00479c10
push dword [ebp - 0x6c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00407348
mov eax, dword [ebp - 0x14]
call fcn.0047a474
test al, al
je 0x59717f
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x597434
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x10]
inc eax
call fcn.00479c10
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.00407348
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 0x14]
call fcn.00406e0c
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x29], al
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
jne 0x597100
push 0
lea eax, [ebp - 0x78]
mov ecx, 0x59744c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
call fcn.00407264
mov eax, dword [ebp - 0x78]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00406e0c
push eax
call sub.kernel32.dll_CopyFileW
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00496d40
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00496cdc
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x597261
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1f], 0
je 0x597214
mov edx, 0x70f538
mov ecx, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00496f48
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 4
jmp 0x597261
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e], 0
je 0x597242
mov word [ebp - 0x16], 0xfeff
lea edx, [ebp - 0x16]
mov ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00496f48
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 2
jmp 0x597261
mov edx, 0x70f534
mov ecx, 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00496f48
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1f], 0
je 0x5972d6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1d], 0
je 0x59729f
call fcn.0047dc38
fstp qword [ebp - 0x38]
wait
push dword [ebp - 0x34]
push dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
mov edx, 0x597464
call fcn.0047e8f8
lea edx, [ebp - 8]
mov ecx, 1
mov eax, dword [ebp - 0x3c]
call fcn.00407680
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00596864
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
add dword [edx + 0x14], eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.004093d0
pop ecx
jmp 0x5973d8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1d], 0
je 0x59730b
call fcn.0047dc38
fstp qword [ebp - 0x48]
wait
push dword [ebp - 0x44]
push dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
mov edx, 0x597464
call fcn.0047e8f8
lea edx, [ebp - 8]
mov ecx, 1
mov eax, dword [ebp - 0x4c]
call fcn.00407680
lea eax, [ebp - 8]
mov edx, 0x5974a4
call fcn.004071a4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e], 0
je 0x59737a
lea eax, [ebp - 8]
call fcn.00407860
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x597343
mov eax, dword [ebp - 0x50]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
add ecx, ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x59736d
mov eax, dword [ebp - 0x58]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
add eax, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x14], eax
jmp 0x5973d8
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004095f8
lea eax, [ebp - 0x1c]
call fcn.004063d0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x5973a7
mov eax, dword [ebp - 0x5c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x5973cf
mov eax, dword [ebp - 0x64]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 4]
add dword [edx + 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x597422
lea eax, [ebp - 0x78]
mov edx, 5
call fcn.00406d78
lea eax, [ebp - 0x4c]
call fcn.00406d70
lea eax, [ebp - 0x3c]
call fcn.00406d70
lea eax, [ebp - 0x1c]
call fcn.00405b98
lea eax, [ebp - 0x14]
call fcn.00406d70
lea eax, [ebp - 8]
call fcn.00406d70
ret