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

Disassembly:
push rbp
push rsi
push r13
lea rbp, [rsp - 0x2c40]
mov eax, 0x2d40
call fcn.140024730
sub rsp, rax
mov eax, dword [0x1400c6c80]
mov rsi, r9
mov r13, rcx
inc eax
mov dword [0x1400c6c80], eax
cmp eax, 0x30
jge 0x14002eb40
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.140011480
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.140001ca0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
mov r8d, 0x2000
call fcn.140011570
test al, al
je 0x14002eb6f
xor bl, bl
lea rcx, [rsp + 0x38]
call fcn.1400024f0
test bl, bl
jne 0x14002eb76
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.14001633c
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x1d0]
call fcn.140014d14
lea rdx, [rbp + 0x3e0]
lea rcx, [rbp + 0x1d0]
call fcn.140014ce8
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor esi, esi
nop dword [rax + rax]
cmp r15b, 1
jne 0x140002ef0
lea rcx, [rbp - 0x80]
mov word [rbp + 0x800], si
call fcn.140003480
mov r11d, dword [rbp - 0x5c]
test r15b, r11b
jne 0x14002ebd0
test r11b, 2
jne 0x14002ebd0
test r11b, 4
jne 0x14002ebb2
mov ecx, reloc.WSOCK32.dll_recv
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], reloc.WSOCK32.dll_recv
call fcn.140014e9c
mov ecx, 4
mov byte [rax], 0
mov qword [rsp + 0x38], rax
call fcn.140014e9c
test rax, rax
je 0x14002ebc6
mov dword [rax], 1
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140002a10
lea rcx, [rsp + 0x38]
test al, al
je 0x140002f73
lea rdx, [rbp - 0x80]
call fcn.1400028c0
mov rbx, qword [rsp + 0x50]
dec dword [rbx]
jne 0x140002d69
mov rcx, qword [rsp + 0x38]
call fcn.14001488c
mov rcx, rbx
call fcn.14001488c
mov al, 1
test al, al
je 0x140002ef0
mov rbx, qword [rbp - 0x78]
cmp rbx, 0xffe
ja 0x14002ebe4
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp + 0x800]
call fcn.140014d14
inc dword [rsp + 0x30]
mov rbx, rsi
mov rdi, rsi
movzx esi, word [rbp + rbx*2 + 0x800]
movzx ecx, si
call fcn.1400159f0
test eax, eax
je 0x140002dc2
movzx ecx, si
call fcn.1400159d8
test eax, eax
jne 0x140002f57
cmp word [rbp + rbx*2 + 0x800], 0
je 0x140002df1
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 0x140002dd0
lea rcx, [rbp + 0x800]
xor esi, esi
mov word [rbp + rdi*2 + 0x800], si
call fcn.140002610
test al, al
je 0x14002ec7d
lea rcx, [rbp + 0x800]
call fcn.140014cc4
test eax, eax
je 0x140002e5a
lea edi, [rax - 1]
movsxd rbx, edi
test edi, edi
js 0x140002e4f
movzx esi, word [rbp + rbx*2 + 0x800]
movzx ecx, si
call fcn.1400159f0
test eax, eax
je 0x140002e4d
movzx ecx, si
call fcn.1400159d8
test eax, eax
jne 0x14002ec24
xor esi, esi
movsxd rax, edi
mov word [rbp + rax*2 + 0x802], si
lea rcx, [rbp + 0x800]
xor dil, dil
call fcn.140014cc4
cmp eax, 2
jle 0x140002e8a
movsxd rbx, eax
movzx ecx, word [rbp + rbx*2 + 0x7fc]
and cx, 0x7f
call fcn.1400159d8
test eax, eax
jne 0x140002f5f
lea rdx, [rbp + 0x800]
mov rcx, r13
cmp r12b, 1
je 0x14002ec44
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x40]
mov qword [rsp + 0x20], rax
call fcn.1400026b0
cmp eax, 3
jne 0x14002ec4f
mov r9d, dword [rbp + 0x2c70]
mov edx, dword [rsp + 0x30]
lea r8, [rbp + 0x800]
mov rcx, r13
call fcn.1400026e0
cmp dil, 1
je 0x14002ec75
xor r12b, r12b
cmp r14b, 1
je 0x140002cb0
lea rcx, [rsp + 0x60]
call fcn.1400114b0
lea rcx, [rbp + 0x5f0]
mov qword [rbp - 0x5c], 0
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x60]
call fcn.140011500
dec dword [0x1400c6c80]
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 0x140002d9e
cmp word [rbp + rbx*2 + 0x7fe], 0x5f
jne 0x140002e8a
jmp 0x14002ec34
call fcn.1400012f0
xor al, al
jmp 0x140002d6b
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.140061150
dec dword [0x1400c6c80]
xor al, al
jmp 0x140002f4b
mov bl, 1
jmp 0x140002c18
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.140061150
lea rcx, [rsp + 0x60]
call fcn.140011500
dec dword [0x1400c6c80]
xor al, al
jmp 0x140002f23
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.1400719c0
nop
jmp 0x140002d6b
mov qword [rsp + 0x50], rsi
jmp 0x140002d29
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140071920
nop
jmp 0x140002d6b
lea rcx, [rbp - 0x80]
add rbx, 0xfffffffffffff002
call fcn.140003460
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.140014990
sub qword [rbp - 0x78], rbx
jmp 0x140002d84
dec edi
dec rbx
jns 0x140002e29
jmp 0x140002e4d
mov word [rbp + rbx*2 + 0x7fe], si
mov dil, 1
jmp 0x140002e8a
call fcn.14003c520
nop
jmp 0x140002ed9
test eax, eax
je 0x14002ec6d
cmp eax, 2
je 0x140002ebf
cmp eax, 4
jne 0x140002ed9
xor r15b, r15b
jmp 0x140002ed9
xor r14b, r14b
jmp 0x140002ed9
mov r12b, 1
jmp 0x140002ee6
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.140061150
xor r14b, r14b
jmp 0x140002ef0