Function at 0x180004410
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rsi, r8
movzx edi, dl
mov rbx, rcx
je 0x1800043f5
cmp qword [rcx + 0x18], 8
jb 0x18000434d
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800043f5
mov rcx, rbx
call fcn.180003f40
test al, al
je 0x180004379
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x180004386
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800043f5
test dil, dil
je 0x1800043f5
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1800043a2
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1800043c4
and eax, 0xfffffffe
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800043bc
mov rcx, qword [rbx]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1800043d1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800043f5
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x180004410
mov rbx, qword [rsp + 0x30]
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x278]
sub rsp, 0x340
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x1800470b8]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r15, rdx
mov r14, rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp - 0x80]
call fcn.180019630
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
lea rdx, [0x180040328]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
movdqa xmm0, xmmword [0x180040ba0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r13w
mov r10, r14
mov rdi, qword [r14 + 0x18]
cmp rdi, 8
jb 0x1800044af
mov r10, qword [r14]
mov r11, qword [r14 + 0x10]
mov rsi, 0xffffffffffffffff
lea r12, str..tmp
cmp r11, 4
jb 0x180004523
lea rbx, [r11 - 3]
lea rbx, [r10 + rbx*2]
mov rcx, r10
mov rax, rbx
sub rax, rcx
sar rax, 1
je 0x180004523
cmp word [rcx], 0x2e
je 0x1800044ed
add rcx, 2
sub rax, 1
jmp 0x1800044db
test rcx, rcx
je 0x180004523
mov r8d, 4
mov rdx, r12
mov r9, rcx
sub r9, r12
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x18000451d
add rdx, 2
sub r8, 1
jne 0x180004501
sub rcx, r10
sar rcx, 1
jmp 0x180004526
add rcx, 2
jmp 0x1800044d2
mov rcx, rsi
cmp ecx, esi
je 0x18000464f
movdqa xmm0, xmmword [0x180040ba0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r13w
movsxd r8, ecx
add r8, 4
cmp r11, r8
cmovb r8, r11
mov rdx, r14
cmp rdi, 8
jb 0x18000455c
mov rdx, qword [r14]
lea rcx, [rsp + 0x40]
call fcn.180003d10
nop
lea rax, [rbp - 0x80]
mov rdx, rsi
nop
inc rdx
cmp word [rax + rdx*2], 0
jne 0x180004570
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x1800045c4
lea rdi, [rcx + rdx]
mov qword [rsp + 0x50], rdi
lea rbx, [rsp + 0x40]
cmp r8, 8
cmovae rbx, qword [rsp + 0x40]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
lea rdx, [rbp - 0x80]
call fcn.1800191d0
mov word [rbx + rdi*2], r13w
lea rax, [rsp + 0x40]
jmp 0x1800045da
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x80]
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.180004fa0
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
lea rcx, [rsp + 0x60]
call fcn.180003ed0
movups xmmword [rsp + 0x60], xmm6
movups xmmword [rsp + 0x70], xmm7
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180004827
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004822
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000499a
jmp 0x180004822
movdqa xmm0, xmmword [0x180040ba0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r13w
mov dword [rsp + 0x30], 4
lea rdx, [r11 + 4]
lea rcx, [rsp + 0x40]
call fcn.180005150
mov r9, r14
cmp qword [r14 + 0x18], 8
jb 0x180004686
mov r9, qword [r14]
mov rdx, qword [r14 + 0x10]
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x1800046ce
lea rdi, [rcx + rdx]
mov qword [rsp + 0x50], rdi
lea rbx, [rsp + 0x40]
cmp r8, 8
cmovae rbx, qword [rsp + 0x40]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call fcn.1800191d0
mov word [rbx + rdi*2], r13w
jmp 0x1800046e0
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.180004fa0
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rax, r8
sub rax, rcx
cmp rax, 4
jb 0x180004727
lea rdi, [rcx + 4]
mov qword [rsp + 0x50], rdi
lea rbx, [rsp + 0x40]
cmp r8, 8
cmovae rbx, qword [rsp + 0x40]
lea rcx, [rbx + rcx*2]
mov r8d, 8
mov rdx, r12
call fcn.1800191d0
mov word [rbx + rdi*2], r13w
jmp 0x180004744
mov qword [rsp + 0x20], 4
mov r9, r12
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rsp + 0x40]
call fcn.180004fa0
lea rax, [rbp - 0x80]
mov rdx, rsi
nop dword [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x180004750
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x1800047a4
lea rdi, [rcx + rdx]
mov qword [rsp + 0x50], rdi
lea rbx, [rsp + 0x40]
cmp r8, 8
cmovae rbx, qword [rsp + 0x40]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
lea rdx, [rbp - 0x80]
call fcn.1800191d0
mov word [rbx + rdi*2], r13w
lea rax, [rsp + 0x40]
jmp 0x1800047ba
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x80]
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.180004fa0
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
lea rcx, [rsp + 0x60]
call fcn.180003ed0
movups xmmword [rsp + 0x60], xmm6
movups xmmword [rsp + 0x70], xmm7
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180004827
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004822
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800049a0
call fcn.180017cf8
cmp qword [r15 + 0x10], 0
je 0x1800048d1
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r8, rax
mov edx, 0x104
lea rcx, [rbp]
call fcn.180020624
lea rax, [rbp]
nop
inc rsi
cmp word [rax + rsi*2], 0
jne 0x180004860
mov r8, rsi
lea rdx, [rbp]
lea rcx, [rsp + 0x60]
call fcn.180003d10
mov r9, qword [r15 + 0x10]
mov rcx, r15
mov rax, qword [r15 + 0x18]
cmp rax, 8
jb 0x18000488f
mov rcx, qword [r15]
cmp word [rcx + r9*2 - 2], 0x5c
je 0x1800048b9
mov r9d, 1
lea r8, [0x18004033c]
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1800049b0
mov rax, qword [r15 + 0x18]
mov r9, qword [r15 + 0x10]
cmp rax, 8
jb 0x1800048c2
mov r15, qword [r15]
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1800049b0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
cmp qword [r14 + 0x18], 8
jb 0x1800048ec
mov r14, qword [r14]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x18000491d
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bl
jmp 0x18000491f
xor bl, bl
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18000495d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004958
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004994
call fcn.180017cf8
movzx eax, bl
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.180017e90
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18001c36c
nop
call fcn.18001c36c
nop
call fcn.18001c36c
int3