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

Disassembly:
push rbp
push rsi
mov eax, 0x2d38
call fcn.140030cb0
sub rsp, rax
mov eax, dword [0x1400c8780]
mov rsi, r9
mov rbp, rcx
inc eax
cmp eax, 0x30
mov dword [0x1400c8780], eax
jge 0x1400342b0
mov qword [rsp + 0x2d50], rbx
mov qword [rsp + 0x2d58], rdi
mov qword [rsp + 0x2d60], r12
mov qword [rsp + 0x2d30], r13
mov qword [rsp + 0x2d28], r14
lea rcx, [rsp + 0x60]
mov r13b, 1
mov qword [rsp + 0x2d20], r15
mov qword [rsp + 0x2d68], r9
mov r15d, r8d
mov rdi, rdx
mov dword [rsp + 0x30], 0
movzx r14d, r13b
xor r12b, r12b
call fcn.1400133b0
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.140001d30
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
mov r8d, 0x2000
call fcn.1400134a0
test al, al
je 0x1400342e1
xor bl, bl
lea rcx, [rsp + 0x38]
call fcn.140002610
test bl, bl
jne 0x1400342e8
lea rdx, [rsp + 0x6f0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0xc0]
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea r11, [rsp + 0x2b10]
lea r9, [rsp + 0x2900]
lea r8, [rsp + 0x4e0]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x20], r11
call fcn.14001823c
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x2d0]
call fcn.140016e4c
lea rdx, [rsp + 0x4e0]
lea rcx, [rsp + 0x2d0]
call fcn.140016e20
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor esi, esi
cmp r14b, 1
jne 0x140003058
lea rcx, [rsp + 0x80]
mov word [rsp + 0x900], si
call fcn.140003300
mov r11d, dword [rsp + 0xa4]
test r14b, r11b
jne 0x140034348
test r11b, 2
jne 0x140034348
test r11b, 4
jne 0x140034326
mov ecx, reloc.WSOCK32.dll_recv
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], reloc.WSOCK32.dll_recv
call fcn.140016ed8
mov ecx, 4
mov byte [rax], 0
mov qword [rsp + 0x38], rax
call fcn.140016ed8
test rax, rax
je 0x14003433e
mov dword [rax], 1
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140002b40
test al, al
je 0x1400030e7
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x80]
call fcn.1400029f0
mov rbx, qword [rsp + 0x50]
add dword [rbx], 0xffffffff
jne 0x140002ec1
mov rcx, qword [rsp + 0x38]
call fcn.140016a60
mov rcx, rbx
call fcn.140016a60
mov al, 1
test al, al
je 0x140003058
mov rbx, qword [rsp + 0x88]
cmp rbx, 0xffe
ja 0x140034360
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x900]
call fcn.140016e4c
inc dword [rsp + 0x30]
mov rbx, rsi
mov rdi, rsi
movzx esi, word [rsp + rbx*2 + 0x900]
movzx ecx, si
call fcn.14001789c
test eax, eax
je 0x140002f23
movzx ecx, si
call fcn.140017884
test eax, eax
jne 0x1400030cb
cmp word [rsp + rbx*2 + 0x900], 0
je 0x140002f51
nop
movzx eax, word [rsp + rbx*2 + 0x900]
inc rbx
inc rdi
mov word [rsp + rdi*2 + 0x8fe], ax
cmp word [rsp + rbx*2 + 0x900], 0
jne 0x140002f30
lea rdx, [rsp + 0x900]
xor esi, esi
mov rcx, rbp
mov word [rsp + rdi*2 + 0x900], si
call fcn.140002740
test al, al
je 0x140034415
lea rcx, [rsp + 0x900]
call fcn.140016a44
test eax, eax
je 0x140002fbf
lea edi, [rax - 1]
movsxd rbx, edi
test edi, edi
js 0x140002fb4
movzx esi, word [rsp + rbx*2 + 0x900]
movzx ecx, si
call fcn.14001789c
test eax, eax
je 0x140002fb2
movzx ecx, si
call fcn.140017884
test eax, eax
jne 0x1400343b0
xor esi, esi
movsxd rax, edi
mov word [rsp + rax*2 + 0x902], si
lea rcx, [rsp + 0x900]
xor dil, dil
call fcn.140016a44
cmp eax, 2
jle 0x140002ff0
movsxd rbx, eax
movzx ecx, word [rsp + rbx*2 + 0x8fc]
and cx, 0x7f
call fcn.140017884
test eax, eax
jne 0x1400030d3
cmp r12b, 1
je 0x1400343d1
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x900]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1400027e0
cmp eax, 3
jne 0x1400343e7
mov edx, dword [rsp + 0x30]
lea r8, [rsp + 0x900]
mov r9d, r15d
mov rcx, rbp
call fcn.140002810
cmp dil, 1
je 0x14003440d
xor r12b, r12b
cmp r13b, 1
je 0x140002df2
lea rcx, [rsp + 0x60]
call fcn.1400133f0
lea rcx, [rsp + 0x6f0]
mov dword [rsp + 0xa4], esi
mov dword [rsp + 0xa8], esi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x60]
call fcn.140013430
dec dword [0x1400c8780]
mov al, r13b
mov r14, qword [rsp + 0x2d28]
mov r13, qword [rsp + 0x2d30]
mov r12, qword [rsp + 0x2d60]
mov rdi, qword [rsp + 0x2d58]
mov rbx, qword [rsp + 0x2d50]
mov r15, qword [rsp + 0x2d20]
add rsp, 0x2d38
pop rsi
pop rbp
ret
inc rbx
jmp 0x140002eff
cmp word [rsp + rbx*2 + 0x8fe], 0x5f
jne 0x140002ff0
jmp 0x1400343c1
lea rcx, [rsp + 0x38]
call fcn.140002610
xor al, al
jmp 0x140002ec3
mov rax, qword [rsp + 0x2d70]
mov r8d, dword [rsp + 0x2d78]
lea r9, str.include_depth_exceeded.__Make_sure_there_are_no_recursive_includes
mov rdx, rsi
mov qword [rsp + 0x20], rax
call fcn.140063280
dec dword [0x1400c8780]
xor al, al
jmp 0x1400030c1
mov bl, 1
jmp 0x140002d43
mov rax, qword [rsp + 0x2d70]
mov r8d, dword [rsp + 0x2d78]
lea r9, str.Error_opening_the_file
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140063280
lea rcx, [rsp + 0x60]
call fcn.140013430
dec dword [0x1400c8780]
xor al, al
jmp 0x140003091
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.14007a980
nop
jmp 0x140002ec3
mov qword [rsp + 0x50], rsi
jmp 0x140002e74
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140070af0
nop
jmp 0x140002ec3
lea rcx, [rsp + 0x80]
add rbx, 0xfffffffffffff002
call fcn.1400032e0
mov rcx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
sub r8, rbx
lea rdx, [rcx + rbx*2 + 0x1ffc]
add rcx, 0x1ffc
lea r8, [r8 + r8 - 0x1ffa]
call fcn.140016710
sub qword [rsp + 0x88], rbx
jmp 0x140002ee0
dec edi
sub rbx, 1
jns 0x140002f8e
jmp 0x140002fb2
mov word [rsp + rbx*2 + 0x8fe], si
mov dil, 1
jmp 0x140002ff0
lea rdx, [rsp + 0x900]
mov rcx, rbp
call fcn.140042230
nop
jmp 0x140003041
test eax, eax
je 0x140034405
cmp eax, 2
je 0x14000302a
cmp eax, 4
jne 0x140003041
xor r14b, r14b
jmp 0x140003041
xor r13b, r13b
jmp 0x140003041
mov r12b, 1
jmp 0x14000304e
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x2d68]
lea rax, [rsp + 0x900]
lea r9, str.Unterminated_string
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140063280
xor r13b, r13b
jmp 0x140003058