Function at 0x140047990
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x328
mov rdi, r9
mov rbx, r8
mov r15, rdx
mov rbp, rcx
mov r12, qword [rsp + 0x3c0]
mov r14, qword [rsp + 0x3b0]
mov r13, qword [0x1400e00c0]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x320], rax
call fcn.14004e8b0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140057420
test al, al
je 0x140047a49
mov rax, qword [rsp + 0x3b8]
mov rcx, qword [rsp + 0x3a8]
mov edx, dword [rsp + 0x3a0]
mov esi, dword [rsp + 0x398]
mov r9, qword [rsp + 0x390]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], esi
mov rcx, r15
mov rdx, rbx
mov r8, rdi
call rbp
mov edi, 1
test eax, eax
jne 0x140047c74
lea rcx, str.CreateProcessA
mov rdx, r15
call fcn.140007100
call fcn.14004e8b0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140057400
xor edi, edi
test al, al
je 0x140047c74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, 0x18
mov rcx, r12
mov r8d, 1
call fcn.14004ec90
test al, al
je 0x140047c6c
call fcn.14004e9d0
test rax, rax
je 0x140047c6c
mov rbp, rax
test rbx, rbx
je 0x140047adc
mov rcx, rbx
call fcn.14004f440
mov rbx, rax
test rax, rax
je 0x140047c6c
test r15, r15
je 0x140047ae3
mov rcx, r15
call fcn.14004f440
test rax, rax
jne 0x140047ae5
mov rcx, rbx
jmp 0x140047b0b
xor ebx, ebx
test r15, r15
jne 0x140047aca
xor eax, eax
mov qword [rsp + 0x58], rax
test r14, r14
je 0x140047b17
mov rcx, r14
call fcn.14004f440
test rax, rax
jne 0x140047b19
mov rcx, rbx
xor edx, edx
call fcn.14004f560
mov rcx, qword [rsp + 0x58]
xor edx, edx
call fcn.14004f560
jmp 0x140047c6c
xor eax, eax
test rbx, rbx
je 0x140047b24
mov rdx, qword [rbx + 8]
jmp 0x140047b26
xor edx, edx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0xa8], rdx
test rcx, rcx
je 0x140047b3e
mov rcx, qword [rcx + 8]
jmp 0x140047b40
xor ecx, ecx
mov qword [rsp + 0xa0], rcx
test rax, rax
mov qword [rsp + 0x60], rax
je 0x140047b58
mov rax, qword [rax + 8]
jmp 0x140047b5a
xor eax, eax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x90], 0
lea r14, [rsp + 0x110]
mov ecx, 0x104
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x102
ja 0x140047b9b
mov qword [rsp + 0x90], r14
lea r14, [rsp + 0x80]
mov rcx, r14
mov rdx, rbp
call fcn.140052940
xorps xmm0, xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0x100], 0
mov dword [rsp + 0x70], 0x18
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0xa0]
lea r9, [rsp + 0xa8]
mov rcx, r14
mov edx, 0xd
call fcn.140047ce0
mov ebx, eax
xor ebp, ebp
mov rcx, qword [rsp + 0x68]
xor edx, edx
call fcn.14004f560
mov rcx, qword [rsp + 0x58]
xor edx, edx
call fcn.14004f560
mov rcx, qword [rsp + 0x60]
xor edx, edx
call fcn.14004f560
test ebx, ebx
je 0x140047c9e
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x320]
xor rax, rsp
mov rcx, qword [r13]
cmp rcx, rax
jne 0x140047ccd
mov eax, edi
add rsp, 0x328
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, dword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rsp + 0xb8], 0
jne 0x140047cc9
lea rcx, str.CreateProcessA
mov rdx, r15
call fcn.140007360
mov ebp, 1
mov edi, ebp
jmp 0x140047c74
call fcn.14005fbe0
int3