Function at 0x1400220b0
Capabilities:
Get process image filename

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x320
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400d73a8]
xor rax, rsp
mov qword [rsp + 0x318], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov rcx, qword [rcx]
call fcn.14003bb00
mov byte [rbx + 8], al
mov rcx, qword [rbx]
call fcn.14003b0a0
movzx edi, al
mov ecx, 0x1b8
call fcn.1400867f8
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140022141
lea rcx, [rbx + 0x10]
mov qword [rsp + 0x20], rcx
movzx r9d, byte [rbx + 9]
movzx r8d, dil
mov edx, dword [rcx]
mov rcx, rax
call fcn.140021120
mov rsi, rax
jmp 0x140022144
mov rsi, r12
mov qword [rsp + 0x30], rsi
mov byte [rsp + 0x200], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x201]
call fcn.140086940
mov r8d, 0x104
lea rdx, [rsp + 0x200]
mov rcx, qword [rbx]
call sub.PSAPI.DLL_GetProcessImageFileNameA
mov qword [rsp + 0x1c0], 0xf
mov qword [rsp + 0x1b8], r12
mov byte [rsp + 0x1a8], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x200]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x1a8]
call fcn.140003e20
nop
lea rdx, [rsp + 0x1a8]
lea rcx, [rsp + 0x1d0]
call fcn.1400429e0
nop
lea rcx, [rsi + 8]
mov rdx, rax
call fcn.140006070
nop
cmp qword [rsp + 0x1e8], 0x10
jb 0x140022200
mov rcx, qword [rsp + 0x1d0]
call fcn.140085df8
mov qword [rsp + 0x1e8], 0xf
mov qword [rsp + 0x1e0], r12
mov byte [rsp + 0x1d0], 0
cmp qword [rsp + 0x1c0], 0x10
jb 0x140022234
mov rcx, qword [rsp + 0x1a8]
call fcn.140085df8
lea rax, [0x1400aaf70]
mov qword [rsp + 0xa0], rax
lea rax, [0x1400aaf68]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x40], 1
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x138], rax
mov qword [rsp + 0xa8], r12
lea rcx, [rsp + 0x138]
call fcn.140001570
lea rdx, [rsp + 0xb8]
mov qword [rsp + 0x180], rdx
mov qword [rsp + 0x188], r12
mov dl, 0x20
lea rcx, [rsp + 0x138]
call fcn.1400037e0
mov byte [rsp + 0x190], al
cmp qword [rsp + 0x180], 0
jne 0x1400222d2
mov edx, dword [rsp + 0x148]
or edx, 4
xor r8d, r8d
lea rcx, [rsp + 0x138]
call fcn.1400013e0
nop
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xb0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0xa0], rax
lea rcx, [rsp + 0xb8]
call fcn.140001f90
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x128], r12
mov dword [rsp + 0x130], r12d
mov rdx, rsi
mov rcx, rbx
call fcn.140021710
mov qword [rsp + 0x58], rax
jmp 0x14002236f
mov rdx, rsi
mov rcx, rbx
call fcn.1400211e0
mov qword [rsp + 0x38], rax
jmp 0x14002238e
mov qword [rsp + 0x40], r12
cmp dword [rbx + 0x34], 0
je 0x1400223b8
mov rdx, rsi
mov rcx, rbx
call fcn.140020a70
mov qword [rsp + 0x40], rax
jmp 0x1400223b8
cmp byte [rbx + 0x30], 0
je 0x1400223dd
mov rdx, rsi
mov rcx, rbx
call fcn.140020eb0
mov r12, rax
jmp 0x1400223dd
cmp qword [rsp + 0x58], 0
jne 0x14002244c
cmp qword [rsp + 0x40], 0
jne 0x14002244c
cmp qword [rsp + 0x38], 0
jne 0x14002244c
test r12, r12
jne 0x14002244c
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0xa0]
call fcn.140008070
nop
cmp qword [rax + 0x18], 0x10
jb 0x14002241a
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.140085bc8
lea rdx, vtable.std::runtime_error.0
mov qword [rsp + 0x68], rdx
lea rdx, [0x1400d3190]
lea rcx, [rsp + 0x68]
call fcn.14008689c
nop
mov qword [rsp + 0x50], rsi
lea rdx, [rsi + 0xd8]
lea rcx, [rsp + 0x50]
call fcn.140028df0
mov rdx, rsi
mov rcx, rbx
call fcn.14001f5d0
nop
lea rcx, [rsp + 0x138]
call fcn.140002760
lea rdx, vtable.std::ios_base.0
mov qword [rsp + 0x138], rdx
lea rcx, [rsp + 0x138]
call fcn.1400681a8
mov rax, rsi
mov rcx, qword [rsp + 0x318]
xor rcx, rsp
call fcn.140086bc0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret