Function at 0x140036110
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov byte [rcx + 0x290], 1
mov word [rcx + 0xbe0], 0
mov rdi, r8
mov ecx, 0x28
mov rsi, rdx
call fcn.1400b6a80
xor ebp, ebp
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14003616e
lea rcx, vtable.Label.0
mov qword [rax + 0x10], rbp
mov qword [rax], rcx
lea rcx, [0x140103554]
mov qword [rax + 8], rcx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rbp
jmp 0x140036171
mov rax, rbp
mov qword [rbx + 0x6d8], rax
test rax, rax
je 0x14003640b
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.140036fb0
cmp eax, 1
jne 0x14003640b
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
mov dl, 0x68
mov rcx, rbx
call fcn.14003f8d0
test eax, eax
je 0x14003640b
mov rdx, qword [rbx + 0x660]
mov rcx, rbx
call fcn.140048f10
test eax, eax
je 0x14003640b
mov rdx, qword [rbx + 0x660]
mov rcx, rbx
call fcn.140049040
cmp qword [rbx + 0x670], 0
je 0x140036217
mov rax, qword [rbx + 0x660]
mov rcx, qword [rbx + 0x678]
mov qword [rcx + 0x20], rax
mov rcx, qword [rbx + 0x660]
mov rax, qword [rbx + 0x678]
mov qword [rcx + 0x18], rax
mov rax, qword [rbx + 0x670]
mov qword [rbx + 0x660], rax
cmp dword [rbx + 0x698], 0
mov esi, ebp
jle 0x1400362b0
mov qword [rsp + 0x58], r14
mov r14, rbp
nop
mov rax, qword [rbx + 0x690]
mov rdi, qword [r14 + rax]
cmp byte [rdi + 0x79], 0
jne 0x14003629d
test byte [rdi + 0x78], 4
jne 0x14003629d
cmp byte [rdi + 0x7b], 0
jne 0x14003629d
mov r8, qword [rdi + 0x38]
lea r9, [rdi + 0x5c]
mov rdx, rdi
mov byte [rdi + 0x7b], 1
mov rcx, rbx
call fcn.140057cd0
mov r8, qword [rdi + 0x48]
lea r9, [rdi + 0x68]
mov rdx, rdi
mov rcx, rbx
call fcn.140057cd0
mov r8, qword [rdi + 0x40]
lea r9, [rdi + 0x64]
mov rdx, rdi
mov rcx, rbx
call fcn.140057cd0
mov r8, qword [rdi + 0x50]
lea r9, [rdi + 0x70]
mov rdx, rdi
mov rcx, rbx
call fcn.140057cd0
inc esi
add r14, 8
cmp esi, dword [rbx + 0x698]
jl 0x140036230
mov r14, qword [rsp + 0x58]
cmp qword [rbx + 0x270], 0
je 0x1400362de
mov rcx, rbx
call fcn.140044bf0
test eax, eax
je 0x14003640b
mov rcx, qword [rbx + 0x270]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [rbx + 0x270], rbp
cmp dword [0x140143580], 0
je 0x1400362ef
mov rcx, rbx
call fcn.140057e70
mov rcx, qword [rbx + 0xbe8]
test rcx, rcx
je 0x140036314
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [0x140142780]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [rbx + 0x28c]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov dl, 0x68
mov rcx, rbx
call fcn.14003f8d0
test eax, eax
je 0x14003640b
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
mov dl, 0x68
mov rcx, rbx
call fcn.14003f8d0
test eax, eax
je 0x14003640b
mov rcx, qword [rbx + 0x6d8]
xor r9d, r9d
mov rax, qword [rbx + 0x668]
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov qword [rcx + 0x10], rax
mov rcx, rbx
mov rdx, qword [rbx + 0x660]
call fcn.1400490d0
test rax, rax
je 0x14003640b
mov rdx, qword [rbx + 0x660]
mov rcx, rbx
call fcn.1400494d0
test rax, rax
je 0x14003640b
mov r9d, 3
lea rdx, str.ErrorLevel
xor r8d, r8d
mov rcx, rbx
call fcn.140048170
mov qword [0x140142708], rax
test rax, rax
je 0x14003640b
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [0x140103634]
mov rcx, rax
lea r8, [r9 - 1]
call fcn.1400be640
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x50]
call fcn.14002f1c0
mov eax, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x60]
mov eax, 0xffffffff
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret