Function at 0x5f945c
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x5f9464
push ecx
push ebx
push esi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5f999c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x60cd70]
mov eax, dword [eax]
call fcn.005cd7d0
mov eax, dword [ebp - 0xc]
call fcn.005f9cf4
mov eax, dword [ebp - 0xc]
call fcn.005fa0a4
lea edx, [ebp - 0x14]
mov eax, dword [0x60cd70]
mov eax, dword [eax]
call fcn.005cd17c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3bc]
call fcn.00556344
mov eax, dword [0x60cd70]
mov eax, dword [eax]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3bc]
call fcn.00556858
mov byte [ebp - 0xd], 1
mov eax, dword [0x613d0c]
mov edx, dword [eax]
call dword [edx + 0xa8]
mov edx, 0x5f99b8
mov eax, dword [ebp - 0xc]
call fcn.005f937c
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3d4], 0
je 0x5f97fe
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3cc]
lea eax, [ebp - 0x18]
mov ecx, 0x5f99f4
call fcn.0040a4c0
mov eax, dword [ebp - 0x18]
call fcn.005f8ac8
test al, al
je 0x5f9569
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3d4]
lea eax, [ebp - 0x1c]
mov ecx, 0x5f99f4
call fcn.0040a4c0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3cc]
lea eax, [ebp - 0x20]
mov ecx, 0x5f99f4
call fcn.0040a4c0
mov eax, dword [ebp - 0x20]
mov cl, 1
pop edx
call fcn.005f8950
test al, al
je 0x5f97bc
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3d4]
lea eax, [ebp - 0x24]
mov ecx, 0x5f9a18
call fcn.0040a4c0
mov eax, dword [ebp - 0x24]
call fcn.005f8ac8
test al, al
je 0x5f95a9
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3d4]
lea eax, [ebp - 0x28]
mov ecx, 0x5f9a18
call fcn.0040a4c0
mov eax, dword [ebp - 0x28]
call fcn.00423d60
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3d4]
lea eax, [ebp - 0x2c]
mov ecx, 0x5f99f4
call fcn.0040a4c0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3d4]
lea eax, [ebp - 0x34]
mov ecx, 0x5f99f4
call fcn.0040a4c0
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
mov edx, 0x5f9a3c
call fcn.00423ea4
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x38]
call fcn.0040a254
push eax
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x3c]
call fcn.0040a254
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5f96c3
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3d4]
lea eax, [ebp - 0x40]
mov ecx, 0x5f9a18
call fcn.0040a4c0
mov eax, dword [ebp - 0x40]
call fcn.005f8ac8
test al, al
je 0x5f96c3
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3d4]
lea eax, [ebp - 0x44]
mov ecx, 0x5f9a18
call fcn.0040a4c0
mov eax, dword [ebp - 0x44]
call fcn.00423d60
test al, al
je 0x5f96c3
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3d4]
lea eax, [ebp - 0x48]
mov ecx, 0x5f99f4
call fcn.0040a4c0
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3d4]
lea eax, [ebp - 0x50]
mov ecx, 0x5f99f4
call fcn.0040a4c0
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
mov edx, 0x5f9a3c
call fcn.00423ea4
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x38]
call fcn.0040a254
push eax
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x3c]
call fcn.0040a254
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3cc]
lea eax, [ebp - 0x54]
mov ecx, 0x5f99f4
call fcn.0040a4c0
mov eax, dword [ebp - 0x54]
call fcn.005f8ac8
test al, al
je 0x5f9735
push 0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3d4]
lea eax, [ebp - 0x58]
mov ecx, 0x5f99f4
call fcn.0040a4c0
mov eax, dword [ebp - 0x58]
call fcn.0040a254
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3cc]
lea eax, [ebp - 0x5c]
mov ecx, 0x5f99f4
call fcn.0040a4c0
mov eax, dword [ebp - 0x5c]
call fcn.0040a254
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x5f9795
call fcn.0042b1d8
jmp 0x5f9795
push 0x10
lea edx, [ebp - 0x60]
mov eax, dword [0x60cd70]
mov eax, dword [eax]
call fcn.005cd17c
mov eax, dword [ebp - 0x60]
call fcn.0040a254
push eax
push 0x5f9a54
mov eax, dword [ebp - 0xc]
push dword [eax + 0x3cc]
push 0x5f99f4
push 0x5f9a9c
push 0x5f9aac
lea eax, [ebp - 0x64]
mov edx, 5
call fcn.0040a548
mov eax, dword [ebp - 0x64]
call fcn.0040a254
mov edx, eax
mov eax, dword [0x60cd70]
mov eax, dword [eax]
pop ecx
call fcn.005cdc98
jmp 0x5f9967
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3cc]
lea eax, [ebp - 0x68]
mov ecx, 0x5f99f4
call fcn.0040a4c0
mov eax, dword [ebp - 0x68]
xor ecx, ecx
xor edx, edx
call fcn.005f92f0
jmp 0x5f9967
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3cc]
lea eax, [ebp - 0x6c]
mov edx, 0x5f9b28
call fcn.0040a4c0
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0xc]
call fcn.005f937c
push 0x5f9b60
push 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3d4]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3cc]
mov eax, dword [ebp - 0xc]
call fcn.005f9e10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3d8], 0
je 0x5f984c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3d0]
lea eax, [ebp - 0x70]
mov edx, 0x5f9b28
call fcn.0040a4c0
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0xc]
call fcn.005f937c
push 0x5f9b60
push 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3d8]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3d0]
mov eax, dword [ebp - 0xc]
call fcn.005f9e10
mov eax, dword [0x613d0c]
mov edx, dword [eax]
call dword [edx + 0xa8]
xor edx, edx
push ebp
push 0x5f995d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x613d0c]
mov edx, dword [eax]
call dword [edx + 0xa8]
mov byte [ebp - 0xd], 1
mov eax, dword [0x613d0c]
call fcn.00524b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f9967
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3c8]
mov ecx, 1
mov eax, 0x5f9b74
call fcn.0040a840
mov ecx, eax
dec ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c8]
mov edx, 1
call fcn.0040a630
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 4]
call fcn.004228fc
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3c8]
mov ecx, 1
mov eax, 0x5f9b74
call fcn.0040a840
mov esi, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c8]
mov ebx, eax
test ebx, ebx
je 0x5f98fa
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c8]
mov ecx, ebx
mov edx, esi
call fcn.0040a630
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 8]
call fcn.004228fc
cmp byte [ebp - 0xd], 0
je 0x5f9930
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005f92f0
jmp 0x5f995c
push 0x10
lea edx, [ebp - 0x7c]
mov eax, dword [0x60cd70]
mov eax, dword [eax]
call fcn.005cd17c
mov eax, dword [ebp - 0x7c]
call fcn.0040a254
mov ecx, eax
mov edx, 0x5f9b78
mov eax, dword [0x60cd70]
mov eax, dword [eax]
call fcn.005cdc98
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f99a3
lea eax, [ebp - 0x7c]
mov edx, 0x10
call fcn.0040974c
lea eax, [ebp - 0x34]
mov edx, 9
call fcn.0040974c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040974c
ret