Function at 0x14002d220
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x318
lea rbp, [rsp + 0x80]
mov rdi, r9
mov r13, r8
mov r15, rdx
mov rbx, rcx
mov r12, qword [rbp + 0x330]
mov r14, qword [rbp + 0x320]
call fcn.1400508a0
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x10]
mov rcx, rax
mov rax, rdx
call qword [case.0x14002eb7e.0]
cmp byte [rax + 4], 0
je 0x14002d2cb
mov rax, qword [rbp + 0x328]
mov rcx, qword [rbp + 0x318]
mov edx, dword [rbp + 0x310]
mov esi, dword [rbp + 0x308]
mov r9, qword [rbp + 0x300]
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, r13
mov r8, rdi
mov rax, rbx
call qword [case.0x14002eb7e.0]
mov edi, 1
test eax, eax
jne 0x14002d2f9
lea rcx, str.CreateProcessA
mov rdx, r15
call fcn.140039bb0
call fcn.1400508a0
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x10]
mov rcx, rax
mov rax, rdx
call qword [case.0x14002eb7e.0]
xor edi, edi
cmp dword [rax], 0
jg 0x14002d30f
mov eax, edi
add rsp, 0x318
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, 0x18
mov rcx, r12
mov r8d, 1
call fcn.14004c930
call fcn.14004c7b0
test al, al
je 0x14002d697
mov rsi, qword [0x140063a08]
test rsi, rsi
je 0x14002d697
test r13, r13
je 0x14002d361
mov rcx, r13
call fcn.14004cfb0
mov r13, rax
test rax, rax
jne 0x14002d364
jmp 0x14002d697
xor r13d, r13d
test r15, r15
je 0x14002d37b
mov rcx, r15
call fcn.14004cfb0
test rax, rax
jne 0x14002d37d
mov rcx, r13
jmp 0x14002d3a7
xor eax, eax
mov qword [rbp + 0x270], rax
test r14, r14
je 0x14002d3b3
mov rcx, r14
call fcn.14004cfb0
test rax, rax
jne 0x14002d3b5
mov rcx, r13
xor edx, edx
call fcn.14004d080
mov rcx, qword [rbp + 0x270]
xor edx, edx
call fcn.14004d080
jmp 0x14002d697
xor eax, eax
test r13, r13
je 0x14002d3c0
mov rcx, qword [r13 + 8]
jmp 0x14002d3c2
xor ecx, ecx
mov qword [rbp + 0x268], rcx
mov rcx, qword [rbp + 0x270]
test rcx, rcx
je 0x14002d3db
mov rcx, qword [rcx + 8]
jmp 0x14002d3dd
xor ecx, ecx
mov qword [rbp + 0x260], rcx
test rax, rax
mov dword [rbp + 0x294], ebx
mov qword [rbp + 0x288], r13
mov qword [rbp + 0x258], rax
je 0x14002d403
mov rax, qword [rax + 8]
jmp 0x14002d405
xor eax, eax
mov qword [rbp + 0x278], rax
lea r13, [rbp - 0x30]
mov ecx, 0x104
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
dec r14d
xor ebx, ebx
cmp r14d, 0x103
cmovae r13, rbx
lea rcx, [rbp + 0x238]
mov qword [rcx], rsi
add rsi, qword [rsi + 0x10]
mov qword [rcx + 8], rsi
xorps xmm0, xmm0
movaps xmmword [rbp + 0x220], xmm0
movaps xmmword [rbp + 0x210], xmm0
movaps xmmword [rbp + 0x200], xmm0
movaps xmmword [rbp + 0x1f0], xmm0
movaps xmmword [rbp + 0x1e0], xmm0
mov qword [rbp + 0x230], 0
call fcn.14004e290
test rax, rax
je 0x14002d65b
mov qword [rax], 0xd
mov dword [rax + 0x60], 5
mov qword [rbp + 0x280], rax
mov dword [rax + 0x6c], 0xb0
mov rsi, qword [rbp + 0x260]
test rsi, rsi
je 0x14002d4d2
mov rcx, rsi
call fcn.140040ec0
mov rbx, rax
add ebx, ebx
cmp ebx, 0x400
ja 0x14002d65b
mov r8d, ebx
mov rax, qword [rbp + 0x280]
mov eax, dword [rax + 0x6c]
jmp 0x14002d4da
mov eax, 0xb0
xor r8d, r8d
mov ecx, eax
mov eax, 0x400
sub rax, r8
cmp rax, rcx
jb 0x14002d65b
mov rdx, rsi
mov rsi, qword [rbp + 0x280]
add rcx, rsi
call fcn.14002dbb0
mov eax, dword [rsi + 0x6c]
add eax, ebx
add eax, 7
and eax, 0xfffffff8
mov dword [rsi + 0x78], eax
mov dword [rsi + 0x70], ebx
mov dword [rsi + 0x68], 1
mov rsi, qword [rbp + 0x268]
test rsi, rsi
je 0x14002d54b
mov rcx, rsi
call fcn.140040ec0
mov rbx, rax
add ebx, ebx
cmp ebx, 0x400
ja 0x14002d65b
mov r8d, ebx
mov rax, qword [rbp + 0x280]
mov eax, dword [rax + 0x78]
jmp 0x14002d550
xor r8d, r8d
xor ebx, ebx
mov ecx, eax
mov eax, 0x400
sub rax, r8
cmp rax, rcx
jb 0x14002d65b
mov rdx, rsi
mov rsi, qword [rbp + 0x280]
add rcx, rsi
call fcn.14002dbb0
mov eax, dword [rsi + 0x78]
add eax, ebx
add eax, 7
and eax, 0xfffffff8
mov dword [rsi + 0x84], eax
mov dword [rsi + 0x7c], ebx
mov dword [rsi + 0x74], 1
cmp r14d, 0x102
ja 0x14002d5c4
mov rcx, r13
call fcn.140040ec0
mov rbx, rax
add ebx, ebx
cmp ebx, 0x400
ja 0x14002d65b
mov r8d, ebx
mov rsi, qword [rbp + 0x280]
mov eax, dword [rsi + 0x84]
jmp 0x14002d5d0
xor r8d, r8d
xor ebx, ebx
mov rsi, qword [rbp + 0x280]
mov ecx, eax
mov eax, 0x400
sub rax, r8
cmp rax, rcx
jb 0x14002d65b
add rcx, rsi
mov rdx, r13
call fcn.14002dbb0
mov eax, dword [rsi + 0x84]
add eax, ebx
add eax, 7
and eax, 0xfffffff8
mov dword [rsi + 0x90], eax
mov dword [rsi + 0x88], ebx
mov dword [rsi + 0x80], 1
cmp qword [rbp + 0x278], 0
je 0x14002d643
mov rcx, qword [rbp + 0x278]
call fcn.140040ec0
mov rbx, rax
add ebx, ebx
cmp ebx, 0x400
ja 0x14002d65b
mov r8d, ebx
mov rax, qword [rbp + 0x280]
mov eax, dword [rax + 0x90]
jmp 0x14002d648
xor r8d, r8d
xor ebx, ebx
mov ecx, eax
mov eax, 0x400
sub rax, r8
cmp rax, rcx
jae 0x14002d6f6
mov ebx, dword [rbp + 0x294]
mov rcx, qword [rbp + 0x288]
mov esi, 4
xor r14d, r14d
xor edx, edx
call fcn.14004d080
mov rcx, qword [rbp + 0x270]
xor edx, edx
call fcn.14004d080
mov rcx, qword [rbp + 0x258]
xor edx, edx
call fcn.14004d080
test esi, esi
je 0x14002d6a4
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14002d2f9
mov ecx, dword [rbp + 0x1e8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rbp + 0x1e8], 0
jne 0x14002d6ee
mov rax, qword [0x140061df0]
mov r14d, 1
test rax, rax
je 0x14002d6ee
mov qword [rsp + 0x20], 0
lea rcx, str.Broker_ALLOWED
lea rdx, str.CreateProcessA
mov r8, r15
xor r9d, r9d
call qword [case.0x14002eb7e.0]
mov edi, r14d
jmp 0x14002d2f9
add rcx, qword [rbp + 0x280]
mov rdx, qword [rbp + 0x278]
call fcn.14002dbb0
mov rcx, qword [rbp + 0x280]
mov eax, dword [rcx + 0x90]
add eax, ebx
add eax, 7
and eax, 0xfffffff8
mov dword [rcx + 0x9c], eax
mov dword [rcx + 0x94], ebx
mov dword [rcx + 0x8c], 1
mov dword [rbp + 0x248], 0x18
mov qword [rbp + 0x250], r12
mov r14d, 4
test r12, r12
je 0x14002d81e
cmp eax, 0x3e8
ja 0x14002d81e
mov ecx, eax
add rcx, qword [rbp + 0x280]
mov r8d, 0x18
mov rdx, r12
call fcn.14002dbb0
mov rdx, qword [rbp + 0x280]
mov dword [rdx + 4], 1
mov eax, dword [rdx + 0x9c]
add eax, 0x1f
and eax, 0xfffffff8
mov dword [rdx + 0xa8], eax
mov dword [rdx + 0xa0], 0x18
mov dword [rdx + 0x98], 6
lea rcx, [rbp + 0x238]
lea r8, [rbp + 0x1e0]
call fcn.14004e410
mov r14d, 0xa
cmp eax, 0xa
je 0x14002d81e
mov ebx, eax
mov rax, qword [rbp + 0x280]
mov r14d, dword [rax + 0x9c]
lea rcx, [rbp + 0x248]
call fcn.14003a650
mov r12d, eax
lea rcx, [rbp + 0x248]
call fcn.14003a660
mov rdx, qword [rbp + 0x280]
add rdx, r14
mov r8d, r12d
mov rcx, rax
call fcn.14002dbb0
lea rcx, [rbp + 0x238]
mov rdx, qword [rbp + 0x280]
call fcn.14004e3d0
mov r14d, ebx
mov ebx, dword [rbp + 0x294]
mov rcx, qword [rbp + 0x288]
mov esi, r14d
jmp 0x14002d66d