Function at 0x140027820
Capabilities:
Set current directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x290
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
add rcx, 0x10
call fcn.14001eef0
test al, al
je 0x140027ba8
mov rcx, qword [rdi + 0x200]
mov rax, qword [rcx]
mov edx, dword [rdi + 0x118]
call qword [rax + 0x18]
mov rax, qword [rdi + 0x3c0]
mov edx, dword [rdi + 0x118]
lea rcx, [rdi + 0x3c0]
call qword [rax + 0x18]
mov rax, qword [rdi + 0x328]
mov edx, dword [rdi + 0x118]
lea rcx, [rdi + 0x328]
call qword [rax + 0x18]
mov rbx, qword [rdi + 0x200]
movdqa xmm0, xmmword [0x1401b6b30]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov r8d, 9
lea rdx, str._D__T__L
lea rcx, [rsp + 0x50]
call fcn.14001e6d0
nop
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400fbb50
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14002791c
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140027917
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027be5
call fcn.14014f740
lea rdx, [rdi + 0x3c0]
mov rcx, qword [rdi + 0x200]
call fcn.1400fcdd0
mov r15d, 4
cmp qword [rdi + 0xc0], 0
je 0x140027a96
lea rsi, [rdi + 0xb0]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140027957
mov rcx, qword [rsi]
call fcn.1401833d0
test eax, eax
jne 0x140027beb
movdqa xmm0, xmmword [0x1401b6b30]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], al
mov r8, r15
lea rdx, str.main
lea rcx, [rsp + 0x30]
call fcn.14001e6d0
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov rcx, qword [rdi + 0x208]
test rcx, rcx
je 0x1400279ab
lock inc dword [rcx + 8]
mov rcx, qword [rdi + 0x208]
mov rax, qword [rdi + 0x200]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x48]
call fcn.1400fdd70
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140027a0d
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140027a08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027c4f
call fcn.14014f740
movdqa xmm0, xmmword [0x1401b6b30]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
lea r9, [0x14027b640]
mov r8d, 3
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x48]
call fcn.1400fde20
nop
lea rbx, [rax + 0x68]
lea rdx, str.Current_working_directory_now_is
mov rcx, rbx
call fcn.14001abc0
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x140027a5c
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, rbx
call fcn.14001b330
nop
lea rcx, [rbp + 0x48]
call fcn.1400fd530
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x128], rax
lea rcx, [rbp + 0x128]
call fcn.14012f920
nop
lea rcx, [rbp - 0x48]
call fcn.1400242f0
lea rbx, [rdi + 0x220]
lea rcx, [rdi + 0xf0]
cmp qword [rcx + 0x18], 0x10
jb 0x140027aae
mov rcx, qword [rcx]
cmp qword [rbx + 0x88], 0
jne 0x140027b4c
mov edx, 0xa
lea r8d, [rdx + 0x36]
call fcn.14012fb28
test rax, rax
je 0x140027b4c
mov r8d, 1
mov rdx, rax
lea rcx, [rbx + 8]
call fcn.14001df40
mov rax, qword [rbx + 0x68]
mov rsi, qword [rax + 8]
mov qword [rbp - 0x80], rsi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rsp + 0x78]
call fcn.14001bc00
mov rdx, rax
lea rcx, [rbx + 8]
call fcn.14001e0c0
nop
test rsi, rsi
je 0x140027b33
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
test rax, rax
je 0x140027b33
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
nop
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
xor eax, eax
cmp qword [rcx + 0x48], rax
cmovne r15d, eax
mov edx, r15d
jmp 0x140027b6b
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov edx, 6
mov eax, 2
cmp qword [rcx + 0x48], 0
cmovne edx, eax
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.14001e8a0
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
test byte [rcx + rdi + 0x230], 6
jne 0x140027bc4
mov rdx, rbx
lea rcx, [rdi + 0x328]
call fcn.1400fceb0
lea rdx, [rdi + 0x328]
mov rcx, qword [rdi + 0x200]
call fcn.1400fcdd0
mov al, 1
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rdx, str.Couldnt_open_log_file
lea rcx, [rbp - 0x60]
call fcn.14001cb80
lea rdx, [0x140275160]
lea rcx, [rbp - 0x60]
call fcn.14016cf20
int3
call fcn.1401705dc
int3
call fcn.140175aec
mov ecx, dword [rax]
call fcn.1401760d4
mov rbx, rax
mov r8, rsi
lea rdx, str.Couldnt_change_directory_to_
lea rcx, [rbp - 0x18]
call fcn.14001af70
nop
lea r8, [0x1401b7608]
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.14001aeb0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.14001aeb0
nop
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14001cb20
lea rdx, [0x140275160]
lea rcx, [rbp - 0x78]
call fcn.14016cf20
nop
call fcn.1401705dc
int3