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

Disassembly:
push rbp
push rsi
push r13
lea rbp, [rsp - 0x2c40]
mov eax, 0x2d40
call fcn.1400244c0
sub rsp, rax
mov eax, dword [0x1400c2bf0]
mov rsi, r9
mov r13, rcx
inc eax
mov dword [0x1400c2bf0], eax
cmp eax, 0x30
jge 0x14002ea10
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.140011430
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.140001ce0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
mov r8d, 0x2000
call fcn.140011520
test al, al
je 0x14002ea3f
xor bl, bl
lea rcx, [rsp + 0x38]
call fcn.140002530
test bl, bl
jne 0x14002ea46
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.1400161cc
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x1d0]
call fcn.140014e5c
lea rdx, [rbp + 0x3e0]
lea rcx, [rbp + 0x1d0]
call fcn.140014e30
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor esi, esi
nop dword [rax + rax]
cmp r15b, 1
jne 0x140002f30
lea rcx, [rbp - 0x80]
mov word [rbp + 0x800], si
call fcn.1400034c0
mov r11d, dword [rbp - 0x5c]
test r15b, r11b
jne 0x14002eaa0
test r11b, 2
jne 0x14002eaa0
test r11b, 4
jne 0x14002ea82
mov ecx, reloc.WSOCK32.dll_recv
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], reloc.WSOCK32.dll_recv
call fcn.140014ee8
mov ecx, 4
mov byte [rax], 0
mov qword [rsp + 0x38], rax
call fcn.140014ee8
test rax, rax
je 0x14002ea96
mov dword [rax], 1
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140002a50
lea rcx, [rsp + 0x38]
test al, al
je 0x140002fb3
lea rdx, [rbp - 0x80]
call fcn.140002900
mov rbx, qword [rsp + 0x50]
dec dword [rbx]
jne 0x140002da9
mov rcx, qword [rsp + 0x38]
call fcn.140014a90
mov rcx, rbx
call fcn.140014a90
mov al, 1
test al, al
je 0x140002f30
mov rbx, qword [rbp - 0x78]
cmp rbx, 0xffe
ja 0x14002eab4
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp + 0x800]
call fcn.140014e5c
inc dword [rsp + 0x30]
mov rbx, rsi
mov rdi, rsi
movzx esi, word [rbp + rbx*2 + 0x800]
movzx ecx, si
call fcn.140015884
test eax, eax
je 0x140002e02
movzx ecx, si
call fcn.14001586c
test eax, eax
jne 0x140002f97
cmp word [rbp + rbx*2 + 0x800], 0
je 0x140002e31
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 0x140002e10
lea rcx, [rbp + 0x800]
xor esi, esi
mov word [rbp + rdi*2 + 0x800], si
call fcn.140002650
test al, al
je 0x14002eb4d
lea rcx, [rbp + 0x800]
call fcn.140014a74
test eax, eax
je 0x140002e9a
lea edi, [rax - 1]
movsxd rbx, edi
test edi, edi
js 0x140002e8f
movzx esi, word [rbp + rbx*2 + 0x800]
movzx ecx, si
call fcn.140015884
test eax, eax
je 0x140002e8d
movzx ecx, si
call fcn.14001586c
test eax, eax
jne 0x14002eaf4
xor esi, esi
movsxd rax, edi
mov word [rbp + rax*2 + 0x802], si
lea rcx, [rbp + 0x800]
xor dil, dil
call fcn.140014a74
cmp eax, 2
jle 0x140002eca
movsxd rbx, eax
movzx ecx, word [rbp + rbx*2 + 0x7fc]
and cx, 0x7f
call fcn.14001586c
test eax, eax
jne 0x140002f9f
lea rdx, [rbp + 0x800]
mov rcx, r13
cmp r12b, 1
je 0x14002eb14
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x40]
mov qword [rsp + 0x20], rax
call fcn.1400026f0
cmp eax, 3
jne 0x14002eb1f
mov r9d, dword [rbp + 0x2c70]
mov edx, dword [rsp + 0x30]
lea r8, [rbp + 0x800]
mov rcx, r13
call fcn.140002720
cmp dil, 1
je 0x14002eb45
xor r12b, r12b
cmp r14b, 1
je 0x140002cf0
lea rcx, [rsp + 0x60]
call fcn.140011460
lea rcx, [rbp + 0x5f0]
mov qword [rbp - 0x5c], 0
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x60]
call fcn.1400114b0
dec dword [0x1400c2bf0]
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 0x140002dde
cmp word [rbp + rbx*2 + 0x7fe], 0x5f
jne 0x140002eca
jmp 0x14002eb04
call fcn.140002530
xor al, al
jmp 0x140002dab
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.14005f480
dec dword [0x1400c2bf0]
xor al, al
jmp 0x140002f8b
mov bl, 1
jmp 0x140002c58
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.14005f480
lea rcx, [rsp + 0x60]
call fcn.1400114b0
dec dword [0x1400c2bf0]
xor al, al
jmp 0x140002f63
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140076ec0
nop
jmp 0x140002dab
mov qword [rsp + 0x50], rsi
jmp 0x140002d69
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.14006ce50
nop
jmp 0x140002dab
lea rcx, [rbp - 0x80]
add rbx, 0xfffffffffffff002
call fcn.1400034a0
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.140014740
sub qword [rbp - 0x78], rbx
jmp 0x140002dc4
dec edi
dec rbx
jns 0x140002e69
jmp 0x140002e8d
mov word [rbp + rbx*2 + 0x7fe], si
mov dil, 1
jmp 0x140002eca
call fcn.14003c5b0
nop
jmp 0x140002f19
test eax, eax
je 0x14002eb3d
cmp eax, 2
je 0x140002eff
cmp eax, 4
jne 0x140002f19
xor r15b, r15b
jmp 0x140002f19
xor r14b, r14b
jmp 0x140002f19
mov r12b, 1
jmp 0x140002f26
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.14005f480
xor r14b, r14b
jmp 0x140002f30