Function at 0x140005480
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x140124200]
movzx edi, r9b
mov qword [rsp + 0x30], rsi
movzx esi, dl
lea rax, [0x1401278d0]
mov r9d, 2
mov r10d, ecx
test r8b, r8b
je 0x14000556d
inc dword [0x1401278cc]
add rbx, 0x150
mov qword [0x140124200], rbx
mov r8, rbx
nop dword [rax]
lea r8, [r8 + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [r8 - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [r8 - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [r8 - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [r8 - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [r8 - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [r8 - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [r8 - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [r8 - 0x10], xmm1
sub r9, 1
jne 0x1400054d0
movups xmm0, xmmword [rax]
xor edx, edx
lea rcx, [0x14012afc0]
movups xmmword [r8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r8 + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r8 + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r8 + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [r8 + 0x40], xmm0
mov dword [rbx + 0x3c], r10d
call fcn.140037840
jmp 0x1400055ed
mov rcx, rbx
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub r9, 1
jne 0x140005570
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
mov dword [rbx + 0x3c], r10d
cmp dword [0x140127a5c], 0
mov qword [0x14012bbb0], 0
je 0x140005624
mov rax, qword [0x140126a10]
lea rcx, [0x1400ef7d4]
test rax, rax
je 0x14000561e
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test sil, sil
mov rsi, qword [rsp + 0x30]
jne 0x1400056b1
movzx eax, byte [rbx + 0x12e]
test al, al
jne 0x14000565a
cmp dil, 0x65
sete al
mov byte [rbx + 0x12e], al
jne 0x14000565a
mov qword [rbx], 0xffffffffffffffff
mov dword [rbx + 0x34], 0xffffffff
cmp dword [0x14012bbbc], 0
je 0x14000566c
cmp dword [0x14012bbb8], 0
jne 0x140005670
test al, al
je 0x1400056b1
mov byte [rbx + 0x12c], 0
test al, al
jne 0x1400056b1
cmp dword [0x14012bbbc], 0
jge 0x140005699
mov dword [rbx + 0x120], 0xffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x11c], eax
mov eax, dword [0x14012bbbc]
mov dword [rbx + 0x120], eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret