Function at 0x14000e070
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbp
push rsi
push r13
lea rbp, [rsp - 0x2c40]
mov eax, 0x2d40
call fcn.1400243b0
sub rsp, rax
mov eax, dword [0x1400c5c00]
mov rsi, r9
mov r13, rcx
inc eax
mov dword [0x1400c5c00], eax
cmp eax, 0x30
jge 0x14002eac0
mov qword [rsp + 0x2d60], rbx
mov qword [rsp + 0x2d38], rdi
mov qword [rsp + 0x2d30], r12
mov qword [rsp + 0x2d28], r14
lea rcx, [rsp + 0x60]
mov r14b, 1
mov qword [rsp + 0x2d20], r15
mov qword [rbp + 0x2c78], r9
mov dword [rbp + 0x2c70], r8d
movzx r15d, r14b
mov rdi, rdx
mov dword [rsp + 0x30], 0
xor r12b, r12b
call fcn.1400111e0
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.140001ea0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
mov r8d, 0x2000
call fcn.140011240
test al, al
je 0x14002eaef
xor bl, bl
lea rcx, [rsp + 0x38]
call fcn.140002bd0
test bl, bl
jne 0x14002eaf6
lea rdx, [rbp + 0x5f0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x40]
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea r11, [rbp + 0x2a10]
lea r9, [rbp + 0x2800]
lea r8, [rbp + 0x3e0]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], r11
call fcn.1400160bc
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x1d0]
call fcn.140014a94
lea rdx, [rbp + 0x3e0]
lea rcx, [rbp + 0x1d0]
call fcn.140014a68
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor esi, esi
nop dword [rax + rax]
cmp r15b, 1
jne 0x14000e400
lea rcx, [rbp - 0x80]
mov word [rbp + 0x800], si
call fcn.14000dd80
mov r11d, dword [rbp - 0x5c]
test r15b, r11b
jne 0x14002eb50
test r11b, 2
jne 0x14002eb50
test r11b, 4
jne 0x14002eb32
mov ecx, reloc.WSOCK32.dll_recv
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], reloc.WSOCK32.dll_recv
call fcn.140014c1c
mov ecx, 4
mov byte [rax], 0
mov qword [rsp + 0x38], rax
call fcn.140014c1c
test rax, rax
je 0x14002eb46
mov dword [rax], 1
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.14000e490
lea rcx, [rsp + 0x38]
test al, al
je 0x14000e483
lea rdx, [rbp - 0x80]
call fcn.14000e8f0
mov rbx, qword [rsp + 0x50]
dec dword [rbx]
jne 0x14000e279
mov rcx, qword [rsp + 0x38]
call fcn.14001460c
mov rcx, rbx
call fcn.14001460c
mov al, 1
test al, al
je 0x14000e400
mov rbx, qword [rbp - 0x78]
cmp rbx, 0xffe
ja 0x14002eb64
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp + 0x800]
call fcn.140014a94
inc dword [rsp + 0x30]
mov rbx, rsi
mov rdi, rsi
movzx esi, word [rbp + rbx*2 + 0x800]
movzx ecx, si
call fcn.140015770
test eax, eax
je 0x14000e2d2
movzx ecx, si
call fcn.140015758
test eax, eax
jne 0x14000e467
cmp word [rbp + rbx*2 + 0x800], 0
je 0x14000e301
nop dword [rax]
movzx eax, word [rbp + rbx*2 + 0x800]
inc rbx
inc rdi
mov word [rbp + rdi*2 + 0x7fe], ax
cmp word [rbp + rbx*2 + 0x800], 0
jne 0x14000e2e0
lea rcx, [rbp + 0x800]
xor esi, esi
mov word [rbp + rdi*2 + 0x800], si
call fcn.14000e730
test al, al
je 0x14002ebfd
lea rcx, [rbp + 0x800]
call fcn.140014a44
test eax, eax
je 0x14000e36a
lea edi, [rax - 1]
movsxd rbx, edi
test edi, edi
js 0x14000e35f
movzx esi, word [rbp + rbx*2 + 0x800]
movzx ecx, si
call fcn.140015770
test eax, eax
je 0x14000e35d
movzx ecx, si
call fcn.140015758
test eax, eax
jne 0x14002eba4
xor esi, esi
movsxd rax, edi
mov word [rbp + rax*2 + 0x802], si
lea rcx, [rbp + 0x800]
xor dil, dil
call fcn.140014a44
cmp eax, 2
jle 0x14000e39a
movsxd rbx, eax
movzx ecx, word [rbp + rbx*2 + 0x7fc]
and cx, 0x7f
call fcn.140015758
test eax, eax
jne 0x14000e46f
lea rdx, [rbp + 0x800]
mov rcx, r13
cmp r12b, 1
je 0x14002ebc4
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x40]
mov qword [rsp + 0x20], rax
call fcn.14000e7d0
cmp eax, 3
jne 0x14002ebcf
mov r9d, dword [rbp + 0x2c70]
mov edx, dword [rsp + 0x30]
lea r8, [rbp + 0x800]
mov rcx, r13
call fcn.14000e800
cmp dil, 1
je 0x14002ebf5
xor r12b, r12b
cmp r14b, 1
je 0x14000e1c0
lea rcx, [rsp + 0x60]
call fcn.140011190
lea rcx, [rbp + 0x5f0]
mov qword [rbp - 0x5c], 0
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x60]
call fcn.140011150
dec dword [0x1400c5c00]
movzx eax, r14b
mov r14, qword [rsp + 0x2d28]
mov r12, qword [rsp + 0x2d30]
mov rdi, qword [rsp + 0x2d38]
mov rbx, qword [rsp + 0x2d60]
mov r15, qword [rsp + 0x2d20]
add rsp, 0x2d40
pop r13
pop rsi
pop rbp
ret
inc rbx
jmp 0x14000e2ae
cmp word [rbp + rbx*2 + 0x7fe], 0x5f
jne 0x14000e39a
jmp 0x14002ebb4
call fcn.140001510
xor al, al
jmp 0x14000e27b
mov rax, qword [rbp + 0x2c80]
mov r8d, dword [rbp + 0x2c88]
lea r9, str.include_depth_exceeded.__Make_sure_there_are_no_recursive_includes
mov rdx, rsi
mov qword [rsp + 0x20], rax
call fcn.140060840
dec dword [0x1400c5c00]
xor al, al
jmp 0x14000e45b
mov bl, 1
jmp 0x14000e128
mov rax, qword [rbp + 0x2c80]
mov r8d, dword [rbp + 0x2c88]
lea r9, str.Error_opening_the_file
mov rdx, rsi
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140060840
lea rcx, [rsp + 0x60]
call fcn.140011150
dec dword [0x1400c5c00]
xor al, al
jmp 0x14000e433
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140071070
nop
jmp 0x14000e27b
mov qword [rsp + 0x50], rsi
jmp 0x14000e239
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140070fd0
nop
jmp 0x14000e27b
lea rcx, [rbp - 0x80]
add rbx, 0xfffffffffffff002
call fcn.14000de70
mov rcx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x78]
sub r8, rbx
lea rdx, [rcx + rbx*2 + 0x1ffc]
add rcx, 0x1ffc
lea r8, [r8 + r8 - 0x1ffa]
call fcn.140014710
sub qword [rbp - 0x78], rbx
jmp 0x14000e294
dec edi
dec rbx
jns 0x14000e339
jmp 0x14000e35d
mov word [rbp + rbx*2 + 0x7fe], si
mov dil, 1
jmp 0x14000e39a
call fcn.14003c4a0
nop
jmp 0x14000e3e9
test eax, eax
je 0x14002ebed
cmp eax, 2
je 0x14000e3cf
cmp eax, 4
jne 0x14000e3e9
xor r15b, r15b
jmp 0x14000e3e9
xor r14b, r14b
jmp 0x14000e3e9
mov r12b, 1
jmp 0x14000e3f6
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rbp + 0x2c78]
lea rax, [rbp + 0x800]
lea r9, str.Unterminated_string
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140060840
xor r14b, r14b
jmp 0x14000e400