Function at 0x18003ae70
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xe0
mov rax, qword [0x1800bf580]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15, qword [rbp + 0x77]
lea ebx, [r8 + 0x11]
mov qword [rbp - 0x59], r9
mov r10, r9
mov qword [rbp - 0x69], rdx
mov r9, rdx
mov rdx, qword [rbp + 0x7f]
mov r14, rcx
mov qword [rbp - 0x51], rdx
mov dword [rbp - 0x41], r8d
mov dword [rsp + 0x48], ebx
cmp r8d, ebx
jae case.0x18003af0d.7
mov r12, qword [rbp - 0x51]
lea edi, [r8 - 9]
mov r13d, dword [rbp - 0x71]
lea r8, [0x180000000]
mov ebx, dword [rbp - 0x71]
xor esi, esi
mov eax, dword [rsp + 0x48]
mov dword [rbp - 0x49], edi
nop dword [rax + rax]
cmp edi, 0x28
ja case.default.0x18003af0d
movzx eax, byte [r8 + rdi + 0x3b544]
mov ecx, dword [r8 + rax*4 + 0x3b504]
add rcx, r8
jmp rcx
mov r12, qword [rdx]
jmp case.0x18003af0d.15
mov dword [rdx + 0x24], esi
jmp case.0x18003af0d.15
mov qword [rdx + 0x18], 0
mov dword [rdx + 0x20], esi
mov dword [rdx + 0x28], esi
jmp case.0x18003af0d.15
mov eax, dword [0x1800978f4]
movsd xmm0, qword [str.0nS7]
mov dword [rbp - 0x39], 0x49
mov dword [rbp - 0x37], 0x2b
mov dword [rbp - 0x35], eax
movzx eax, word [0x180097908]
mov word [rbp - 0x29], ax
movsd qword [rbp - 0x31], xmm0
jmp case.0x18003af0d.15
lea rcx, [rbp - 0x39]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x18003af70
mov eax, dword [0x18009790c]
mov dword [rcx], eax
movzx eax, word [0x180097910]
mov word [rcx + 4], ax
jmp case.0x18003af0d.15
mov dword [rbp - 0x19], 0x4d
mov dword [rbp - 0x17], 0x70
jmp case.0x18003af0d.15
lea rcx, [rbp - 0x39]
mov byte [0x1811121f0], 1
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [rbp - 0x5d], 1
jmp 0x18003b29b
movzx eax, word [r15]
mov rsi, qword [rbp + 0x67]
mov word [r9], ax
movzx eax, word [r14]
mov word [r9 + 2], ax
mov eax, dword [r14]
movsxd r8, dword [r15]
imul eax, r13d
movsxd rdx, eax
movzx eax, byte [rsi]
add rdx, r12
mov byte [r8 + rdx], al
test ebx, ebx
js 0x18003b299
nop dword [rax]
nop dword [rax + rax]
mov eax, 0xe7
mov dword [rbp - 0x45], eax
nop dword [rax + rax]
movsxd rdi, ebx
sub eax, 0xe7
je 0x18003b3ac
sub eax, 1
je 0x18003b3a4
sub eax, 1
je 0x18003b2d0
cmp eax, 1
jne 0x18003b27b
mov rcx, qword [rbp + 0x6f]
lea eax, [rbx + 3]
cmp eax, dword [rcx]
jge 0x18003b10d
movzx eax, byte [r10]
lea r9, [rbp - 0x79]
mov byte [rsp + 0x40], al
lea rdx, [rsp + 0x40]
mov eax, dword [r14]
lea rcx, [rbp - 0x71]
mov dword [rsp + 0x58], eax
mov r8, r12
mov eax, dword [r15]
dec eax
mov dword [rsp + 0x30], 0xbd
mov dword [rbp - 0x79], eax
mov eax, dword [rbp - 0x61]
mov dword [rbp - 0x71], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], r13d
call fcn.180061c00
test eax, eax
je 0x18003b105
mov rcx, qword [rbp - 0x69]
mov r9d, 0xae
lea r10, [rcx + rdi*2]
nop dword [rax]
mov eax, r9d
sub eax, 0xae
je 0x18003b0ed
cmp eax, 1
jne 0x18003b0f4
movzx eax, word [r15]
dec ax
mov word [r10], ax
movzx eax, word [r14]
mov word [r10 + 2], ax
mov eax, dword [r14]
movsxd r8, dword [r15]
imul eax, r13d
movsxd rdx, eax
movzx eax, byte [rsi]
add rdx, r12
mov byte [r8 + rdx - 1], al
jmp 0x18003b0f4
add ebx, 2
add r10, 4
inc r9d
cmp r9d, 0xb0
jb 0x18003b0b0
mov r9, rcx
jmp 0x18003b109
mov r9, qword [rbp - 0x69]
mov r10, qword [rbp - 0x59]
mov rdi, qword [rbp + 0x6f]
lea eax, [rbx + 3]
cmp eax, dword [rdi]
jge 0x18003b1ac
movzx eax, byte [r10]
lea r9, [rsp + 0x58]
mov byte [rsp + 0x40], al
lea rdx, [rsp + 0x40]
mov eax, dword [r14]
lea rcx, [rsp + 0x50]
inc eax
mov dword [rsp + 0x30], 0xbd
mov dword [rbp - 0x79], eax
mov r8, r12
mov eax, dword [r15]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp - 0x61]
mov dword [rsp + 0x50], eax
lea rax, [rbp - 0x71]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x71], r13d
call fcn.180061c00
mov r9, qword [rbp - 0x69]
test eax, eax
je 0x18003b1ac
movzx eax, word [r15]
movsxd rcx, ebx
mov word [r9 + rcx*2 + 4], ax
movzx eax, word [r14]
inc ax
mov word [r9 + rcx*2 + 6], ax
mov eax, dword [r14]
movsxd rdx, dword [r15]
inc eax
imul eax, r13d
movsxd rcx, eax
movzx eax, byte [rsi]
add rcx, r12
add ebx, 2
mov byte [rdx + rcx], al
lea eax, [rbx + 3]
cmp eax, dword [rdi]
jge 0x18003b277
mov rax, qword [rbp - 0x59]
lea r9, [rsp + 0x58]
mov dword [rsp + 0x30], 0xbd
lea rdx, [rsp + 0x40]
mov r8, r12
mov dword [rbp - 0x71], r13d
lea rcx, [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x40], al
mov eax, dword [r14]
dec eax
mov dword [rbp - 0x79], eax
mov eax, dword [r15]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp - 0x61]
mov dword [rsp + 0x50], eax
lea rax, [rbp - 0x71]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
call fcn.180061c00
test eax, eax
je 0x18003b273
mov rcx, qword [rbp - 0x69]
mov r8d, 0x9f
movsxd rax, ebx
lea r9, [rcx + rax*2]
mov eax, r8d
sub eax, 0x9f
je 0x18003b24b
cmp eax, 0x5e
jne 0x18003b266
mov eax, dword [r14]
movsxd rdx, dword [r15]
dec eax
imul eax, r13d
movsxd rcx, eax
movzx eax, byte [rsi]
add rcx, r12
mov byte [rdx + rcx], al
jmp 0x18003b266
movzx eax, word [r15]
add r9, 4
add ebx, 2
mov word [r9], ax
movzx eax, word [r14]
dec ax
mov word [r9 + 2], ax
add r8d, 0x5e
cmp r8d, 0x15b
jb 0x18003b222
mov r9, qword [rbp - 0x69]
mov r10, qword [rbp - 0x59]
mov eax, dword [rbp - 0x45]
inc eax
mov dword [rbp - 0x45], eax
cmp eax, 0xeb
jb 0x18003b010
test ebx, ebx
jns 0x18003b000
mov edi, dword [rbp - 0x49]
xor esi, esi
mov rdx, qword [rbp - 0x51]
lea r8, [0x180000000]
mov eax, dword [rsp + 0x48]
mov r9d, dword [rbp - 0x41]
inc edi
inc r9d
mov dword [rbp - 0x49], edi
mov dword [rbp - 0x41], r9d
cmp r9d, eax
jae case.0x18003af0d.7
mov r9, qword [rbp - 0x69]
mov r10, qword [rbp - 0x59]
jmp 0x18003aef0
mov rcx, qword [rbp + 0x6f]
lea eax, [rbx + 3]
cmp eax, dword [rcx]
jge 0x18003b27b
movzx eax, byte [r10]
lea r9, [rsp + 0x58]
mov byte [rsp + 0x40], al
lea rdx, [rsp + 0x40]
mov eax, dword [r14]
lea rcx, [rsp + 0x50]
mov dword [rbp - 0x79], eax
mov r8, r12
mov eax, dword [r15]
inc eax
mov dword [rsp + 0x30], 0xbd
mov dword [rsp + 0x58], eax
mov eax, dword [rbp - 0x61]
mov dword [rsp + 0x50], eax
lea rax, [rbp - 0x71]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x71], r13d
call fcn.180061c00
test eax, eax
je 0x18003b273
mov rcx, qword [rbp - 0x69]
mov r9d, 0x118
lea r10, [rcx + rdi*2]
mov eax, r9d
sub eax, 0x118
je 0x18003b388
sub eax, 0x7d
je 0x18003b372
cmp eax, 0x7d
jne 0x18003b38f
mov eax, dword [r14]
movsxd r8, dword [r15]
imul eax, r13d
movsxd rdx, eax
movzx eax, byte [rsi]
add rdx, r12
mov byte [r8 + rdx + 1], al
jmp 0x18003b38f
movzx eax, word [r15]
inc ax
mov word [r10], ax
movzx eax, word [r14]
mov word [r10 + 2], ax
jmp 0x18003b38f
add ebx, 2
add r10, 4
add r9d, 0x7d
cmp r9d, 0x28f
jb 0x18003b344
mov r9, rcx
jmp 0x18003b277
sub ebx, 2
jmp 0x18003b27b
movzx eax, word [r9 + rdi*2]
mov dword [r15], eax
movzx eax, word [r9 + rdi*2 + 2]
mov dword [r14], eax
jmp 0x18003b27b
mov eax, dword [rdx + 0x10]
mov ebx, esi
mov r13d, dword [rdx + 0xc]
mov dword [rbp - 0x61], eax
jmp case.0x18003af0d.15
mov r8d, 4
mov dword [rbp - 0x15], 0x4b
lea rdx, [0x180097918]
lea rcx, [rbp - 0x13]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
jmp 0x18003b29b
mov dword [rbp - 0x5d], 1
jmp case.0x18003af0d.15
movsd xmm0, qword [0x180097920]
mov eax, dword [0x180097928]
mov dword [rbp - 0x21], eax
movsd qword [rbp - 0x29], xmm0
mov dword [rbp - 0x1f], 0x6a
jmp case.0x18003af0d.15
mov byte [0x1811121f0], 0
mov rdi, rsi
nop
mov rax, qword [rdx]
lea rsi, [rdi + 1]
xor r9d, r9d
mov qword [rbp - 0x71], rax
lea r8, [rbp - 0x71]
mov rcx, rsi
lea edx, [r9 + 0x19]
call fcn.180013e60
lea r8, [0x180000000]
mov qword [r8 + rdi*8 + 0x11121c0], rax
test rax, rax
je 0x18003b4d6
mov rdx, qword [rbp - 0x51]
mov rdi, rsi
cmp rsi, 6
jb 0x18003b430
mov edi, dword [rbp - 0x49]
xor esi, esi
jmp case.0x18003af0d.15
movzx eax, byte [r10]
lea r9, [rsp + 0x58]
mov byte [rsp + 0x40], al
lea rdx, [rsp + 0x40]
mov eax, dword [r14]
lea rcx, [rsp + 0x50]
mov dword [rbp - 0x79], eax
mov r8, r12
mov eax, dword [r15]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp - 0x61]
mov dword [rsp + 0x50], eax
lea rax, [rbp - 0x71]
mov dword [rsp + 0x30], 0xbd
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x71], r13d
call fcn.180061c00
test eax, eax
jne 0x18003b29b
mov eax, esi
jmp 0x18003b4dd
mov byte [rbp - 0x5d], 0
mov eax, dword [rbp - 0x5d]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1800938b0
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret