Function at 0x605bf8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x605e94
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x46]
call fcn.00407f58
mov eax, ebx
call fcn.00605490
xor eax, eax
mov dword [ebp - 0x20], eax
cmp byte [ebx + 0xaf], 0
je 0x605e6c
cmp byte [ebx + 0xb1], 3
jne 0x605c86
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00422cc8
lea eax, [ebp - 0x14]
mov edx, 0x605eb0
call fcn.00407f58
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004210cc
test eax, eax
sete al
xor al, 1
jmp 0x605c88
xor eax, eax
test al, al
je 0x605c90
mov al, 1
jmp 0x605ca5
cmp byte [ebx + 0xb1], 2
jne 0x605c9f
cmp dword [ebx + 0x20], 0
je 0x605ca3
xor eax, eax
jmp 0x605ca5
mov al, 1
test al, al
je 0x605e6c
mov dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x24]
call fcn.00407f58
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0042242c
test al, al
je 0x605de9
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0x11
lea ecx, [ebp - 0x30]
mov edx, 0x2b1f
mov eax, dword [ebx + 0xc]
call fcn.00601728
movzx eax, byte [0x605ebc]
or al, byte [ebx + 0x69]
mov byte [ebx + 0x69], al
mov esi, 6
mov eax, dword [ebx + 0x64]
test byte [eax + 4], 1
jne 0x605da8
mov eax, dword [eax + 0x31]
mov edx, dword [eax + 0x121]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x125]
mov dword [ebp - 0x24], edx
cmp word [ebp - 0x26], 0
je 0x605d7a
mov byte [ebx + 0x68], 1
mov eax, dword [ebp - 4]
push eax
movzx eax, byte [ebx + 0x69]
push eax
lea eax, [ebx + 0x68]
push eax
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x31]
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebp - 0x24]
call dword [ebp - 0x28]
cmp byte [ebx + 0x68], 0
jne 0x605d66
mov esi, dword [ebx + 0x64]
movzx eax, byte [esi + 4]
or al, byte [0x605ec0]
mov byte [esi + 4], al
mov byte [ebx + 0x68], 1
cmp byte [ebx + 0x68], 1
jne 0x605d73
mov esi, 6
jmp 0x605da8
mov esi, 7
jmp 0x605da8
push 0x102716
movzx eax, word [0x605ec4]
push eax
lea ecx, [ebp - 0x34]
mov edx, 0x2b5e
mov esi, dword [ebx + 0xc]
mov eax, esi
call fcn.006017a0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.006019c0
mov esi, eax
test esi, esi
jne 0x605dbb
xor ecx, ecx
mov edx, 0x2afe
mov eax, dword [ebx + 0xc]
call fcn.00601368
cmp esi, 7
jne 0x605ddc
push 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0x11
lea ecx, [ebp - 0x30]
mov edx, 0x2b2a
mov eax, dword [ebx + 0xc]
call fcn.00600d1c
cmp esi, 6
jne 0x605de9
mov eax, dword [ebp - 4]
call fcn.00422920
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0042242c
test al, al
je 0x605e6c
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00407f58
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
call fcn.00407f58
mov eax, dword [ebp - 0x1c]
call fcn.00408bc4
push eax
mov eax, dword [ebp - 0x18]
call fcn.00408bc4
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov esi, dword [ebx + 0xc]
cmp byte [esi + 0x6c], 1
jb 0x605e6c
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0x11
mov eax, dword [ebp - 4]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0x11
lea edx, [ebp - 0x48]
mov ecx, 1
mov eax, 0x605ed4
call fcn.004239f8
mov edx, dword [ebp - 0x38]
mov eax, esi
call fcn.006007b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x605e9b
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00407b90
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00407b90
ret