Function at 0x140004db0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x140112060]
movzx edi, r9b
mov qword [rsp + 0x30], rsi
movzx esi, dl
lea rax, [0x140115550]
mov r9d, 2
mov r10d, ecx
test r8b, r8b
je 0x140004e9d
inc dword [0x1401156c8]
add rbx, 0x150
mov qword [0x140112060], 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 0x140004e00
movups xmm0, xmmword [rax]
xor edx, edx
lea rcx, [0x140118bf0]
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.14002bcd0
jmp 0x140004f1d
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 0x140004ea0
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 [0x1401156e8], 0
mov qword [0x1401197d8], 0
je 0x140004f54
mov rax, qword [0x140114798]
lea rcx, [0x1400e0674]
test rax, rax
je 0x140004f4e
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 0x140004fe1
movzx eax, byte [rbx + 0x12e]
test al, al
jne 0x140004f8a
cmp dil, 0x65
sete al
mov byte [rbx + 0x12e], al
jne 0x140004f8a
mov qword [rbx], 0xffffffffffffffff
mov dword [rbx + 0x34], 0xffffffff
cmp dword [0x1401197e4], 0
je 0x140004f9c
cmp dword [0x1401197e0], 0
jne 0x140004fa0
test al, al
je 0x140004fe1
mov byte [rbx + 0x12c], 0
test al, al
jne 0x140004fe1
cmp dword [0x1401197e4], 0
jge 0x140004fc9
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 [0x1401197e4]
mov dword [rbx + 0x120], eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret