Function at 0x140058984
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f]
sub rsp, 0xb0
xor r15d, r15d
xorps xmm0, xmm0
mov r14, rcx
mov dword [rbp + 0x6f], r15d
mov esi, r15d
mov qword [rbp - 0x69], r15
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
cmp qword [rbp + 0x7f], r15
je 0x14005928e
test rcx, rcx
je 0x14005928e
cmp edx, 0x24
jb 0x14005927c
cmp dword [rcx + 4], 0x5d6
jne 0x14005927c
cmp dword [rcx], edx
ja 0x14005927c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
lea edx, [r15 + 8]
lea r8d, [r15 + 0x78]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140058a39
mov r9d, 0x8007000e
mov r8d, 0x52b
mov ebx, r9d
jmp 0x14005929c
mov dword [rax + 0x48], 1
mov ebx, r15d
mov eax, dword [r14 + 0x20]
mov dword [rsi + 0x60], eax
mov eax, dword [rbp + 0x67]
mov dword [rsi + 0x4c], eax
mov eax, dword [r14 + 8]
mov dword [rsi + 0x20], eax
movups xmm0, xmmword [r14 + 0x10]
movdqu xmmword [rsi + 0x24], xmm0
cmp dword [r14], 0x24
jb 0x14005926a
mov r9, qword [rbp - 0x29]
lea r12, [r14 + 0x2b]
mov edx, dword [r14]
and r12, 0xfffffffffffffff8
mov r13, qword [rbp - 0x39]
add rdx, r14
mov qword [rbp - 0x41], r9
mov edi, 0xc1420132
mov r9, qword [rbp - 0x31]
xor r14d, r14d
mov qword [rbp - 0x61], r9
mov qword [rbp - 0x51], rdx
mov qword [rbp - 0x49], r13
lea r15, [r12 + 8]
cmp r15, rdx
jae 0x140058b81
mov ecx, dword [r12 + 4]
lea rax, [r15 + rcx]
cmp rax, rdx
ja 0x140058b81
mov r8d, dword [r12]
test r8d, r8d
je 0x140058b81
mov eax, r8d
mov ebx, r14d
sub eax, 1
je 0x140058bed
sub eax, 1
je 0x140058be7
sub eax, 1
je 0x140058be1
sub eax, 1
je 0x140058b69
cmp eax, 1
je 0x140058b69
mov r9d, ecx
mov qword [rbp - 0x59], r14
lea rcx, [rbp - 0x59]
lea rdx, str.Unknown_marshall_type__d__length__d
call fcn.14000ca00
mov r13, qword [rbp - 0x59]
test r13, r13
je 0x140058b65
xor edx, edx
mov dword [rsp + 0x30], 0x4b3
lea rax, str.UnmarshallCallback
mov r9, r13
mov qword [rsp + 0x28], rax
lea r8, str._marshall_data_
mov dword [rsp + 0x20], 0x8000ffff
lea ecx, [rdx + 2]
call fcn.14002aaa0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x51]
mov eax, dword [r12 + 4]
lea r12, [r15 + 7]
add r12, rax
and r12, 0xfffffffffffffff8
test ebx, ebx
jns 0x140058a9d
mov r14, qword [rbp + 0x47]
test ebx, ebx
js 0x140059271
mov r13, qword [rbp - 0x49]
xor r15d, r15d
test r13, r13
je 0x14005925d
mov r9, qword [rbp - 0x61]
test r9, r9
je 0x14005925d
mov r12, qword [rbp - 0x41]
test r12, r12
je 0x14005925d
xor r8d, r8d
xor edx, edx
mov rcx, r9
call fcn.14002f2f8
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x140058c13
mov r9d, 0x8007000e
mov r8d, 0x54f
mov ebx, r9d
jmp 0x14005929c
mov qword [rbp - 0x41], r15
jmp 0x140058bf1
mov qword [rbp - 0x61], r15
jmp 0x140058bf1
mov qword [rbp - 0x49], r15
shr rcx, 1
mov rax, r14
je 0x140058c0c
cmp r14w, word [r15 + rax*2]
je 0x140058b69
inc rax
cmp rax, rcx
jl 0x140058bf9
mov ebx, edi
jmp 0x140058b69
lea rdx, [rsi + 0x50]
mov rcx, rax
call fcn.1400529e8
mov ebx, eax
test eax, eax
jns 0x140058c33
mov r9d, eax
mov r8d, 0x587
jmp 0x14005929c
mov r15d, dword [rbp + 0x67]
test r15d, r15d
jne 0x140058c56
cmp dword [rbp + 0x5f], r15d
je 0x140058c4f
cmp dword [r14 + 0x20], r15d
jne 0x140058c4f
mov edi, 0xe0000000
jmp 0x140058c5b
mov edi, 0xa0000000
jmp 0x140058c5b
mov edi, 0x20000000
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.14002f2f8
mov qword [rsi + 0x18], rax
test rax, rax
jne 0x140058c8a
and qword [rsp + 0x20], rax
mov r9d, 0x8007000e
mov ebx, r9d
mov r8d, 0x595
jmp 0x1400592a1
mov r9d, dword [rbp + 0x57]
lea rcx, [rbp + 0x6f]
mov qword [rsp + 0x28], rcx
or r9d, 0x40
and dword [rsp + 0x20], 0
mov rcx, r13
mov r8d, 3
mov edx, edi
call fcn.14000f62c
xor r13d, r13d
mov qword [rsi + 0x40], rax
test rax, rax
jne 0x140058d09
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
cmp eax, 0x35
ja 0x140058cdf
movabs rdx, 0x2000000000080c
bt rdx, rcx
jb 0x140058d09
cmp ecx, 0x43
je 0x140058d09
test eax, eax
je 0x140058d09
movzx ebx, cx
mov r8d, 0x5b0
or ebx, 0x80070000
mov qword [rsp + 0x20], r13
test ecx, ecx
cmovle ebx, ecx
mov r9d, ebx
jmp 0x1400592a1
test r15d, r15d
jne 0x1400591da
mov rcx, qword [rsi + 0x40]
test rcx, rcx
je 0x140058f9c
mov rdx, r12
call fcn.140010378
test eax, eax
jne 0x140058f1d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140058d96
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
mov edi, 0x80070000
movzx eax, ax
or eax, edi
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x140058d7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x140058d83
mov ebx, 0x80004005
mov qword [rsp + 0x20], r13
mov r9d, ebx
mov r8d, 0x5c1
jmp 0x1400592a1
add eax, 2
cmp eax, edi
jb 0x140058f04
add rax, rax
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x140058eeb
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov qword [rbp - 0x69], rax
mov r15, rax
test rax, rax
jne 0x140058dfc
mov r9d, 0x8007000e
mov qword [rsp + 0x20], r13
mov ebx, r9d
mov r8d, 0x5cb
jmp 0x1400592a1
lea ecx, [rdi + 1]
cmp ecx, edi
jb 0x140058ebf
mov rdx, r15
mov ebx, r13d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
test eax, eax
jne 0x140058e64
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140058e54
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x140058e59
mov ebx, 0x80004005
mov r9d, ebx
mov r8d, 0x5d3
jmp 0x140058ece
mov rcx, qword [rsi + 0x40]
mov rdx, r15
call fcn.140010378
test eax, eax
jne 0x140058f20
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140058eaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x140058eb4
mov ebx, 0x80004005
mov r9d, ebx
mov r8d, 0x5db
jmp 0x140058ece
mov r9d, 0x80070216
mov r8d, 0x5ce
mov ebx, r9d
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmountmountedimage.c
mov qword [rsp + 0x20], r13
lea rcx, str.ImageUnmarshallHandle
call fcn.140046874
jmp 0x1400591f1
mov r9d, 0x80070216
mov qword [rsp + 0x20], r13
mov ebx, r9d
mov r8d, 0x5c8
jmp 0x1400592a1
mov r9d, 0x80070216
mov qword [rsp + 0x20], r13
mov ebx, r9d
mov r8d, 0x5c5
jmp 0x1400592a1
mov r15, r13
mov edx, dword [r14 + 8]
mov rcx, qword [rsi + 0x40]
call fcn.140012e38
mov qword [rsi + 0x38], rax
test rax, rax
jne 0x14005903a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140058f71
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x140058f76
mov ebx, 0x80004005
mov r9d, ebx
mov qword [rsp + 0x20], r13
mov r8d, 0x5e2
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmountmountedimage.c
lea rcx, str.ImageUnmarshallHandle
call fcn.140046874
jmp 0x1400591e8
mov edx, dword [r14 + 8]
xor r8d, r8d
xor ecx, ecx
call fcn.14002e860
mov qword [rsi + 0x38], rax
mov rcx, rax
test rax, rax
jne 0x140059005
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140058fed
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x140058ff2
mov ebx, 0x80004005
mov qword [rsp + 0x20], r13
mov r9d, ebx
mov r8d, 0x5ec
jmp 0x1400592a1
mov dword [rsi + 0x60], 1
lea rdx, [r14 + 0xc]
mov rax, qword [rax + 0x48]
test rax, rax
cmovne rcx, rax
test rdx, rdx
je 0x140059025
mov eax, dword [rcx + 0x24]
jmp 0x140059027
mov eax, dword [rdx]
bts eax, 0x12
mov dword [rdx], eax
mov rcx, qword [rsi + 0x38]
call fcn.14002e0f8
mov rax, qword [rsi + 0x38]
mov rdx, qword [rbp - 0x61]
mov rcx, rax
call fcn.14002e1a8
test eax, eax
jne 0x1400590ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140059081
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x140059086
mov ebx, 0x80004005
mov r8d, 0x601
mov r9d, ebx
mov qword [rsp + 0x20], r13
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmountmountedimage.c
lea rcx, str.ImageUnmarshallHandle
call fcn.140046874
jmp 0x1400591e4
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140059216
lea rdx, [r14 + 0x10]
test rdx, rdx
je 0x140059216
mov rax, qword [rcx + 0x48]
movups xmm0, xmmword [rdx]
test rax, rax
lea rdx, [r14 + 0xc]
cmove rax, rcx
movdqu xmmword [rax + 0x10], xmm0
mov rcx, qword [rsi + 0x38]
call fcn.14002e0f8
test eax, eax
jne 0x140059131
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140059121
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x140059126
mov ebx, 0x80004005
mov r8d, 0x617
jmp 0x14005908c
cmp qword [rsi + 0x40], r13
je 0x1400591a8
mov r8d, dword [rdx]
xor r9d, r9d
mov rdx, qword [rsi + 0x10]
and r8d, 0x8000000
mov rcx, qword [rsi + 0x38]
or r8d, 0x1000008
mov dword [rsp + 0x20], r13d
call fcn.1400139d4
test eax, eax
jne 0x1400591a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140059198
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x14005919d
mov ebx, 0x80004005
mov r8d, 0x62a
jmp 0x14005908c
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
lea r9, [rsi + 0x58]
mov edx, 0x2000c
mov rcx, rax
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x1400591da
mov qword [rsi + 0x58], r13
mov rax, qword [rbp + 0x7f]
mov qword [rax], rsi
mov rsi, r13
mov r15, qword [rbp - 0x69]
test r15, r15
je 0x1400592b4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x1400592b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14005924d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x140059252
mov ebx, 0x80004005
mov r8d, 0x60c
jmp 0x14005908c
mov ebx, edi
mov r9d, edi
mov r8d, 0x547
jmp 0x14005929c
mov ebx, 0xc1420132
jmp 0x140059274
xor r15d, r15d
mov r8d, 0x53b
jmp 0x140059299
mov edi, 0xc1420132
mov r8d, 0x527
mov ebx, edi
mov r9d, edi
jmp 0x14005929c
mov ebx, 0x80070057
mov r8d, 0x520
mov r9d, ebx
mov qword [rsp + 0x20], r15
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmountmountedimage.c
lea rcx, str.ImageUnmarshallHandle
call fcn.140046874
mov rcx, rsi
call fcn.140057bb4
mov eax, ebx
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret