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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbp
push r13
push r14
lea rbp, [rsp - 0x2cd0]
mov eax, 0x2dd0
call fcn.140036710
sub rsp, rax
mov eax, dword [0x1400dbfe0]
mov r10, r9
mov r13, rdx
inc eax
mov r14, rcx
mov dword [0x1400dbfe0], eax
cmp eax, 0x30
jge 0x140086698
mov qword [rsp + 0x2df8], rbx
mov qword [rsp + 0x2dc8], rsi
mov qword [rsp + 0x2dc0], rdi
mov sil, 1
mov qword [rsp + 0x2db8], r12
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x2db0], r15
xor r15d, r15d
xor r12b, r12b
mov byte [rsp + 0x30], sil
movzx edi, sil
mov byte [rsp + 0x38], sil
mov qword [rbp - 0x38], r15
mov dword [rsp + 0x34], r15d
call fcn.140003888
lea rcx, [rbp - 0x30]
mov rdx, r13
call fcn.14000dda4
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x70]
mov r8d, 0x2000
call fcn.1400031dc
test al, al
je 0x140014ca5
xor bl, bl
lea rcx, [rbp - 0x30]
call fcn.14000de70
test bl, bl
jne 0x14008672c
lea rdx, [rbp + 0x680]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r9, [rbp + 0x40]
lea r8, [rbp + 0x50]
mov edx, 0x104
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rbx, qword [rbp - 0x78]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x60], reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001c60
lea rcx, [rsp + 0x70]
xor r8d, r8d
mov rdx, rbx
call fcn.140003670
cmp dword [rsp + 0x50], 0x5f726177
je 0x1400866c7
lea rax, [rbp + 0x2890]
lea r9, [rbp + 0x2aa0]
lea r8, [rbp + 0x470]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140026db8
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x260]
call fcn.140025be0
lea rdx, [rbp + 0x470]
lea rcx, [rbp + 0x260]
call fcn.140025bb4
lea rcx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or r13, 0xffffffffffffffff
mov ebx, 4
cmp dil, 1
jne 0x140014c18
mov rcx, qword [rbp - 0x58]
mov word [rbp + 0x890], r15w
mov eax, dword [rcx]
cmp eax, 1
jg 0x140086a7b
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x68], r15
mov word [rax], r15w
mov eax, dword [rbp - 0x4c]
test al, 1
jne 0x140086b1f
test al, 2
jne 0x140086b1f
test al, 4
jne 0x140086aae
mov ecx, reloc.WSOCK32.dll_recv
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], reloc.WSOCK32.dll_recv
call fcn.140025a08
mov rcx, rbx
mov byte [rax], r15b
mov qword [rsp + 0x40], rax
call fcn.140025a08
test rax, rax
je 0x140014cac
mov dword [rax], 1
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140014cc0
test al, al
jne 0x140014a96
mov rbx, qword [rsp + 0x58]
dec dword [rbx]
jne 0x140014883
mov rcx, qword [rsp + 0x40]
call fcn.140025ab0
mov rcx, rbx
call fcn.140025ab0
xor al, al
test al, al
je 0x140014c18
mov rbx, qword [rbp - 0x68]
cmp rbx, 0xffe
ja 0x140086b33
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp + 0x890]
call fcn.140025be0
inc dword [rsp + 0x34]
mov rbx, r15
mov rdi, r15
movzx esi, word [rbp + rbx*2 + 0x890]
movzx ecx, si
call fcn.140026764
test eax, eax
je 0x1400148dd
movzx ecx, si
call fcn.140026780
test eax, eax
je 0x1400148dd
inc rbx
jmp 0x1400148b8
cmp word [rbp + rbx*2 + 0x890], di
je 0x140014912
nop word [rax + rax]
movzx eax, word [rbp + rbx*2 + 0x890]
lea rbx, [rbx + 1]
inc rdi
mov word [rbp + rdi*2 + 0x88e], ax
cmp word [rbp + rbx*2 + 0x890], r15w
jne 0x1400148f0
lea rdx, [rbp + 0x890]
mov word [rbp + rdi*2 + 0x890], r15w
call fcn.140014eb0
test al, al
je 0x140086b83
lea rcx, [rbp + 0x890]
call fcn.140025b98
test eax, eax
je 0x140014979
lea ebx, [rax - 1]
movsxd rdi, ebx
test ebx, ebx
js 0x14001496d
movzx esi, word [rbp + rdi*2 + 0x890]
movzx ecx, si
call fcn.140026764
test eax, eax
je 0x14001496d
movzx ecx, si
call fcn.140026780
test eax, eax
jne 0x140014ba3
movsxd rax, ebx
mov word [rbp + rax*2 + 0x892], r15w
lea rcx, [rbp + 0x890]
xor dil, dil
call fcn.140025b98
cmp eax, 2
jle 0x1400149a9
movsxd rbx, eax
movzx ecx, word [rbp + rbx*2 + 0x88c]
and cx, 0x7f
call fcn.140026780
test eax, eax
jne 0x140014b67
lea rdx, [rbp + 0x890]
mov rcx, r14
cmp r12b, 1
je 0x140014c93
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x34]
lea r8, [rbp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140014fa0
cmp eax, 3
jne 0x140014bef
cmp qword [r14 + 0x10], r15
je 0x140014c7c
mov rax, qword [r14 + 0x18]
mov rcx, qword [rax]
cmp word [rcx], r15w
je 0x140014b59
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140025a08
mov rcx, qword [r14 + 0x18]
mov qword [rcx + 0x10], rax
mov qword [r14 + 0x18], rax
mov rax, qword [r14 + 0x18]
lea rcx, [rbp + 0x890]
mov qword [rax + 0x10], r15
call fcn.140025b98
lea rcx, [rax + 1]
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140025a08
lea rdx, [rbp + 0x890]
mov rcx, rax
mov rbx, rax
call fcn.140025be0
mov rcx, qword [r14 + 0x18]
mov eax, dword [rsp + 0x34]
mov qword [rcx], rbx
mov rcx, qword [r14 + 0x18]
mov dword [rcx + 8], eax
mov rax, qword [r14 + 0x18]
mov ecx, dword [rbp + 0x2d00]
mov dword [rax + 0xc], ecx
inc dword [r14 + 0x20]
movzx esi, byte [rsp + 0x30]
cmp dil, 1
je 0x140014c9d
xor r12b, r12b
cmp sil, 1
jne 0x140014c18
movzx edi, byte [rsp + 0x38]
jmp 0x1400147c8
mov esi, dword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
mov edx, 1
inc esi
xor ecx, ecx
mov r8, r14
mov r9d, esi
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
test eax, eax
je 0x140086ac2
mov eax, 2
mul rbx
cmovo rax, r13
mov rcx, rax
call fcn.140025a08
mov r9d, esi
mov r8, r14
mov edx, 1
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov rdi, rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
dec eax
movsxd rbx, eax
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140014b87
test rdi, rdi
je 0x140014b87
mov rcx, qword [rbp - 0x58]
mov eax, dword [rcx]
cmp eax, 1
jg 0x140086ae8
lea rdx, [rbx + 1]
cmp qword [rbp - 0x60], rdx
jb 0x140014bb3
mov rsi, qword [rbp - 0x70]
mov qword [rbp - 0x68], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1400254f0
mov rcx, rdi
mov word [rbx + rsi], r15w
call fcn.140025ab0
nop
jmp 0x140086acb
call fcn.140025ab0
dec dword [r14 + 0x20]
jmp 0x140014a0f
cmp word [rbp + rbx*2 + 0x88e], 0x5f
jne 0x1400149a9
mov word [rbp + rbx*2 + 0x88e], r15w
mov dil, 1
jmp 0x1400149a9
lea rcx, [rbp - 0x70]
mov r8, r13
xor edx, edx
call fcn.14000df38
mov rcx, rdi
call fcn.140025ab0
nop
jmp 0x140086acb
dec ebx
dec rdi
jns 0x140014949
jmp 0x14001496d
call fcn.14000de5c
mov rcx, qword [rbp - 0x70]
mov rsi, rax
mov qword [rbp - 0x60], rax
test rcx, rcx
je 0x140014bcd
call fcn.140025ab0
mov eax, 2
mul rsi
cmovo rax, r13
mov rcx, rax
call fcn.140025a08
mov word [rax + rbx*2], r15w
mov qword [rbp - 0x70], rax
jmp 0x140014b2d
test eax, eax
je 0x140086b76
cmp eax, 2
je 0x1400149de
movzx esi, byte [rsp + 0x30]
cmp eax, 4
jne 0x140014a75
mov byte [rsp + 0x38], r15b
jmp 0x140014a75
lea rcx, [rsp + 0x70]
call fcn.140003850
lea rcx, [rbp + 0x680]
mov qword [rbp - 0x4c], r15
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x70]
call fcn.140003808
dec dword [0x1400dbfe0]
mov r15, qword [rsp + 0x2db0]
mov r12, qword [rsp + 0x2db8]
mov rdi, qword [rsp + 0x2dc0]
mov rbx, qword [rsp + 0x2df8]
movzx eax, sil
mov rsi, qword [rsp + 0x2dc8]
add rsp, 0x2dd0
pop r14
pop r13
pop rbp
ret
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140025a08
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
jmp 0x140014a0f
call fcn.1400250d4
jmp 0x140014a70
mov r12b, 1
jmp 0x140014a82
mov bl, 1
jmp 0x1400146f5
mov qword [rsp + 0x58], r15
jmp 0x140014851
mov rax, qword [rbp + 0x2d10]
mov r8d, dword [rbp + 0x2d18]
lea r9, str.include_depth_exceeded.__Make_sure_there_are_no_recursive_includes
mov rdx, r10
mov qword [rsp + 0x20], rax
call fcn.14004afc4
dec dword [0x1400dbfe0]
xor al, al
jmp 0x140014c6f
cmp dword [rsp + 0x54], 0xcc393035
jne 0x14001476d
lea rcx, [rsp + 0x70]
call fcn.140003850
lea rcx, [rbp + 0x18]
mov r8d, 2
mov rdx, r13
mov qword [rbp - 0x4c], r15
mov qword [rbp + 0x28], r15
mov qword [rbp + 0x30], r15
mov byte [rbp + 0x38], r15b
call fcn.140001dbc
test eax, eax
jne 0x14008672c
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x60]
lea rdx, [0x1400c5d58]
lea rcx, [rbp + 0x18]
call fcn.140056d74
lea rcx, [rbp + 0x18]
test eax, eax
je 0x14008675d
call fcn.140001e48
mov rax, qword [rbp + 0x2d10]
mov r8d, dword [rbp + 0x2d18]
mov rdx, qword [rbp + 0x2d08]
lea r9, str.Error_opening_the_file
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14004afc4
xor sil, sil
jmp 0x140014c33
call fcn.140001e48
mov r14, qword [rsp + 0x60]
lea rax, [0x1400afcb0]
mov ebx, dword [r14]
mov esi, 4
or r12, 0xffffffffffffffff
lea ecx, [rsi + 0x1c]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], r15
mov dword [rsp + 0x34], ebx
mov word [rsp + 0x48], r12w
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r15
call fcn.140025a08
mov rdi, rax
test rax, rax
je 0x1400867c1
lea rax, [0x1400afcb0]
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
mov qword [rsp + 0x60], rdi
mov qword [rdi], rax
jmp 0x1400867c9
mov rdi, r15
mov qword [rsp + 0x60], r15
lea rcx, [rsp + 0x40]
mov edx, 5
mov word [rsp + 0x4a], r12w
call fcn.14000edcc
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov dword [rsp + 0x40], ebx
call fcn.14000ec90
mov r12d, 1
cmp ebx, r12d
jl 0x1400869e4
movzx r15d, byte [rsi + r14]
lea rax, [rsi + r14]
lea rcx, [rsp + 0x40]
inc rsi
mov edx, r15d
mov qword [rbp - 0x40], rsi
call fcn.14000edcc
lea rcx, [rsp + 0x40]
call fcn.140053f68
test al, al
je 0x14008683c
lea rax, [rsi + r14]
add rsi, 4
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
jmp 0x140086969
lea rcx, [rsp + 0x40]
call fcn.140053f58
test al, al
je 0x14008685f
lea rax, [rsi + r14]
add rsi, 8
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
jmp 0x140086969
lea rcx, [rsp + 0x40]
call fcn.140053f48
test al, al
je 0x140086886
movsd xmm0, qword [rsi + r14]
lea rax, [rsi + r14]
add rsi, 8
movsd qword [rsp + 0x40], xmm0
jmp 0x140086969
lea rcx, [rsp + 0x40]
call fcn.14000f120
test al, al
je 0x140086969
lea r8, [rbp - 0x40]
mov rdx, r14
call fcn.14004ad00
mov rsi, rax
mov rdx, rax
cmp r15d, 0x31
jne 0x1400868ec
lea rcx, [rbp - 8]
call fcn.14000dda4
mov rcx, qword [rbp + 0x2cf0]
lea rdx, [rbp - 8]
call fcn.140024f40
lea rcx, [rbp - 8]
mov ebx, eax
call fcn.14000de70
lea edx, [r15 - 0x30]
lea rcx, [rsp + 0x40]
call fcn.14000edcc
mov dword [rsp + 0x40], ebx
mov ebx, dword [rsp + 0x34]
jmp 0x14008695d
cmp r15d, 0x30
jne 0x140086925
lea rcx, [rbp - 8]
call fcn.14000dda4
lea rdx, [rbp - 8]
call fcn.14004b254
lea rcx, [rbp - 8]
mov ebx, eax
call fcn.14000de70
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.14000edcc
mov dword [rsp + 0x40], ebx
mov ebx, dword [rsp + 0x34]
jmp 0x14008695d
cmp r15d, 0x37
jne 0x140086953
mov r15, qword [rbp + 0x2cf0]
mov rcx, r15
call fcn.14004abfc
test eax, eax
je 0x140086a45
mov rcx, rsi
call fcn.140025ab0
mov rsi, qword [rbp - 0x40]
jmp 0x1400867fe
lea rcx, [rsp + 0x40]
call fcn.140053ec8
mov rcx, rsi
call fcn.140025ab0
mov rsi, qword [rbp - 0x40]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14000ec90
cmp r15d, 0x7f
jne 0x1400867fe
mov rcx, qword [rdi + 0x10]
cmp rcx, 2
jbe 0x1400869cc
mov rax, qword [rdi + 8]
mov rcx, qword [rax + rcx*8 - 0x10]
cmp word [rcx + 8], r15w
je 0x1400869cc
mov r15, qword [rbp - 0x38]
mov eax, 0x3b
lea r8, [rsp + 0x38]
mov word [rsp + 0x38], ax
mov rax, qword [rbp + 0x2cf0]
inc r15d
mov edx, dword [rax + 0x20]
or r9d, 0xffffffff
mov rcx, rax
mov qword [rbp - 0x38], r15
call fcn.14004ab50
jmp 0x1400869d8
mov rcx, rdi
call fcn.14004b21c
mov r15, qword [rbp - 0x38]
inc r12d
cmp r12d, ebx
jle 0x1400867fe
lea rcx, [rsp + 0x40]
mov edx, 5
call fcn.14000edcc
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx]
mov dword [rsp + 0x40], r15d
call fcn.140053e18
mov rax, qword [rbp + 0x2cf0]
lea rdx, [rsp + 0x60]
lea rcx, [rax + 0x88]
call fcn.1400719e8
mov rcx, r14
call fcn.140026cfc
mov sil, 1
lea rcx, [rbp - 0x30]
call fcn.140016a90
lea rcx, [rsp + 0x40]
call fcn.140053df8
nop
jmp 0x140014c33
lea rax, [0x1400afad8]
lea r9, str.Bad_directive_syntax_error
mov r8d, r12d
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.14004afc4
mov rcx, rsi
call fcn.140025ab0
mov rcx, r14
call fcn.140026cfc
xor sil, sil
jmp 0x140086a2c
dec eax
mov dword [rcx], eax
lea rcx, [rbp - 0x70]
call fcn.14000df0c
mov ecx, 8
mov eax, 2
mov qword [rbp - 0x60], rcx
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1400254d4
mov qword [rbp - 0x70], rax
jmp 0x1400147ee
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.14004ee20
nop
jmp 0x140014885
lea rcx, [rbp - 0x70]
call fcn.1400154c0
lea rcx, [rsp + 0x40]
call fcn.14000de70
mov r14, qword [rbp + 0x2cf0]
movzx esi, byte [rsp + 0x30]
mov al, 1
jmp 0x140014885
dec eax
mov dword [rcx], eax
lea rcx, [rbp - 0x70]
call fcn.14000df0c
lea rdx, [rbx + 1]
call fcn.14000de5c
mov rcx, rax
mov qword [rbp - 0x60], rax
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140025a08
nop
jmp 0x140014be6
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.14004ecbc
nop
jmp 0x140014885
lea rcx, [rbp - 0x70]
add rbx, 0xfffffffffffff002
call fcn.14000507c
mov rsi, qword [rbp - 0x70]
mov rdi, qword [rbp - 0x68]
sub rdi, rbx
lea rdx, [rsi + 0x1ffc]
lea rcx, [rsi + 0x1ffc]
lea rdx, [rdx + rbx*2]
lea r8, [rdi*2 - 0x1ffa]
call fcn.1400254f0
mov qword [rbp - 0x68], rdi
jmp 0x14001489e
xor sil, sil
mov byte [rsp + 0x30], sil
jmp 0x140014a75
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rbp + 0x2d08]
lea rax, [rbp + 0x890]
lea r9, str.Unterminated_string
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14004afc4
xor sil, sil
jmp 0x140014c18