Function at 0x14000d490
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x140425440]
xor rax, rsp
mov qword [rbp + 0x280], rax
xor ebx, ebx
mov r8d, 0x104
lea rdx, [rbp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000d6d8
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x14000d500
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.14000c390
nop
lea rbx, [rsp + 0x28]
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x40]
cmp rsi, 7
cmova rbx, rdi
mov r14, qword [rsp + 0x38]
test r14, r14
je 0x14000d602
mov r15d, 0x100
mov r8d, r15d
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1402a2d50
lea rcx, [0x14039c860]
lea rdx, [0x14039c864]
movzx eax, word [rcx]
cmp ax, r15w
jae 0x14000d5ad
movzx eax, al
mov byte [rsp + rax + 0x70], 1
add rcx, 2
cmp rcx, rdx
jne 0x14000d561
lea rcx, [r14 - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
movzx eax, word [r8]
cmp ax, r15w
jae 0x14000d5a2
cmp byte [rsp + rax + 0x70], 0
jne 0x14000d5fa
cmp r8, rbx
je 0x14000d602
sub r8, 2
jmp 0x14000d591
lea rcx, [r14 - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
nop dword [rax]
nop word [rax + rax]
mov ecx, 2
lea rax, [0x14039c860]
movzx edx, word [r8]
cmp word [rax], dx
je 0x14000d5fa
add rax, 2
sub rcx, 1
jne 0x14000d5e0
cmp r8, rbx
je 0x14000d602
sub r8, 2
jmp 0x14000d5d0
sub r8, rbx
sar r8, 1
jmp 0x14000d609
mov r8, 0xffffffffffffffff
cmp r8, 0xffffffffffffffff
je 0x14000d6a1
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
cmp r14, r8
cmovb r8, r14
lea rdx, [rsp + 0x28]
cmp rsi, 7
cmova rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.14000c390
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14000d697
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d692
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d70a
call fcn.1400da0f0
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x40]
cmp rsi, 7
jbe 0x14000d6d8
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000d6d0
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d704
mov rcx, rdi
call fcn.1400da0f0
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.1400d9d70
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400e0c38
nop
call fcn.1400e0c38
nop
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x1e0]
mov esi, edx
mov rbx, rcx
test rdi, rdi
je 0x14000d745
mov rcx, rdi
call fcn.1400b3510
mov edx, 8
mov rcx, rdi
call fcn.1400da0f0
mov rcx, qword [rbx + 0x1d8]
test rcx, rcx
je 0x14000d75b
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rbx + 0x1d0]
test rcx, rcx
je 0x14000d771
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
lea rcx, [rbx + 0x28]
call fcn.140008c50
mov rcx, rbx
call fcn.14026b820
test sil, 1
je 0x14000d795
mov edx, 0x1e8
mov rcx, rbx
call fcn.1400da0f0
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret