Function at 0x1400e64c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov eax, Ordinal_8794
call fcn.1400f3f80
sub rsp, rax
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov rax, qword [0x1403542a0]
xor rax, rsp
mov qword [rsp + 0x2240], rax
mov dword [rsp + 0x98], 0
mov rax, qword [rsp + 0x2260]
add rax, 0x50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov qword [rsp + 0x1e0], 0
mov qword [rsp + reloc.mfc110u.dll_Ordinal_488], 0
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x1d0]
call fcn.140004620
nop
xor eax, eax
cmp eax, 1
je 0x1400e68e8
mov r8d, 1
mov edx, 3
lea rcx, [rsp + 0xd0]
call fcn.1400034f0
mov qword [rsp + 0xa8], rax
mov r8d, 0x2002
xor edx, edx
lea rcx, [rsp + 0x230]
call sub.MSVCR110.dll_memset
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 0x2000
lea rdx, [rsp + 0x230]
mov rax, qword [rsp + 0x2260]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x34], 0
jne 0x1400e65cb
cmp dword [rsp + 0x44], 0xea
je 0x1400e65cb
jmp 0x1400e6643
mov eax, 2
imul rax, rax, 0x1000
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0x2002
jae 0x1400e65e9
jmp 0x1400e65ee
call fcn.1400f3e98
xor eax, eax
mov rcx, qword [rsp + 0x78]
mov word [rsp + rcx + 0x230], ax
lea rax, [rsp + 0xd0]
test rax, rax
je 0x1400e661d
lea rax, [rsp + 0xd0]
add rax, 0x10
mov qword [rsp + 0x70], rax
jmp 0x1400e6626
mov qword [rsp + 0x70], 0
lea rdx, [rsp + 0x230]
mov rcx, qword [rsp + 0x70]
call fcn.14000f7c0
cmp dword [rsp + 0x34], 0
je 0x1400e6567
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0xd0]
call fcn.140005c20
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x18], 8
jb 0x1400e6695
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
jmp 0x1400e669f
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov r9, qword [rsp + 0x48]
lea r8, str.RequestHandler_received__s_r_n
mov edx, 4
lea rcx, str.IPCPipe
call fcn.1400e3ba0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1f0]
call fcn.140004620
cmp dword [rsp + 0x50], 0
je 0x1400e66e6
mov rax, qword [rsp + 0x2260]
movzx eax, byte [rax + 0x30]
test eax, eax
je 0x1400e670c
lea rax, [rsp + 0x168]
mov rcx, rax
call fcn.1400038d0
lea rax, [rsp + 0x168]
mov rcx, rax
call qword [sym.imp.MSVCP110.dll_public_virtual:_void___cdecl_std::basic_ios_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::destructor_void____ptr64]
jmp 0x1400e68e8
mov rax, qword [rsp + 0x2260]
add rax, 0x50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0xd0]
call fcn.140005c20
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
lea r8, [rsp + 0x1d0]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x2260]
call fcn.1400e5670
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x38], al
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x210]
call fcn.140004620
mov rax, qword [rsp + 0x2260]
add rax, 0x50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rsp + reloc.mfc110u.dll_Ordinal_488], 8
jb 0x1400e67c6
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x58], rax
jmp 0x1400e67d3
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x58], rax
mov r9, qword [rsp + 0x58]
lea r8, str.RequestHandler_reply__s_r_n
mov edx, 4
lea rcx, str.IPCPipe
call fcn.1400e3ba0
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
inc rax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x40], eax
cmp qword [rsp + reloc.mfc110u.dll_Ordinal_488], 8
jb 0x1400e6843
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x68], rax
jmp 0x1400e6850
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x2260]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1400e689f
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x40], eax
jne 0x1400e689f
mov rax, qword [rsp + 0x2260]
movzx eax, byte [rax + 0x30]
test eax, eax
je 0x1400e68c2
lea rax, [rsp + 0x168]
mov rcx, rax
call fcn.1400038d0
lea rax, [rsp + 0x168]
mov rcx, rax
call qword [sym.imp.MSVCP110.dll_public_virtual:_void___cdecl_std::basic_ios_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::destructor_void____ptr64]
jmp 0x1400e68e8
lea rax, [rsp + 0x168]
mov rcx, rax
call fcn.1400038d0
lea rax, [rsp + 0x168]
mov rcx, rax
call qword [sym.imp.MSVCP110.dll_public_virtual:_void___cdecl_std::basic_ios_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::destructor_void____ptr64]
jmp 0x1400e653c
mov rax, qword [rsp + 0x2260]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rax, qword [rsp + 0x2260]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rax, qword [rsp + 0x2260]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1d0]
call fcn.140004620
nop
jmp 0x1400e6934
mov rax, qword [rsp + 0x2260]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0x2260]
mov byte [rax + 0x31], 1
mov rax, qword [rsp + 0x2260]
add rax, 0x50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x2240]
xor rcx, rsp
call fcn.1400f3d50
add rsp, 0x2258
ret