Function at 0x1400208c4
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov r15, r8
mov rdi, rdx
mov qword [rbp - 0x70], rdx
mov r14, rcx
xor r13d, r13d
mov r12d, r13d
test r8, r8
jne 0x14002092e
cmp dword [rcx + 0x7c4], 2
jne 0x14002091a
mov r15d, r13d
jmp 0x14002092e
add rcx, 0x4d8
xor r8d, r8d
xor edx, edx
call fcn.14003c6d0
mov r15, rax
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp + 0x4f0]
call fcn.14012d4b0
test r15, r15
je 0x14002094d
cmp word [r15], r13w
jne 0x140020966
mov rax, qword [0x14022ab58]
cmp dword [rax + 0x11b38], r13d
jne 0x140020966
or r12d, 0xffffffff
jmp 0x140020fa4
test rdi, rdi
je 0x140020975
mov rbx, rdi
mov qword [rsp + 0x50], rbx
jmp 0x140020991
xor r9d, r9d
lea r8, str.VirtualConsoleClass
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rbx, rax
mov qword [rsp + 0x50], rax
call fcn.140113da0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov rsi, r13
mov qword [rbp - 0x80], r13
test rbx, rbx
je 0x1400209c5
test rdi, rdi
je 0x140020ac6
lea r8, [rsp + 0x50]
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140007624
mov rdi, qword [rsp + 0x78]
xor ebx, ebx
mov eax, ebx
mov qword [rbp - 0x78], rbx
mov r13, qword [rsp + 0x70]
sub rdi, r13
sar rdi, 3
test rdi, rdi
jle 0x140020f96
mov rsi, qword [r13 + rax*8]
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x58], ebx
lea rdx, [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
jne 0x140020a0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbp - 0x70], rbx
jne 0x140020cf3
mov r9d, dword [rsp + 0x58]
test r9d, r9d
je 0x140020cf3
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x30], ebx
mov qword [rbp - 0x38], rbx
or dword [rbp - 0x2c], 0xffffffff
mov word [rbp - 0x28], bx
mov word [rbp + 0xdc], bx
mov dword [rbp + 0xd8], ebx
mov dword [rsp + 0x20], ebx
lea r8, str.ConEmuGuiInfoMapping._u
mov edx, 0x80
lea rcx, [rbp - 0x28]
call fcn.1401140d0
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140020a9b
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140020a81
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbp - 0x38], rbx
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140020a8c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x30], ebx
mov qword [rbp - 0x38], rbx
or dword [rbp - 0x2c], 0xffffffff
mov dword [rbp + 0xd8], ebx
mov word [rbp + 0xdc], bx
cmp word [rbp - 0x28], bx
jne 0x140020b20
lea rdx, str.Internal_error._Mapping_file_name_was_not_specified.
lea rcx, [rbp + 0xdc]
call fcn.14000ca24
jmp 0x140020bcf
mov rdi, qword [rsp + 0x78]
cmp rdi, rsi
je 0x140020ade
mov qword [rdi], rbx
add rdi, 8
mov qword [rsp + 0x78], rdi
jmp 0x140020af9
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140007624
mov rsi, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x78]
xor r9d, r9d
lea r8, str.VirtualConsoleClass
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140020acb
jmp 0x1400209ca
mov dword [rbp - 0x2c], 0x13c6
mov dword [rbp - 0x30], ebx
lea r8, [rbp - 0x28]
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rbp - 0x40], rax
test rax, rax
jne 0x140020b58
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.open
lea r8, str.Cant__s_console_data_file_mapping._ErrCode0x_08X_n_s
jmp 0x140020b9e
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [rbp - 0x38], rax
test rax, rax
jne 0x140020bc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ReadWrite
lea r9, [0x14017f448]
cmp dword [rbp - 0x30], ebx
cmovne r9, rcx
lea r8, str.Cant_map_console_info___s_._ErrCode0x_08X_n_s
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov dword [rbp + 0xd8], eax
mov edx, 0x208
lea rcx, [rbp + 0xdc]
call fcn.1401140d0
mov rbx, qword [rbp - 0x38]
test rbx, rbx
jne 0x140020c9a
mov r9d, esi
mov r8d, dword [rsp + 0x58]
lea rdx, str.GuiTestMapping_failed_for_PID_u_HWNDx_08X:
lea rcx, [rbp + 0x4f0]
call fcn.14000c838
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp + 0xdc]
lea rdx, [rbp + 0x4f0]
lea rcx, [rbp - 0x68]
call fcn.140114ba8
nop
lea rcx, [rbp - 0x68]
call fcn.140054ee8
test r14, r14
je 0x140020c55
mov rcx, qword [r14 + 0x3e70]
test rcx, rcx
je 0x140020c55
mov edx, 1
mov byte [rsp + 0x20], dl
xor r9d, r9d
mov r8b, dl
mov rdx, rax
call fcn.14011c0a8
nop
lea rcx, [rbp - 0x68]
call fcn.140114ca4
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140020f82
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140020c86
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbp - 0x38], rbx
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140020f82
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140020f82
lea rsi, [r14 + 0x1308]
cmp dword [rbx + 4], 0xa7
jne 0x140020d14
lea rcx, [rbx + 0x1376]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140020d14
mov rcx, qword [rbp - 0x40]
xor ebx, ebx
test rcx, rcx
je 0x140020cee
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140020ce3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbp - 0x38], rbx
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140020cee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rbx
test r15, r15
je 0x140020db0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x140020db5
mov r9d, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x58]
lea rdx, str.Skipped_due_to_different_AppID__PID_u_HWNDx_08X:__
lea rcx, [rbp + 0x4f0]
call fcn.14000c838
lea r8, [rbx + 0x1376]
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea rax, [0x140179218]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, str.___Our:__
lea rdx, [rbp + 0x4f0]
lea rcx, [rbp - 0x58]
call fcn.140114ba8
nop
lea rcx, [rbp - 0x58]
call fcn.140054ee8
test r14, r14
je 0x140020da7
mov rcx, qword [r14 + 0x3e70]
test rcx, rcx
je 0x140020da7
lea edx, [rbx + 1]
mov byte [rsp + 0x20], dl
xor r9d, r9d
mov r8b, dl
mov rdx, rax
call fcn.14011c0a8
nop
lea rcx, [rbp - 0x58]
jmp 0x140020c59
mov eax, 1
lea eax, [rax*2 + 0x45a]
movsxd rdx, eax
mov ecx, 0xd
call fcn.140119328
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140020f69
mov edx, 1
mov rcx, qword [0x14022ab50]
call fcn.14007f158
mov ecx, eax
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x3c], cl
mov rax, qword [0x14022a9e0]
cmp byte [rax + 0x3ea0], bl
je 0x140020e0d
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x38], 6
mov r8, qword [rsp + 0x50]
cmp dword [r8 + 0x38], ebx
jne 0x140020e4b
mov rax, qword [0x14022ab58]
mov ecx, dword [rax + 0x11b38]
mov dword [r8 + 0x38], ecx
mov r8, qword [rsp + 0x50]
cmp dword [r8 + 0x38], ebx
jne 0x140020e4b
cmp dword [r14 + 0x7c4], 2
jne 0x140020e4b
mov dword [r8 + 0x38], 9
mov r8, qword [rsp + 0x50]
lea rdx, [r14 + 0x10fe]
test rdx, rdx
je 0x140020e69
lea rax, [0x1401759d0]
cmp word [rdx], 0x3a
cmovne rax, rdx
mov rdx, rax
lea rcx, [r8 + 0x246]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rdx, [r14 + 0xcea]
mov rcx, qword [rsp + 0x50]
add rcx, 0x3e
call fcn.1400047d8
lea rdx, [0x1401759d0]
test r15, r15
cmovne rdx, r15
mov rcx, qword [rsp + 0x50]
add rcx, 0x30
call fcn.14011b110
test r15, r15
je 0x140020f21
cmp word [r15], 0x7b
jne 0x140020f21
cmp byte [r14 + 0x1358], bl
jne 0x140020f21
cmp byte [r14 + 0x7c8], bl
jne 0x140020f21
lea rcx, [rbp - 0x40]
call fcn.14011ec0c
nop
lea r8, [rbp - 0x40]
mov rdx, r15
mov rcx, r14
call fcn.140013fb8
test rax, rax
je 0x140020ef1
mov rcx, rax
call fcn.140113e18
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x140020f18
cmp word [rdx], bx
je 0x140020f18
mov rcx, qword [rsp + 0x50]
add rcx, 0x246
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
nop
lea rcx, [rbp - 0x40]
call fcn.14011ec40
mov ecx, dword [rsp + 0x58]
test ecx, ecx
je 0x140020f2f
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, rsi
call fcn.1401191a4
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140020f58
cmp byte [rax + 0x30], bl
mov ecx, 1
cmovne r12d, ecx
cmp qword [rsp + 0x50], rbx
je 0x140020f6e
lea rcx, [rsp + 0x50]
call fcn.140119184
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140020f7d
lea rcx, [rsp + 0x68]
call fcn.140119184
test r12d, r12d
jne 0x140020f96
mov rax, qword [rbp - 0x78]
inc rax
mov qword [rbp - 0x78], rax
cmp rax, rdi
jl 0x1400209e7
test r13, r13
je 0x140020fa4
mov rcx, r13
call fcn.140113e18
nop
mov eax, r12d
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0x728]
add rsp, 0x6d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret