Function at 0x1400054a0
Capabilities:
Delete file
Move file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x98]
sub rsp, 0x198
lea rdx, [0x14001ef24]
mov qword [rsp + 0x30], 0
mov r15d, r9d
mov r13d, r8d
mov rbx, rcx
mov edi, 0xffffffff
call fcn.140009f60
mov r12, rax
test rax, rax
jne 0x140005502
lea eax, [r12 + 3]
add rsp, 0x198
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
lea rdx, [0x14001ee28]
mov qword [rsp + 0x190], r14
lea rcx, str.__worktodo__.tmp
call fcn.140009f60
mov r14, rax
test rax, rax
jne 0x140005536
mov rcx, r12
call fcn.140009d70
lea eax, [r14 + 4]
jmp 0x14000578c
mov r9d, dword [rbp + 0xf0]
mov qword [rsp + 0x1e0], rsi
cmp r9d, r13d
jle 0x14000554f
cmp r9d, r15d
jl 0x1400055c8
lea r9, [rsp + 0x30]
mov rcx, r12
lea r8, [rsp + 0x40]
xor esi, esi
lea rdx, [rbp - 0x50]
call fcn.140005960
cmp eax, 1
je 0x1400055c8
mov ebx, 1
inc esi
inc ebx
test eax, eax
jne 0x140005594
mov eax, dword [rbp + 0xd8]
cmp eax, dword [rbp - 0x50]
jne 0x140005590
cmp r13d, dword [rbp - 0x4c]
jne 0x140005590
cmp r15d, dword [rbp - 0x48]
je 0x1400055bc
mov edi, ebx
jmp 0x14000559f
cmp eax, 6
jne 0x14000559f
cmp edi, 0xffffffff
cmove edi, ebx
lea r9, [rsp + 0x30]
mov rcx, r12
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x50]
call fcn.140005960
cmp eax, 1
jne 0x140005571
jmp 0x1400055c1
cmp edi, esi
cmova edi, esi
mov rbx, qword [rbp + 0xd0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov dword [rax], 0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x140005617
mov rcx, r12
call fcn.140009d70
lea rdx, [0x14001ef24]
mov rcx, rbx
call fcn.140009f60
mov r12, rax
test rax, rax
jne 0x140005617
mov rcx, r14
call fcn.140009d70
lea eax, [r12 + 3]
jmp 0x140005784
lea r9, [rsp + 0x30]
mov rcx, r12
lea r8, [rsp + 0x40]
xor ebx, ebx
lea rdx, [rbp - 0x50]
xor esi, esi
call fcn.140005960
cmp eax, 1
je 0x14000573e
nop word [rax + rax]
inc esi
test eax, eax
jne 0x140005703
test ebx, ebx
jne 0x14000570b
mov eax, dword [rbp + 0xd8]
cmp eax, dword [rbp - 0x50]
jne 0x1400056ff
cmp r13d, dword [rbp - 0x4c]
jne 0x1400056ff
cmp r15d, dword [rbp - 0x48]
jne 0x1400056ff
mov eax, dword [rbp + 0xf0]
mov ebx, 1
cmp eax, r13d
jle 0x14000571f
cmp eax, r15d
jge 0x14000571f
lea rdx, str.Factor
mov rcx, r14
call fcn.140001740
lea rcx, [rbp - 0x44]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400056b0
test rax, rax
je 0x1400056d1
lea r8, [rbp - 0x44]
mov rcx, r14
lea rdx, [0x14001f2f4]
call fcn.140001740
mov r9d, dword [rbp + 0xf0]
lea rdx, str._u__u__u
mov r8d, dword [rbp + 0xd8]
mov rcx, r14
mov dword [rsp + 0x20], r15d
call fcn.140001740
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x14000571f
jmp 0x140005710
xor ebx, ebx
jmp 0x14000570b
test ebx, ebx
jne 0x14000570b
cmp esi, edi
jae 0x14000571f
lea r8, [rsp + 0x40]
lea rdx, [0x14001ef5c]
mov rcx, r14
call fcn.140001740
lea r9, [rsp + 0x30]
mov rcx, r12
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x50]
call fcn.140005960
cmp eax, 1
jne 0x140005640
mov rcx, r14
call fcn.140009d70
mov rcx, r12
call fcn.140009d70
test ebx, ebx
jne 0x140005757
lea eax, [rbx + 5]
jmp 0x140005784
mov rbx, qword [rbp + 0xd0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
jne 0x14000577f
mov rdx, rbx
lea rcx, str.__worktodo__.tmp
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
test eax, eax
je 0x140005784
mov eax, 6
mov rsi, qword [rsp + 0x1e0]
mov r14, qword [rsp + 0x190]
add rsp, 0x198
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret