Function at 0x14004b960
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140360448], eax
jle 0x14004b9f9
lea rcx, [0x140360448]
call fcn.140269f54
cmp dword [0x140360448], 0xffffffff
jne 0x14004b9f9
lea rax, [0x140360450]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [0x140360450]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov rcx, rax
call fcn.14002f340
lea rax, [0x140360450]
mov qword [rsp + 0xf0], rax
lea rcx, [0x140310560]
call fcn.140269d78
lea rcx, [0x140360448]
call fcn.140269ef4
lea rax, [0x140360450]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
sar rax, 3
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0x123
jae 0x14004bb56
mov byte [rsp + 0x20], 1
lea rax, [0x140360450]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
sar rax, 3
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
xor rax, 0xaac
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x58], rax
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x25], al
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
movzx eax, byte [rsp + 0x26]
mov byte [rsp + 0x22], al
mov r8, qword [rsp + 0x50]
movzx edx, byte [rsp + 0x22]
lea rcx, [rsp + 0x60]
call fcn.14018c9d0
lea rax, [rsp + 0x64]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
mov ecx, dword [rcx]
mov dword [rax], ecx
lea rax, [rsp + 0x60]
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [0x140360450]
call fcn.140167a10
jmp 0x14004bbc9
lea rax, [0x140360450]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x68]
add rax, 8
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0x118], rax
lea rax, [0x140360450]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov rax, qword [rsp + 0x140]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x14004bc85
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x18], 0x10
jb 0x14004bc1c
mov dword [rsp + 0x28], 1
jmp 0x14004bc24
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x23]
test eax, eax
je 0x14004bc56
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop
mov rcx, qword [rsp + 0x140]
call fcn.140021a50
add rsp, 0x130
pop rdi
ret