Function at 0x1800bef60
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
lea r13d, [rdx - 0x12]
mov rsi, r9
mov r12, r8
mov r14d, edx
mov r9, rcx
cmp edx, r13d
jbe case.0x1800befde.0
mov rbp, qword [rsp + 0x50]
lea r15d, [rdx - 0x10]
lea rdx, str.NACL_DISABLE_DYNCODE_SYSCALLS
xor ebx, ebx
lea r10, [0x180000000]
movabs r11, 0x2b6109100
lea r8, str.V242_NeighbourLeft_37108_V7d9
nop dword [rax]
cmp r15d, 0x4c
ja case.0x1800befde.18
movzx eax, byte [r10 + r15 + 0xbf35c]
mov ecx, dword [r10 + rax*4 + 0xbf310]
add rcx, r10
jmp rcx
mov rcx, qword [r12]
mov eax, dword [rsi]
mov dword [rcx], eax
jmp case.0x1800befde.18
cmp dword [r12], 1
jl 0x1800bf013
mov rdx, qword [r9]
xor r8d, r8d
mov ecx, 0xd7
call fcn.1800d2880
test eax, eax
jne 0x1800bf099
lea r8, str.V242_NeighbourLeft_37108_V7d9
mov edi, 0xa2
nop dword [rax + rax]
mov eax, edi
sub eax, 0xa2
je 0x1800bf04f
cmp eax, 1
jne 0x1800bf088
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x20], r8
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 1
mov r9d, 0x24
mov rdx, rsi
call fcn.180023820
mov r8, rsi
mov dword [rsp + 0x30], ebx
mov edx, 0x11d
lea rcx, [rsp + 0x30]
call fcn.1800d0f60
inc edi
lea r8, str.V242_NeighbourLeft_37108_V7d9
cmp edi, 0xa4
jb 0x1800bf020
mov r9, qword [rsp + 0xa0]
xor edx, edx
xor ecx, ecx
mov r8d, 0xa7
mov r9, qword [r9]
call fcn.1800fe140
mov rbp, rax
mov r9, qword [rsp + 0xa0]
lea rdx, str.NACL_DISABLE_DYNCODE_SYSCALLS
lea r8, str.V242_NeighbourLeft_37108_V7d9
movabs r11, 0x2b6109100
lea r10, [0x180000000]
jmp case.0x1800befde.18
cmp qword [rsp + 0x50], rbx
jne case.0x1800befde.18
mov dword [rsp + 0x38], 0xffffffff
jmp case.0x1800befde.0
movsxd rcx, dword [r9]
mov eax, 1
mov rdi, qword [rsp + 0x40]
mov rdx, rcx
sub eax, ecx
movsxd rcx, eax
mov rax, qword [rdi + rdx*8 + 0x20]
lea rdx, str.NACL_DISABLE_DYNCODE_SYSCALLS
mov qword [r12 + rcx*8 + 0x20], rax
movsxd rax, dword [r9]
mov qword [rdi + rax*8 + 0x20], r12
jmp case.0x1800befde.18
mov qword [rsp + 0x48], r11
jmp case.0x1800befde.18
mov rax, qword [rsi]
add rax, qword [rsp + 0x48]
imul rax, rax, 0x989680
mov qword [rsp + 0x48], rax
jmp case.0x1800befde.18
test rbp, rbp
je 0x1800bf161
cmp dword [rbp + 0xa0], 0xdead635a
je 0x1800bf1d8
mov edi, 0xf2
cmp edi, 0xf2
je 0x1800bf1a0
cmp edi, 0x1b9
je 0x1800bf184
cmp edi, 0x280
je case.0x1800befde.0
jmp 0x1800bf1ca
mov r8, rsi
mov dword [rsp + 0x30], ebx
mov edx, 0x11d
lea rcx, [rsp + 0x30]
call fcn.1800d0f60
mov dword [rsp + 0x38], ebx
jmp 0x1800bf1c3
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x30]
mov rdx, rsi
mov dword [rsp + 0x30], 1
mov r9d, 0x24
xor r8d, r8d
call fcn.180023820
lea rdx, str.NACL_DISABLE_DYNCODE_SYSCALLS
add edi, 0xc7
cmp edi, 0x347
jb 0x1800bf166
mov eax, dword [rbp]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x28], rbx
mov r9, rsi
mov edx, 0xce
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180071d80
jmp 0x1800bf0b6
mov eax, 1
mov r8, rsi
sub eax, dword [r9]
mov rdx, r12
cdqe
mov ecx, 0xa9
mov rax, qword [r12 + rax*8 + 0x20]
mov r9, rax
mov qword [rsp + 0x40], rax
call fcn.1800d5130
jmp 0x1800bf0b6
mov rdx, rsi
mov ecx, 0xf
call fcn.1800d0d90
mov qword [rsp + 0x50], rax
jmp 0x1800bf0b6
mov eax, 1
sub eax, dword [r9]
cdqe
mov rcx, qword [r12 + rax*8 + 0x20]
test rcx, rcx
je 0x1800bf25e
mov qword [rcx + 0x18], r12
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
jmp case.0x1800befde.18
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [rsp + 0xa8], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800bf0b6
mov rax, qword [rsp + 0x40]
mov qword [r12 + 0x18], rax
jmp case.0x1800befde.18
mov rcx, qword [rsi]
mov rax, qword [r12]
sar rcx, 0x20
mov dword [rax + 4], ecx
jmp case.0x1800befde.18
test rsi, rsi
jne case.0x1800befde.18
mov rax, rbx
jmp 0x1800bf037
mov eax, 0x35
cmp eax, 0x35
je 0x1800bf02e
add eax, 0x3b
cmp eax, 0x70
jb 0x1800bf2c5
dec r14d
dec r15d
cmp r14d, r13d
ja 0x1800befc0
jmp case.0x1800befde.0
neg dword [rsp + 0xa8]
sbb eax, eax
neg eax
dec eax
mov dword [rsp + 0x38], eax
jmp case.0x1800befde.0
mov rax, qword [rsi + 0x10]
jmp 0x1800bf037