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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x100a8]
mov eax, 0x10170
call fcn.1400474f0
sub rsp, rax
mov eax, dword [0x1400f15b8]
mov r14, rcx
mov r15, qword [rbp + 0x100d0]
inc eax
mov r12d, dword [rbp + 0x100d8]
mov ecx, gethostbyname
mov dword [0x1400f15b8], eax
mov rbx, r9
cmp eax, ecx
jge 0x14004b566
xor edi, edi
lea rcx, [rbp + 0x20]
mov r13b, 1
mov byte [rsp + 0x38], dil
mov esi, edi
mov byte [rsp + 0x30], r13b
call fcn.1400077e0
mov rdx, qword [rbp + 0x100b8]
lea rcx, [rbp + 0x20]
mov r8d, 0x8000
call fcn.140007850
test al, al
je 0x14004b587
lea rcx, [rbp - 0x28]
call fcn.140008ce8
lea rdx, [rbp + 0x70]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x28]
call fcn.1400092ac
lea rcx, [rbp - 0x48]
call fcn.140008ce8
mov rcx, qword [rbp + 0x100b8]
lea rdx, [rbp - 0x48]
call fcn.140023940
mov rbx, qword [rbp + 0x38]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x48], reloc.OLEAUT32.dll_SafeArrayGetElement
lea rcx, [rbp + 0x20]
call fcn.14000719c
xor r8d, r8d
lea rcx, [rbp + 0x20]
mov rdx, rbx
call fcn.140007bc0
cmp dword [rsp + 0x60], 0x21335541
je 0x14004b5a7
lea rcx, [rsp + 0x70]
call fcn.140008ce8
lea rcx, [rsp + 0x50]
call fcn.140008ce8
xor r9d, r9d
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.140023a10
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1400091f4
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x50]
call fcn.1400079ac
lea rcx, [rsp + 0x70]
call fcn.1400079ac
mov ecx, 0x2000
call fcn.140024f08
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14001f2dc
mov al, byte [rsp + 0x30]
mov r15d, 4
mov rbx, qword [rsp + 0x50]
cmp al, 1
jne 0x14000680e
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.14000790c
test al, al
je 0x14000680e
inc esi
mov rdx, rbx
mov dword [rsp + 0x34], esi
call fcn.140006b08
mov rdx, rbx
call fcn.140006a40
test al, al
je 0x14004b972
mov rdx, rbx
call fcn.140006b9c
mov rcx, rbx
call fcn.1400272dc
mov r12, rax
cmp eax, 2
jle 0x140006786
movsxd rcx, r12d
movzx ecx, word [rbx + rcx*2 - 4]
and cx, 0x7f
call fcn.140028e7c
test eax, eax
jne 0x140006880
mov r12b, dil
cmp byte [rsp + 0x38], 1
je 0x14004b948
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x70]
call fcn.1400094fc
lea rax, [rbp + 0x20]
mov rdx, rbx
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x70]
mov rcx, r14
call fcn.140006350
lea rcx, [rbp - 0x70]
mov esi, eax
call fcn.1400079ac
test esi, esi
je 0x140006894
cmp esi, 1
jle 0x140006897
cmp esi, 3
jg 0x14004b959
mov esi, dword [rsp + 0x34]
mov r8, rbx
mov r9d, dword [rbp + 0x100c0]
mov edx, esi
mov rcx, r14
call fcn.1400057b0
mov al, byte [rsp + 0x30]
mov byte [rsp + 0x38], r12b
cmp r13b, 1
je 0x14000671b
lea rcx, [rbp + 0x20]
call fcn.140007d98
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, qword [rsp + 0x58]
mov dil, r13b
sub qword [rcx], 1
jne 0x140006841
mov edx, 8
call fcn.140024ec4
mov rcx, rbx
call fcn.140024ec4
lea rcx, [rbp - 0x48]
call fcn.1400079ac
lea rcx, [rbp - 0x28]
call fcn.1400079ac
lea rcx, [rbp + 0x20]
call fcn.140007820
dec dword [0x1400f15b8]
mov al, dil
mov rbx, qword [rsp + 0x101b0]
add rsp, 0x10170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movsxd rax, r12d
cmp word [rbx + rax*2 - 2], 0x5f
jne 0x140006786
jmp 0x14004b93b
mov r13b, dil
mov esi, dword [rsp + 0x34]
jmp 0x1400067fb
lea r9, str.include_depth_exceeded.__Make_sure_there_are_no_recursive_includes
mov qword [rsp + 0x20], r15
mov r8d, r12d
mov rdx, rbx
mov rcx, r14
call fcn.1400764c0
xor edi, edi
jmp 0x14000685c
lea r9, str.Error_opening_the_file
mov qword [rsp + 0x20], r15
mov r8d, r12d
mov rdx, rbx
mov rcx, r14
call fcn.1400764c0
nop
jmp 0x140006853
cmp dword [rsp + 0x64], 0x36304145
jne 0x140006698
lea rcx, [rbp + 0x20]
call fcn.140007d98
mov rax, qword [rbp + 0x100b8]
lea rcx, [rbp - 8]
xorps xmm0, xmm0
mov byte [rbp + 0x18], dil
mov r8d, 2
movdqu xmmword [rbp + 8], xmm0
mov rdx, qword [rax]
call fcn.14001f1c8
test eax, eax
jne 0x14004b917
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, str.___AUTOIT_SCRIPT___
lea rcx, [rbp - 8]
call fcn.14008162c
lea rcx, [rbp - 8]
mov ebx, eax
call fcn.14001f28c
test ebx, ebx
jne 0x14004b917
mov r13, qword [rsp + 0x48]
lea r15d, [rbx + 4]
or rsi, 0xffffffffffffffff
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x58], si
mov qword [rbp - 0x80], rdi
mov ebx, dword [r13]
lea ecx, [rsi + 0x21]
mov dword [rsp + 0x40], ebx
mov qword [rbp - 0x78], rdi
call fcn.140024ecc
mov r12, rax
mov word [rsp + 0x5a], si
lea rax, [0x1400b5378]
mov qword [rbp - 0x50], r12
lea edx, [rsi + 6]
lea rcx, [rsp + 0x50]
mov qword [r12], rax
mov qword [r12 + 8], rdi
mov qword [r12 + 0x10], rdi
mov qword [r12 + 0x18], rdi
call fcn.140007108
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
mov rcx, r12
call fcn.140006ee8
cmp dword [rsp + 0x40], 1
mov ebx, edi
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x3c], 1
jl 0x14004b86e
lea rax, [r15 + r13]
inc r15
movzx ebx, byte [rax]
lea rcx, [rsp + 0x50]
mov edx, ebx
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x38], ebx
call fcn.140007108
movzx ecx, word [rsp + 0x58]
mov dx, reloc.WSOCK32.dll_ntohs
cmp cx, dx
ja 0x14004b6e4
lea rax, [r15 + r13]
add r15, 4
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
jmp 0x14004b7f1
lea eax, [rcx - 0x10]
cmp ax, dx
ja 0x14004b701
lea rax, [r15 + r13]
add r15, 8
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
jmp 0x14004b7f1
lea eax, [rcx - 0x20]
cmp ax, dx
ja 0x14004b720
lea rax, [r15 + r13]
add r15, 8
movsd xmm0, qword [rax]
movsd qword [rsp + 0x50], xmm0
jmp 0x14004b7f1
sub cx, 0x30
cmp cx, dx
ja 0x14004b7f1
lea r8, [rsp + 0x48]
mov rdx, r13
call fcn.1400761e8
mov rsi, rax
mov rdx, rax
cmp ebx, 0x31
jne 0x14004b76f
lea rcx, [rbp - 0x70]
call fcn.1400094fc
mov rcx, qword [r14 + 8]
mov rdx, qword [rbp - 0x70]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rcx, [rbp - 0x70]
mov ebx, eax
call fcn.1400079ac
mov edx, 1
jmp 0x14004b797
mov eax, gethostbyname
cmp ebx, eax
jne 0x14004b7ab
lea rcx, [rbp - 0x70]
call fcn.1400094fc
lea rcx, [rbp - 0x70]
call fcn.1400053e0
lea rcx, [rbp - 0x70]
mov ebx, eax
call fcn.1400079ac
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140007108
mov dword [rsp + 0x50], ebx
mov ebx, dword [rsp + 0x38]
jmp 0x14004b7e0
cmp ebx, 0x37
jne 0x14004b7d6
mov rcx, r14
call fcn.1400760e4
test eax, eax
je 0x14004b8de
mov rcx, rsi
call fcn.140024ec4
mov r15, qword [rsp + 0x48]
or rsi, 0xffffffffffffffff
jmp 0x14004b6a4
lea rcx, [rsp + 0x50]
call fcn.14007efb4
mov rcx, rsi
call fcn.140024ec4
mov r15, qword [rsp + 0x48]
or rsi, 0xffffffffffffffff
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140006ee8
mov edx, 0x7f
cmp ebx, edx
jne 0x14004b6a4
mov rcx, qword [r12 + 0x10]
cmp rcx, 2
jbe 0x14004b84e
mov rax, qword [r12 + 8]
mov rcx, qword [rax + rcx*8 - 0x10]
cmp word [rcx + 8], dx
je 0x14004b84e
mov ebx, dword [rsp + 0x34]
lea eax, [rdx - 0x44]
mov edx, dword [r14 + 0x20]
lea r8, [rsp + 0x38]
inc ebx
mov word [rsp + 0x38], ax
mov r9d, esi
mov dword [rsp + 0x34], ebx
mov rcx, r14
call fcn.1400057b0
jmp 0x14004b85a
mov rcx, r12
call fcn.1400768b8
mov ebx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
cmp eax, dword [rsp + 0x40]
jle 0x14004b6a4
mov edx, 5
lea rcx, [rsp + 0x50]
call fcn.140007108
mov rcx, qword [r12 + 8]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
mov rcx, qword [rcx]
call fcn.14007ef10
lea rcx, [r14 + 0xa0]
lea rdx, [rbp - 0x50]
call fcn.1400768f0
mov rcx, r13
call fcn.1400272f8
mov dil, 1
lea rax, [0x1400b5378]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rax
call fcn.140006e20
mov rcx, qword [rsp + 0x78]
call fcn.140024ec4
lea rcx, [rsp + 0x50]
call fcn.1400070f4
nop
jmp 0x140006841
mov r8d, dword [rsp + 0x3c]
lea rax, [0x1400b52d0]
mov rdx, qword [rbp + 0x100b8]
lea r9, str.Bad_directive_syntax_error
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.1400764c0
mov rcx, rsi
call fcn.140024ec4
mov rcx, r13
call fcn.1400272f8
jmp 0x14004b8ae
mov rdx, qword [rbp + 0x100c8]
lea r9, str.Error_opening_the_file
mov r8d, r12d
mov qword [rsp + 0x20], r15
mov rcx, r14
call fcn.1400764c0
nop
jmp 0x140006841
mov word [rbx + rax*2 - 2], di
mov r12b, 1
jmp 0x140006789
mov rdx, rbx
mov rcx, r14
call fcn.140076050
nop
jmp 0x1400067fb
cmp esi, r15d
jne 0x140006897
mov esi, dword [rsp + 0x34]
mov al, dil
mov byte [rsp + 0x30], al
jmp 0x1400067ff
mov rdx, qword [rbp + 0x100c8]
lea r9, str.Unterminated_string
mov r8d, esi
mov qword [rsp + 0x20], rbx
mov rcx, r14
call fcn.1400764c0
mov r13b, dil
jmp 0x14000680e