Function at 0x140067560
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0xd0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rbx, r9
mov r15, r8
mov rdi, rdx
mov r12, rcx
mov edx, 0x158
lea rcx, [rbp - 0x69]
call fcn.1400160a0
nop
mov byte [rsp + 0x38], 0
xor esi, esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, r12
call fcn.140063660
nop
mov rax, qword [rbp - 0x51]
cmp rax, 0x10
jb 0x140067621
inc rax
mov rcx, qword [rbp - 0x69]
cmp rax, 0x1000
jb 0x14006761c
test cl, 0x1f
je 0x1400675ef
call fcn.140128ff4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400675fe
call fcn.140128ff4
int3
sub rcx, rax
cmp rcx, 8
jae 0x14006760d
call fcn.140128ff4
int3
cmp rcx, 0x27
jbe 0x140067619
call fcn.140128ff4
int3
mov rcx, rax
call fcn.1400eb7f4
mov qword [rbp - 0x31], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x39], rsi
mov byte [rbp - 0x49], 0
mov qword [rbp - 0x11], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x19], rsi
mov byte [rbp - 0x29], 0
mov qword [rbp - 9], rsi
mov qword [rbp - 1], rsi
mov qword [rbp + 7], r12
xor r13b, r13b
mov r8, r15
mov rdx, rdi
lea rcx, [rbp - 0x49]
call fcn.140067300
test al, al
jne 0x14006766d
mov edi, 1
jmp 0x1400678b3
cmp qword [rbx + 0x18], 0x10
jb 0x140067679
mov rcx, qword [rbx]
jmp 0x14006767c
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov r14, qword [rbp + 0x77]
test eax, eax
je 0x140067740
cmp qword [r14 + 0x18], 0x10
jb 0x14006769a
mov rdx, qword [r14]
jmp 0x14006769d
mov rdx, r14
cmp qword [rbx + 0x18], 0x10
jb 0x1400676a9
mov rcx, qword [rbx]
jmp 0x1400676ac
mov rcx, rbx
mov r8d, 9
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edx, 0x15b
lea rcx, [rbp - 0x69]
call fcn.1400160a0
nop
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, r12
call fcn.140063660
nop
mov rax, qword [rbp - 0x51]
cmp rax, 0x10
jb 0x140067740
inc rax
mov rcx, qword [rbp - 0x69]
cmp rax, 0x1000
jb 0x14006773b
test cl, 0x1f
je 0x14006770e
call fcn.140128ff4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14006771d
call fcn.140128ff4
int3
sub rcx, rax
cmp rcx, 8
jae 0x14006772c
call fcn.140128ff4
int3
cmp rcx, 0x27
jbe 0x140067738
call fcn.140128ff4
int3
mov rcx, rax
call fcn.1400eb7f4
lea rdx, [rbp - 9]
mov rcx, rbx
call fcn.140067240
test al, al
jne 0x140067762
mov edi, 5
mov ecx, 0x9c4
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400677a1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, r15
mov rcx, rbx
call fcn.140067050
mov rcx, rbx
test al, al
jne 0x140067894
call fcn.14000c400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0x9c4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 2
inc esi
cmp esi, 3
jl 0x140067740
cmp qword [r14 + 0x18], 0x10
jb 0x1400677b4
mov rcx, qword [r14]
jmp 0x1400677b7
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1400678b1
cmp qword [rbx + 0x18], 0x10
jb 0x1400677d1
mov rcx, qword [rbx]
jmp 0x1400677d4
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1400678b1
cmp qword [rbx + 0x18], 0x10
jb 0x1400677ec
mov rbx, qword [rbx]
cmp qword [r14 + 0x18], 0x10
jb 0x1400677f6
mov r14, qword [r14]
mov r8d, 9
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edx, 0x15c
lea rcx, [rbp - 0x69]
call fcn.1400160a0
nop
mov byte [rsp + 0x38], 0
xor esi, esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, r12
call fcn.140063660
nop
mov rax, qword [rbp - 0x51]
cmp rax, 0x10
jb 0x1400678b3
inc rax
mov rcx, qword [rbp - 0x69]
cmp rax, 0x1000
jb 0x14006788d
test cl, 0x1f
je 0x140067860
call fcn.140128ff4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14006786f
call fcn.140128ff4
int3
sub rcx, rax
cmp rcx, 8
jae 0x14006787e
call fcn.140128ff4
int3
cmp rcx, 0x27
jbe 0x14006788a
call fcn.140128ff4
int3
mov rcx, rax
call fcn.1400eb7f4
jmp 0x1400678b3
mov r13b, 1
mov rdx, qword [rbp + 0x7f]
call fcn.1400385f0
mov edi, 3
test al, al
mov esi, 0
cmovne edi, esi
jmp 0x1400678b3
xor esi, esi
mov edx, 0x15a
lea rcx, [rbp - 0x69]
call fcn.1400160a0
nop
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8d, edi
mov rdx, rax
mov rcx, r12
call fcn.140063660
nop
mov rax, qword [rbp - 0x51]
cmp rax, 0x10
jb 0x14006793c
inc rax
mov rcx, qword [rbp - 0x69]
cmp rax, 0x1000
jb 0x140067936
test cl, 0x1f
je 0x140067909
call fcn.140128ff4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140067918
call fcn.140128ff4
int3
sub rcx, rax
cmp rcx, 8
jae 0x140067927
call fcn.140128ff4
int3
cmp rcx, 0x27
jbe 0x140067933
call fcn.140128ff4
int3
mov rcx, rax
call fcn.1400eb7f4
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140067952
call fcn.140153014
mov qword [rbp - 9], rsi
mov qword [rbp - 1], rsi
mov rax, qword [rbp - 0x11]
cmp rax, 0x10
jb 0x1400679a8
inc rax
mov rcx, qword [rbp - 0x29]
cmp rax, 0x1000
jb 0x1400679a3
test cl, 0x1f
je 0x140067976
call fcn.140128ff4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140067985
call fcn.140128ff4
int3
sub rcx, rax
cmp rcx, 8
jae 0x140067994
call fcn.140128ff4
int3
cmp rcx, 0x27
jbe 0x1400679a0
call fcn.140128ff4
int3
mov rcx, rax
call fcn.1400eb7f4
mov qword [rbp - 0x11], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x19], rsi
mov byte [rbp - 0x29], 0
mov rax, qword [rbp - 0x31]
cmp rax, 0x10
jb 0x140067a0e
inc rax
mov rcx, qword [rbp - 0x49]
cmp rax, 0x1000
jb 0x140067a09
test cl, 0x1f
je 0x1400679dc
call fcn.140128ff4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400679eb
call fcn.140128ff4
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400679fa
call fcn.140128ff4
int3
cmp rcx, 0x27
jbe 0x140067a06
call fcn.140128ff4
int3
mov rcx, rax
call fcn.1400eb7f4
movzx eax, r13b
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret