Function at 0x140010a40
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.1400367b0
sub rsp, rax
mov eax, dword [0x1400dcfe0]
mov r10, r9
mov r13, rdx
inc eax
mov r14, rcx
mov dword [0x1400dcfe0], eax
cmp eax, 0x30
jge 0x140086540
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.140005dd4
lea rcx, [rbp - 0x30]
mov rdx, r13
call fcn.140006d50
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x70]
mov r8d, 0x2000
call fcn.1400057d4
test al, al
je 0x1400110b5
xor bl, bl
lea rcx, [rbp - 0x30]
call fcn.14000fef0
test bl, bl
jne 0x1400865d4
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.14000420c
lea rcx, [rsp + 0x70]
xor r8d, r8d
mov rdx, rbx
call fcn.140005c30
cmp dword [rsp + 0x50], 0x21335541
je 0x14008656f
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.140026e58
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x260]
call fcn.140025c80
lea rdx, [rbp + 0x470]
lea rcx, [rbp + 0x260]
call fcn.140025c54
lea rcx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or r13, 0xffffffffffffffff
mov ebx, 4
cmp dil, 1
jne 0x140011028
mov rcx, qword [rbp - 0x58]
mov word [rbp + 0x890], r15w
mov eax, dword [rcx]
cmp eax, 1
jg 0x140086923
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x68], r15
mov word [rax], r15w
mov eax, dword [rbp - 0x4c]
test al, 1
jne 0x1400869c7
test al, 2
jne 0x1400869c7
test al, 4
jne 0x140086956
mov ecx, reloc.WSOCK32.dll_recv
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], reloc.WSOCK32.dll_recv
call fcn.140025aa8
mov rcx, rbx
mov byte [rax], r15b
mov qword [rsp + 0x40], rax
call fcn.140025aa8
test rax, rax
je 0x1400110bc
mov dword [rax], 1
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.1400110d0
test al, al
jne 0x140010ea6
mov rbx, qword [rsp + 0x58]
dec dword [rbx]
jne 0x140010c93
mov rcx, qword [rsp + 0x40]
call fcn.140025b50
mov rcx, rbx
call fcn.140025b50
xor al, al
test al, al
je 0x140011028
mov rbx, qword [rbp - 0x68]
cmp rbx, 0xffe
ja 0x1400869db
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp + 0x890]
call fcn.140025c80
inc dword [rsp + 0x34]
mov rbx, r15
mov rdi, r15
movzx esi, word [rbp + rbx*2 + 0x890]
movzx ecx, si
call fcn.140026804
test eax, eax
je 0x140010ced
movzx ecx, si
call fcn.140026820
test eax, eax
je 0x140010ced
inc rbx
jmp 0x140010cc8
cmp word [rbp + rbx*2 + 0x890], di
je 0x140010d22
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 0x140010d00
lea rdx, [rbp + 0x890]
mov word [rbp + rdi*2 + 0x890], r15w
call fcn.1400112c0
test al, al
je 0x140086a2b
lea rcx, [rbp + 0x890]
call fcn.140025c38
test eax, eax
je 0x140010d89
lea ebx, [rax - 1]
movsxd rdi, ebx
test ebx, ebx
js 0x140010d7d
movzx esi, word [rbp + rdi*2 + 0x890]
movzx ecx, si
call fcn.140026804
test eax, eax
je 0x140010d7d
movzx ecx, si
call fcn.140026820
test eax, eax
jne 0x140010fb3
movsxd rax, ebx
mov word [rbp + rax*2 + 0x892], r15w
lea rcx, [rbp + 0x890]
xor dil, dil
call fcn.140025c38
cmp eax, 2
jle 0x140010db9
movsxd rbx, eax
movzx ecx, word [rbp + rbx*2 + 0x88c]
and cx, 0x7f
call fcn.140026820
test eax, eax
jne 0x140010f77
lea rdx, [rbp + 0x890]
mov rcx, r14
cmp r12b, 1
je 0x1400110a3
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x34]
lea r8, [rbp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400113b0
cmp eax, 3
jne 0x140010fff
cmp qword [r14 + 0x10], r15
je 0x14001108c
mov rax, qword [r14 + 0x18]
mov rcx, qword [rax]
cmp word [rcx], r15w
je 0x140010f69
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140025aa8
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.140025c38
lea rcx, [rax + 1]
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140025aa8
lea rdx, [rbp + 0x890]
mov rcx, rax
mov rbx, rax
call fcn.140025c80
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 0x1400110ad
xor r12b, r12b
cmp sil, 1
jne 0x140011028
movzx edi, byte [rsp + 0x38]
jmp 0x140010bd8
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 0x14008696a
mov eax, 2
mul rbx
cmovo rax, r13
mov rcx, rax
call fcn.140025aa8
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 0x140010f97
test rdi, rdi
je 0x140010f97
mov rcx, qword [rbp - 0x58]
mov eax, dword [rcx]
cmp eax, 1
jg 0x140086990
lea rdx, [rbx + 1]
cmp qword [rbp - 0x60], rdx
jb 0x140010fc3
mov rsi, qword [rbp - 0x70]
mov qword [rbp - 0x68], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140025590
mov rcx, rdi
mov word [rbx + rsi], r15w
call fcn.140025b50
nop
jmp 0x140086973
call fcn.140025b50
dec dword [r14 + 0x20]
jmp 0x140010e1f
cmp word [rbp + rbx*2 + 0x88e], 0x5f
jne 0x140010db9
mov word [rbp + rbx*2 + 0x88e], r15w
mov dil, 1
jmp 0x140010db9
lea rcx, [rbp - 0x70]
mov r8, r13
xor edx, edx
call fcn.140011840
mov rcx, rdi
call fcn.140025b50
nop
jmp 0x140086973
dec ebx
dec rdi
jns 0x140010d59
jmp 0x140010d7d
call fcn.14000fedc
mov rcx, qword [rbp - 0x70]
mov rsi, rax
mov qword [rbp - 0x60], rax
test rcx, rcx
je 0x140010fdd
call fcn.140025b50
mov eax, 2
mul rsi
cmovo rax, r13
mov rcx, rax
call fcn.140025aa8
mov word [rax + rbx*2], r15w
mov qword [rbp - 0x70], rax
jmp 0x140010f3d
test eax, eax
je 0x140086a1e
cmp eax, 2
je 0x140010dee
movzx esi, byte [rsp + 0x30]
cmp eax, 4
jne 0x140010e85
mov byte [rsp + 0x38], r15b
jmp 0x140010e85
lea rcx, [rsp + 0x70]
call fcn.140005e04
lea rcx, [rbp + 0x680]
mov qword [rbp - 0x4c], r15
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x70]
call fcn.140005d8c
dec dword [0x1400dcfe0]
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.140025aa8
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
jmp 0x140010e1f
call fcn.140025044
jmp 0x140010e80
mov r12b, 1
jmp 0x140010e92
mov bl, 1
jmp 0x140010b05
mov qword [rsp + 0x58], r15
jmp 0x140010c61
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.14004afdc
dec dword [0x1400dcfe0]
xor al, al
jmp 0x14001107f
cmp dword [rsp + 0x54], 0x36304145
jne 0x140010b7d
lea rcx, [rsp + 0x70]
call fcn.140005e04
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.1400045d4
test eax, eax
jne 0x1400865d4
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x60]
lea rdx, str.___AUTOIT_SCRIPT___
lea rcx, [rbp + 0x18]
call fcn.140056d80
lea rcx, [rbp + 0x18]
test eax, eax
je 0x140086605
call fcn.1400046ac
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.14004afdc
xor sil, sil
jmp 0x140011043
call fcn.1400046ac
mov r14, qword [rsp + 0x60]
lea rax, [0x1400b0ca8]
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.140025aa8
mov rdi, rax
test rax, rax
je 0x140086669
lea rax, [0x1400b0ca8]
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 0x140086671
mov rdi, r15
mov qword [rsp + 0x60], r15
lea rcx, [rsp + 0x40]
mov edx, 5
mov word [rsp + 0x4a], r12w
call fcn.140014dec
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov dword [rsp + 0x40], ebx
call fcn.140014cb0
mov r12d, 1
cmp ebx, r12d
jl 0x14008688c
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.140014dec
lea rcx, [rsp + 0x40]
call fcn.140053f80
test al, al
je 0x1400866e4
lea rax, [rsi + r14]
add rsi, 4
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
jmp 0x140086811
lea rcx, [rsp + 0x40]
call fcn.140053f70
test al, al
je 0x140086707
lea rax, [rsi + r14]
add rsi, 8
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
jmp 0x140086811
lea rcx, [rsp + 0x40]
call fcn.140053f60
test al, al
je 0x14008672e
movsd xmm0, qword [rsi + r14]
lea rax, [rsi + r14]
add rsi, 8
movsd qword [rsp + 0x40], xmm0
jmp 0x140086811
lea rcx, [rsp + 0x40]
call fcn.140015140
test al, al
je 0x140086811
lea r8, [rbp - 0x40]
mov rdx, r14
call fcn.14004ad18
mov rsi, rax
mov rdx, rax
cmp r15d, 0x31
jne 0x140086794
lea rcx, [rbp - 8]
call fcn.140006d50
mov rcx, qword [rbp + 0x2cf0]
lea rdx, [rbp - 8]
call fcn.140025100
lea rcx, [rbp - 8]
mov ebx, eax
call fcn.14000fef0
lea edx, [r15 - 0x30]
lea rcx, [rsp + 0x40]
call fcn.140014dec
mov dword [rsp + 0x40], ebx
mov ebx, dword [rsp + 0x34]
jmp 0x140086805
cmp r15d, 0x30
jne 0x1400867cd
lea rcx, [rbp - 8]
call fcn.140006d50
lea rdx, [rbp - 8]
call fcn.14004b26c
lea rcx, [rbp - 8]
mov ebx, eax
call fcn.14000fef0
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.140014dec
mov dword [rsp + 0x40], ebx
mov ebx, dword [rsp + 0x34]
jmp 0x140086805
cmp r15d, 0x37
jne 0x1400867fb
mov r15, qword [rbp + 0x2cf0]
mov rcx, r15
call fcn.14004ac14
test eax, eax
je 0x1400868ed
mov rcx, rsi
call fcn.140025b50
mov rsi, qword [rbp - 0x40]
jmp 0x1400866a6
lea rcx, [rsp + 0x40]
call fcn.140053ee0
mov rcx, rsi
call fcn.140025b50
mov rsi, qword [rbp - 0x40]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140014cb0
cmp r15d, 0x7f
jne 0x1400866a6
mov rcx, qword [rdi + 0x10]
cmp rcx, 2
jbe 0x140086874
mov rax, qword [rdi + 8]
mov rcx, qword [rax + rcx*8 - 0x10]
cmp word [rcx + 8], r15w
je 0x140086874
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.14004ab68
jmp 0x140086880
mov rcx, rdi
call fcn.14004b234
mov r15, qword [rbp - 0x38]
inc r12d
cmp r12d, ebx
jle 0x1400866a6
lea rcx, [rsp + 0x40]
mov edx, 5
call fcn.140014dec
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx]
mov dword [rsp + 0x40], r15d
call fcn.140053e30
mov rax, qword [rbp + 0x2cf0]
lea rdx, [rsp + 0x60]
lea rcx, [rax + 0x88]
call fcn.1400719d0
mov rcx, r14
call fcn.140026d9c
mov sil, 1
lea rcx, [rbp - 0x30]
call fcn.140003c00
lea rcx, [rsp + 0x40]
call fcn.140053e10
nop
jmp 0x140011043
lea rax, [0x1400b0ad8]
lea r9, str.Bad_directive_syntax_error
mov r8d, r12d
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.14004afdc
mov rcx, rsi
call fcn.140025b50
mov rcx, r14
call fcn.140026d9c
xor sil, sil
jmp 0x1400868d4
dec eax
mov dword [rcx], eax
lea rcx, [rbp - 0x70]
call fcn.140010a08
mov ecx, 8
mov eax, 2
mov qword [rbp - 0x60], rcx
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140025574
mov qword [rbp - 0x70], rax
jmp 0x140010bfe
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.14004ee54
nop
jmp 0x140010c95
lea rcx, [rbp - 0x70]
call fcn.140015320
lea rcx, [rsp + 0x40]
call fcn.14000fef0
mov r14, qword [rbp + 0x2cf0]
movzx esi, byte [rsp + 0x30]
mov al, 1
jmp 0x140010c95
dec eax
mov dword [rcx], eax
lea rcx, [rbp - 0x70]
call fcn.140010a08
lea rdx, [rbx + 1]
call fcn.14000fedc
mov rcx, rax
mov qword [rbp - 0x60], rax
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140025aa8
nop
jmp 0x140010ff6
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.14004ecf0
nop
jmp 0x140010c95
lea rcx, [rbp - 0x70]
add rbx, 0xfffffffffffff002
call fcn.14000733c
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.140025590
mov qword [rbp - 0x68], rdi
jmp 0x140010cae
xor sil, sil
mov byte [rsp + 0x30], sil
jmp 0x140010e85
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.14004afdc
xor sil, sil
jmp 0x140011028