Function at 0x140004df0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x140145a80]
movzx edi, r9b
mov qword [rsp + 0x30], rsi
movzx esi, dl
lea rax, [0x14014a240]
mov r9d, 2
mov r10d, ecx
test r8b, r8b
je 0x140004edd
inc dword [0x14014a3b8]
add rbx, 0x150
mov qword [0x140145a80], 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 0x140004e40
movups xmm0, xmmword [rax]
xor edx, edx
lea rcx, [0x14014d8e0]
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.14002c270
jmp 0x140004f5d
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 0x140004ee0
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 [0x14014a3d8], 0
mov qword [0x14014e4c8], 0
je 0x140004f94
mov rax, qword [0x1401481b8]
lea rcx, [0x14010d28c]
test rax, rax
je 0x140004f8e
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 0x140005021
movzx eax, byte [rbx + 0x12e]
test al, al
jne 0x140004fca
cmp dil, 0x65
sete al
mov byte [rbx + 0x12e], al
jne 0x140004fca
mov qword [rbx], 0xffffffffffffffff
mov dword [rbx + 0x34], 0xffffffff
cmp dword [0x14014e4d4], 0
je 0x140004fdc
cmp dword [0x14014e4d0], 0
jne 0x140004fe0
test al, al
je 0x140005021
mov byte [rbx + 0x12c], 0
test al, al
jne 0x140005021
cmp dword [0x14014e4d4], 0
jge 0x140005009
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 [0x14014e4d4]
mov dword [rbx + 0x120], eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret