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

Disassembly:
push rbp
push rsi
push r13
lea rbp, [rsp - 0x2c40]
mov eax, 0x2d40
call fcn.140024290
sub rsp, rax
mov eax, dword [0x1400c4bf0]
mov rsi, r9
mov r13, rcx
inc eax
mov dword [0x1400c4bf0], eax
cmp eax, 0x30
jge 0x14002ea00
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.140011130
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.140001e40
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
mov r8d, 0x2000
call fcn.140011190
test al, al
je 0x14002ea2f
xor bl, bl
lea rcx, [rsp + 0x38]
call fcn.140001460
test bl, bl
jne 0x14002ea36
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.140015f9c
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x1d0]
call fcn.140014c2c
lea rdx, [rbp + 0x3e0]
lea rcx, [rbp + 0x1d0]
call fcn.140014c00
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor esi, esi
nop dword [rax + rax]
cmp r15b, 1
jne 0x14000e340
lea rcx, [rbp - 0x80]
mov word [rbp + 0x800], si
call fcn.14000dcc0
mov r11d, dword [rbp - 0x5c]
test r15b, r11b
jne 0x14002ea90
test r11b, 2
jne 0x14002ea90
test r11b, 4
jne 0x14002ea72
mov ecx, reloc.WSOCK32.dll_recv
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], reloc.WSOCK32.dll_recv
call fcn.140014cb8
mov ecx, 4
mov byte [rax], 0
mov qword [rsp + 0x38], rax
call fcn.140014cb8
test rax, rax
je 0x14002ea86
mov dword [rax], 1
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.14000e3d0
lea rcx, [rsp + 0x38]
test al, al
je 0x14000e3c3
lea rdx, [rbp - 0x80]
call fcn.14000e830
mov rbx, qword [rsp + 0x50]
dec dword [rbx]
jne 0x14000e1b9
mov rcx, qword [rsp + 0x38]
call fcn.140014860
mov rcx, rbx
call fcn.140014860
mov al, 1
test al, al
je 0x14000e340
mov rbx, qword [rbp - 0x78]
cmp rbx, 0xffe
ja 0x14002eaa4
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp + 0x800]
call fcn.140014c2c
inc dword [rsp + 0x30]
mov rbx, rsi
mov rdi, rsi
movzx esi, word [rbp + rbx*2 + 0x800]
movzx ecx, si
call fcn.140015654
test eax, eax
je 0x14000e212
movzx ecx, si
call fcn.14001563c
test eax, eax
jne 0x14000e3a7
cmp word [rbp + rbx*2 + 0x800], 0
je 0x14000e241
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 0x14000e220
lea rcx, [rbp + 0x800]
xor esi, esi
mov word [rbp + rdi*2 + 0x800], si
call fcn.14000e670
test al, al
je 0x14002eb3d
lea rcx, [rbp + 0x800]
call fcn.140014844
test eax, eax
je 0x14000e2aa
lea edi, [rax - 1]
movsxd rbx, edi
test edi, edi
js 0x14000e29f
movzx esi, word [rbp + rbx*2 + 0x800]
movzx ecx, si
call fcn.140015654
test eax, eax
je 0x14000e29d
movzx ecx, si
call fcn.14001563c
test eax, eax
jne 0x14002eae4
xor esi, esi
movsxd rax, edi
mov word [rbp + rax*2 + 0x802], si
lea rcx, [rbp + 0x800]
xor dil, dil
call fcn.140014844
cmp eax, 2
jle 0x14000e2da
movsxd rbx, eax
movzx ecx, word [rbp + rbx*2 + 0x7fc]
and cx, 0x7f
call fcn.14001563c
test eax, eax
jne 0x14000e3af
lea rdx, [rbp + 0x800]
mov rcx, r13
cmp r12b, 1
je 0x14002eb04
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x40]
mov qword [rsp + 0x20], rax
call fcn.14000e710
cmp eax, 3
jne 0x14002eb0f
mov r9d, dword [rbp + 0x2c70]
mov edx, dword [rsp + 0x30]
lea r8, [rbp + 0x800]
mov rcx, r13
call fcn.14000e740
cmp dil, 1
je 0x14002eb35
xor r12b, r12b
cmp r14b, 1
je 0x14000e100
lea rcx, [rsp + 0x60]
call fcn.1400110e0
lea rcx, [rbp + 0x5f0]
mov qword [rbp - 0x5c], 0
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x60]
call fcn.1400110a0
dec dword [0x1400c4bf0]
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 0x14000e1ee
cmp word [rbp + rbx*2 + 0x7fe], 0x5f
jne 0x14000e2da
jmp 0x14002eaf4
call fcn.140001460
xor al, al
jmp 0x14000e1bb
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.140060140
dec dword [0x1400c4bf0]
xor al, al
jmp 0x14000e39b
mov bl, 1
jmp 0x14000e068
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.140060140
lea rcx, [rsp + 0x60]
call fcn.1400110a0
dec dword [0x1400c4bf0]
xor al, al
jmp 0x14000e373
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140077cf0
nop
jmp 0x14000e1bb
mov qword [rsp + 0x50], rsi
jmp 0x14000e179
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.14006dbc0
nop
jmp 0x14000e1bb
lea rcx, [rbp - 0x80]
add rbx, 0xfffffffffffff002
call fcn.14000ddb0
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.140014510
sub qword [rbp - 0x78], rbx
jmp 0x14000e1d4
dec edi
dec rbx
jns 0x14000e279
jmp 0x14000e29d
mov word [rbp + rbx*2 + 0x7fe], si
mov dil, 1
jmp 0x14000e2da
call fcn.14003c5e0
nop
jmp 0x14000e329
test eax, eax
je 0x14002eb2d
cmp eax, 2
je 0x14000e30f
cmp eax, 4
jne 0x14000e329
xor r15b, r15b
jmp 0x14000e329
xor r14b, r14b
jmp 0x14000e329
mov r12b, 1
jmp 0x14000e336
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.140060140
xor r14b, r14b
jmp 0x14000e340