Function at 0x1400c2320
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x450
mov rdi, qword [0x140207460]
mov rax, qword [rdi]
mov qword [rsp + 0x448], rax
xor eax, eax
movsxd rsi, ecx
mov ecx, esi
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x1400c2240
mov rax, qword [rsp + 0x448]
sub rax, qword [rdi]
jne 0x1400c2313
add rsp, 0x450
pop rbx
pop rsi
pop rdi
ret
lea rax, [rsp + 0x3c]
mov r9d, 0x3fe
lea r8, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov edx, 1
call sub.ntdll.dll_NtQueryObject
test eax, eax
js 0x1400c221a
cmp dword [rsp + 0x3c], 0xf
jbe 0x1400c221a
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400c221a
movzx eax, word [rsp + 0x40]
test ax, ax
je 0x1400c221a
shr ax, 1
xor edx, edx
mov rcx, rbx
movzx eax, ax
mov word [rbx + rax*2], dx
lea rdx, str.msys_
call sub.msvcrt.dll_wcsstr
test rax, rax
je 0x1400c22d0
lea rdx, str._pty
mov rcx, rbx
call sub.msvcrt.dll_wcsstr
test rax, rax
je 0x1400c221a
cmp esi, 2
je 0x1400c22f0
lea rax, [0x140242f88]
or dword [rax + rsi*4], 4
jmp 0x1400c221a
lea rdx, str.cygwin_
mov rcx, rbx
call sub.msvcrt.dll_wcsstr
test rax, rax
jne 0x1400c22a1
jmp 0x1400c221a
mov ecx, 2
call qword [fcn.1401bee20]
mov r9d, 0x200
mov r8d, 4
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_setvbuf
jmp 0x1400c22be
call fcn.1401be670
nop
nop dword [rax]
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [0x140207460]
mov qword [rsp + 0x60], r8
mov rbx, rcx
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x58], rdx
mov rdx, qword [rax]
mov qword [rsp + 0x28], rdx
xor edx, edx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, edi
mov rsi, rax
call fcn.1400b95f0
mov rdx, qword [rsp + 0x20]
mov rcx, rbx
mov dword [rsi], eax
call fcn.1400a0930
nop
nop dword [rax]
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, qword [0x140207460]
lea rbp, [0x14023ef40]
mov r8d, 0x2001
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
xor eax, eax
mov r9d, edx
mov rsi, rdx
mov rdx, rcx
mov rcx, rbp
call fcn.1400bb020
movsxd rbx, eax
test ebx, ebx
js 0x1400c2408
mov qword [rsp + 0x20], 0
mov rcx, qword [0x140242f80]
mov r8d, ebx
mov rdx, rbp
lea r9, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
cmp rbx, rsi
je 0x1400c23ee
mov dword [0x140242f70], 1
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
jne 0x1400c243a
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rbx, str._invalid_
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x140242f80]
lea r9, [rsp + 0x34]
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1400c23ee
call fcn.1401be670
nop
push r15
mov eax, 0x1128
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401be370
sub rsp, rax
mov rcx, qword [0x140207460]
xor esi, esi
xor r15d, r15d
xor ebx, ebx
xor edi, edi
mov r14d, 0x1000
mov rax, qword [rcx]
mov qword [rsp + 0x1118], rax
xor eax, eax
lea rax, [rsp + 0x44]
lea rbp, [rsp + 0x110]
mov qword [rsp + 0x38], rax
mov r8d, r14d
mov r9, qword [rsp + 0x38]
mov qword [rsp + 0x20], 0
lea rdx, [rbp + rdi]
sub r8d, ebx
mov rcx, qword [0x140242f60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400c2528
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
je 0x1400c24d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400c248e
mov eax, dword [0x140242f70]
mov dword [rsp + 0x48], 0
test eax, eax
jne 0x1400c2688
mov rcx, qword [0x140242f60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140207460]
mov rax, qword [rsp + 0x1118]
sub rax, qword [rcx]
jne 0x1400c2bea
xor eax, eax
add rsp, 0x1128
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add dword [rsp + 0x44], ebx
je 0x1400c2678
xor ebx, ebx
xor ecx, ecx
xor r11d, r11d
mov r10d, 0x5b
jmp 0x1400c2561
test esi, esi
jne 0x1400c2555
cmp edx, 0x1b
je 0x1400c2718
mov eax, dword [rsp + 0x44]
add rbx, 1
cmp ebx, eax
jae 0x1400c25b0
lea edi, [rbx + 1]
movzx edx, byte [rbp + rbx]
mov r12d, ebx
mov r13d, edi
cmp esi, 0x1b
je 0x1400c2600
cmp esi, 0x5b
jne 0x1400c2548
lea r8d, [rdx - 0x30]
cmp r8d, 9
ja 0x1400c2610
movsxd rax, r15d
add rbx, 1
mov edx, dword [rsp + rax*4 + 0x70]
lea edx, [rdx + rdx*4]
lea edx, [r8 + rdx*2]
mov dword [rsp + rax*4 + 0x70], edx
mov eax, dword [rsp + 0x44]
cmp ebx, eax
jb 0x1400c2561
nop dword [rax]
test esi, esi
jne 0x1400c2678
cmp ecx, edi
jge 0x1400c2678
movsxd rdx, r12d
movzx edx, byte [rsp + rdx + 0x110]
test dl, dl
js 0x1400c28c8
mov edx, r13d
mov r12d, r13d
sub edx, ecx
add rcx, rbp
movsxd rdx, edx
call 0x1400c2380
mov eax, dword [rsp + 0x44]
mov ebx, eax
sub ebx, edi
cmp edi, eax
jb 0x1400c2930
xor esi, esi
movsxd rdi, ebx
jmp 0x1400c248e
cmp edx, 0x5b
mov esi, r10d
cmovne esi, r11d
jmp 0x1400c2555
cmp edx, 0x3b
jne 0x1400c2630
add r15d, 1
xor eax, eax
cmp r15d, 0x10
cmovge esi, eax
jmp 0x1400c2555
cmp dl, 0x4b
je 0x1400c2950
cmp dl, 0x6d
jne 0x1400c284d
test r15d, r15d
js 0x1400c27dd
movsxd rdx, r15d
lea rax, [rsp + 0x70]
lea rcx, [0x1401e1b68]
lea r8, [rsp + rdx*4 + 0x74]
nop
cmp dword [rax], 0x31
ja case.0x1400c2672.3
mov edx, dword [rax]
movsxd rdx, dword [rcx + rdx*4]
add rdx, rcx
jmp rdx
xor ebx, ebx
xor edi, edi
jmp 0x1400c248e
movzx eax, byte [0x1401c4578]
test al, 1
je 0x1400c2860
mov rax, qword [0x1401c4570]
test rax, rax
je 0x1400c2758
xor edx, edx
mov rcx, qword [0x140242f80]
mov dword [rsp + 0xb0], 0x54
lea r8, [rsp + 0xb0]
call rax
test eax, eax
je 0x1400c27a8
mov eax, dword [rsp + 0xbc]
mov dword [rsp + 0x48], eax
test al, 4
jne 0x1400c24e6
lea rbx, str._nWarning:_Your_console_font_probably_doesnt_support_Unicode._If_you_experience_strange_characters_in_the_output__consider_switching_to_a_TrueType_font_such_as_Consolas__n
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x140242f80]
lea r9, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1400c24e6
cmp ecx, ebx
jl 0x1400c28a8
pxor xmm0, xmm0
xor r15d, r15d
mov esi, 0x1b
movsxd rcx, r12d
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
jmp 0x1400c2555
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x28
mov rax, qword [0x1401c4570]
test rax, rax
jne 0x1400c26a7
lea rax, [rsp + 0x50]
xor r8d, r8d
mov r9d, 0x20019
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
lea rdx, str.Console
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400c29c3
nop dword [rax + rax]
mov eax, dword [rsp + 0x48]
jmp 0x1400c26d8
movzx edx, word [0x140242f7a]
mov dword [0x140242f74], 0
mov word [0x140242f78], dx
nop dword [rax]
add rax, 4
cmp r8, rax
jne 0x1400c2660
mov ecx, dword [0x140242f74]
movzx edx, word [0x140242f78]
test ecx, ecx
je 0x1400c2837
mov ecx, edx
and ecx, 0xffffff88
mov eax, ecx
or eax, 0x40
test dl, 4
cmovne ecx, eax
mov eax, ecx
or eax, 0x20
test dl, 2
cmovne ecx, eax
mov eax, edx
and eax, 1
shl eax, 4
or eax, ecx
mov ecx, eax
or ecx, 4
test dl, 0x40
cmovne eax, ecx
mov ecx, eax
or ecx, 2
test dl, 0x20
cmovne eax, ecx
mov ecx, eax
or ecx, 1
and edx, 0x10
cmovne eax, ecx
movzx edx, ax
mov rcx, qword [0x140242f80]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
xor r11d, r11d
mov r10d, 0x5b
movsxd rcx, edi
xor esi, esi
jmp 0x1400c2555
or eax, 1
xor edx, edx
mov rcx, qword [0x1401c4560]
mov r8d, 0x800
mov byte [0x1401c4578], al
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test rax, rax
je 0x1400c2697
mov rdx, qword [str.GetCurrentConsoleFontEx]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401c4570], rax
jmp 0x1400c269e
mov edx, ebx
sub edx, ecx
add rcx, rbp
movsxd rdx, edx
call 0x1400c2380
mov r10d, 0x5b
xor r11d, r11d
jmp 0x1400c2720
cmp dl, 0xbf
ja 0x1400c28f0
lea edx, [r12 - 1]
cmp ecx, r12d
jge 0x1400c2908
movsxd r8, edx
cmp byte [rsp + r8 + 0x110], 0xdf
jbe 0x1400c2908
mov r12d, edx
nop dword [rax + rax]
mov edi, r12d
cmp ecx, r12d
jge 0x1400c25ea
mov r13d, r12d
jmp 0x1400c25d3
cmp ecx, edx
jge 0x1400c25d3
sub r12d, 2
movsxd rdx, r12d
cmp byte [rsp + rdx + 0x110], 0xef
jbe 0x1400c25d3
jmp 0x1400c28f0
movsxd rdx, r12d
mov r8d, ebx
mov rcx, rbp
add rdx, rbp
call fcn.1401bf138
jmp 0x1400c25f6
mov rcx, qword [0x140242f80]
test rcx, rcx
je 0x1400c284d
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx r8d, word [rsp + 0x50]
movsx eax, word [rsp + 0x54]
lea rdx, [rsp + 0x4c]
mov qword [rsp + 0x20], rdx
mov r9d, dword [rsp + 0x54]
mov edx, 0x20
mov rcx, qword [0x140242f80]
sub r8d, eax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
xor r11d, r11d
mov r10d, 0x5b
jmp 0x1400c284d
or word [0x140242f78], 0x80
jmp case.0x1400c2672.3
and word [0x140242f78], 0xfff7
jmp case.0x1400c2672.3
lea rax, [rsp + 0x4c]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, str.FontFamily
mov dword [rsp + 0x4c], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400c27a8
movzx edx, word [0x140242f78]
movzx r9d, word [0x140242f7a]
and edx, 0xffffff8f
and r9d, 0x70
or edx, r9d
mov word [0x140242f78], dx
jmp case.0x1400c2672.3
or word [0x140242f78], 8
jmp case.0x1400c2672.3
or word [0x140242f78], 0x70
jmp case.0x1400c2672.3
movzx edx, word [0x140242f78]
and edx, 0xffffff8f
or edx, 0x30
mov word [0x140242f78], dx
jmp case.0x1400c2672.3
movzx edx, word [0x140242f78]
and edx, 0xffffff8f
or edx, 0x50
mov word [0x140242f78], dx
jmp case.0x1400c2672.3
movzx edx, word [0x140242f78]
and edx, 0xffffff8f
or edx, 0x10
mov word [0x140242f78], dx
jmp case.0x1400c2672.3
movzx edx, word [0x140242f78]
and edx, 0xffffff8f
or edx, 0x60
mov word [0x140242f78], dx
jmp case.0x1400c2672.3
movzx edx, word [0x140242f78]
and edx, 0xffffff8f
or edx, 0x20
mov word [0x140242f78], dx
jmp case.0x1400c2672.3
movzx edx, word [0x140242f78]
and edx, 0xffffff8f
or edx, 0x40
mov word [0x140242f78], dx
jmp case.0x1400c2672.3
and word [0x140242f78], 0xff8f
jmp case.0x1400c2672.3
movzx edx, word [0x140242f78]
movzx r9d, word [0x140242f7a]
and edx, 0xfffffff8
and r9d, 7
or edx, r9d
mov word [0x140242f78], dx
jmp case.0x1400c2672.3
or word [0x140242f78], 7
jmp case.0x1400c2672.3
movzx edx, word [0x140242f78]
and edx, 0xfffffff8
or edx, 3
mov word [0x140242f78], dx
jmp case.0x1400c2672.3
movzx edx, word [0x140242f78]
and edx, 0xfffffff8
or edx, 5
mov word [0x140242f78], dx
jmp case.0x1400c2672.3
movzx edx, word [0x140242f78]
and edx, 0xfffffff8
or edx, 1
mov word [0x140242f78], dx
jmp case.0x1400c2672.3
movzx edx, word [0x140242f78]
and edx, 0xfffffff8
or edx, 6
mov word [0x140242f78], dx
jmp case.0x1400c2672.3
movzx edx, word [0x140242f78]
and edx, 0xfffffff8
or edx, 2
mov word [0x140242f78], dx
jmp case.0x1400c2672.3
movzx edx, word [0x140242f78]
and edx, 0xfffffff8
or edx, 4
mov word [0x140242f78], dx
jmp case.0x1400c2672.3
and word [0x140242f78], 0xfff8
jmp case.0x1400c2672.3
mov dword [0x140242f74], 0
jmp case.0x1400c2672.3
and word [0x140242f78], 0xff7f
jmp case.0x1400c2672.3
mov dword [0x140242f74], 1
jmp case.0x1400c2672.3
call fcn.1401be670
nop
push rbx
sub rsp, 0x30
mov rbx, qword [0x140207460]
mov edx, 0x1f
lea r8, str..pipewinansi_lu
mov qword [rsp + 0x58], r9
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r9
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
xor eax, eax
call qword [sym.imp.msvcrt.dll__vsnwprintf]
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbx]
jne 0x1400c2c37
add rsp, 0x30
pop rbx
ret
call fcn.1401be670
nop
nop dword [rax]
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbp, qword [0x140207460]
mov rax, qword [rbp]
mov qword [rsp + 0x48], rax
xor eax, eax
movsxd rbx, ecx
mov rdi, rdx
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x40]
mov rdx, rsi
mov dword [rsp + 0x28], 1
mov rcx, rax
mov r8, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400c2d33
mov rcx, rdi
mov r12, qword [rsp + 0x40]
mov edx, 0x8000
call qword [sym.imp.msvcrt.dll__open_osfhandle]
cmp qword [0x140242f80], rsi
mov edi, eax
je 0x1400c2d00
mov ecx, edi
mov edx, ebx
call sub.msvcrt.dll__dup2
mov ecx, edi
call sub.msvcrt.dll__close
cmp ebx, 2
je 0x1400c2d10
lea rax, [0x140242f88]
or dword [rax + rbx*4], 2
mov rax, qword [rsp + 0x48]
sub rax, qword [rbp]
jne 0x1400c2d41
mov rax, r12
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov qword [0x140242f80], r12
jmp 0x1400c2cc5
mov ecx, 2
call qword [fcn.1401bee20]
mov r9d, 0x200
mov r8d, 4
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_setvbuf
jmp 0x1400c2cda
mov edx, esi
lea rcx, str.DuplicateHandle__li__failed
call 0x1400c2320
call fcn.1401be670
nop
nop word [rax + rax]
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov rdi, qword [0x140207460]
mov ecx, 1
mov rax, qword [rdi]
mov qword [rsp + 0x98], rax
xor eax, eax
call fcn.1400c20f0
mov ecx, 2
mov esi, eax
call fcn.1400c20f0
xor ecx, ecx
mov ebx, eax
call fcn.1400c20f0
mov eax, esi
or eax, ebx
je 0x1400c3000
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rbp, [rsp + 0x50]
mov edx, 0x1f
lea r8, str..pipewinansi_lu
mov r9d, eax
mov rcx, rbp
call 0x1400c2bf0
test eax, eax
js 0x1400c3038
mov qword [rsp + 0x38], 0
xor r8d, r8d
mov edx, 2
mov r9d, 1
mov dword [rsp + 0x30], 0
mov rcx, rbp
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [0x140242f58], rax
cmp rax, 0xffffffffffffffff
je 0x1400c3068
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rbp
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140242f60], rax
cmp rax, 0xffffffffffffffff
je 0x1400c305c
mov qword [rsp + 0x28], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
lea r8, [0x1400c2440]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140242f68], rax
test rax, rax
je 0x1400c3050
lea rcx, [0x1400c2090]
call fcn.140001410
test eax, eax
jne 0x1400c3044
test esi, esi
jne 0x1400c2f40
test ebx, ebx
jne 0x1400c2f9f
mov rax, qword [rsp + 0x98]
sub rax, qword [rdi]
jne 0x1400c3033
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rsi, qword [0x140242f58]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x48]
mov dword [rsp + 0x28], 1
mov rcx, rax
mov r8, rax
mov rdx, rsi
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400c3074
mov rdx, qword [rsp + 0x48]
mov ecx, 1
call 0x1400c2c40
mov qword [0x140242f50], rax
test ebx, ebx
je 0x1400c2f1e
mov rbx, qword [0x140242f58]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x48]
mov dword [rsp + 0x28], 1
mov rcx, rax
mov r8, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400c3082
mov rdx, qword [rsp + 0x48]
mov ecx, 2
call 0x1400c2c40
mov qword [0x140242f48], rax
jmp 0x1400c2f1e
xor ecx, ecx
call 0x1400c21e0
mov ecx, 1
call 0x1400c21e0
mov rax, qword [rsp + 0x98]
sub rax, qword [rdi]
jne 0x1400c3033
mov ecx, 2
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
jmp 0x1400c21e0
call fcn.1401be670
lea rcx, str.Could_not_initialize_winansi_pipe_name
call fcn.1400a08a0
lea rcx, str.atexit_winansi_exit__failed
call fcn.1400a0930
lea rcx, str.CreateThread_console_thread__failed
call 0x1400c2320
lea rcx, str.CreateFile_for_named_pipe_failed
call 0x1400c2320
lea rcx, str.CreateNamedPipe_failed
call 0x1400c2320
mov edx, esi
lea rcx, str.DuplicateHandle__li__failed
call 0x1400c2320
mov edx, ebx
lea rcx, str.DuplicateHandle__li__failed
call 0x1400c2320
nop
nop word cs:[rax + rax]
nop dword [rax]