Function at 0x180007230
Capabilities:
Read file via mapping
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x100], 0
lea rax, [rsp + 0x108]
mov rdi, rax
xor eax, eax
mov ecx, 0x178
rep stosb byte [rdi], al
mov dword [rsp + 0x48], 0
call fcn.18000a810
movzx eax, al
test eax, eax
je 0x1800075f4
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x280]
call fcn.180024170
call fcn.180009a60
mov dword [rsp + 0x288], eax
mov eax, dword [rsp + 0x3c0]
mov dword [rsp + 0x268], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x258]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8d, dword [rsp + 0x288]
mov rdx, qword [rsp + 0x3a0]
mov cl, 1
call fcn.180008fd0
movzx eax, al
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x1800075ef
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x80], 0
call fcn.180007a30
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x3a0]
call fcn.180007950
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.180024170
mov r8d, 0x14
xor edx, edx
lea rcx, [rsp + 0xe8]
call fcn.180024170
mov eax, dword [rsp + 0x3b0]
mov dword [rsp + 0x284], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.18000cff0
mov dword [rsp + 0x28c], eax
mov eax, dword [rsp + 0x3c0]
mov dword [rsp + 0x290], eax
mov eax, dword [rsp + 0x3b0]
cmp rax, 0xf0
jbe 0x1800074c7
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.180024170
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x3b0]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, 4
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x3b0]
mov dword [rsp + 0xa8], eax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x180007492
mov eax, dword [rsp + 0x3b0]
mov r8d, eax
mov rdx, qword [rsp + 0x3a8]
mov rcx, qword [rsp + 0xb0]
call fcn.180023200
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0xd0], 0x18
mov eax, dword [rsp + 0x3b0]
mov dword [rsp + 0xd8], eax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x68], rax
jmp 0x1800074f8
mov eax, dword [rsp + 0x3b0]
mov r8d, eax
mov rdx, qword [rsp + 0x3a8]
lea rcx, [rsp + 0x294]
call fcn.180023200
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x58], 0x104
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x280]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x80]
call qword [0x18004cab8]
test eax, eax
jne 0x18000755f
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.SendIpcMessage:_NtConnectPort_complete_n
call fcn.180007b70
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rsp + 0x98], 0
je 0x180007592
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x280], 0
je 0x1800075a6
mov dword [rsp + 0x60], 1
jmp 0x1800075ae
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x1800075e3
cmp dword [rsp + 0x3c0], 0
je 0x1800075e3
mov r8d, dword [rsp + 0x280]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x50], rax
jmp 0x1800075ef
lea rcx, str.SendIpcMessage:__LpcPortThread_did_not_fill_in_the_process_ID_n
call fcn.180007b70
jmp 0x18000784f
xor r9d, r9d
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x3a0]
call fcn.18000a510
movzx eax, al
test eax, eax
je 0x18000784f
mov eax, dword [rsp + 0x3c0]
mov dword [rsp + 0x268], eax
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x258]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x244]
mov rdx, qword [rsp + 0x3a0]
mov cl, 1
call fcn.180008fd0
movzx eax, al
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x180007833
mov r8d, dword [rsp + 0x108]
xor edx, edx
mov ecx, 0x100040
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180007833
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x118]
mov r8, rax
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x180007833
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.18000cff0
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x3b0]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180007815
cmp dword [rsp + 0x40], 4
jne 0x180007815
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x244]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180007815
cmp dword [rsp + 0x40], 4
jne 0x180007815
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180007815
cmp dword [rsp + 0x40], 4
jne 0x180007815
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x3c0]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180007815
cmp dword [rsp + 0x40], 4
jne 0x180007815
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x3b0]
mov rdx, qword [rsp + 0x3a8]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180007815
mov eax, dword [rsp + 0x3b0]
cmp dword [rsp + 0x40], eax
jne 0x180007815
mov dword [rsp + 0x5c], 1
jmp 0x18000781d
mov dword [rsp + 0x5c], 0
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x50], 0
je 0x18000790b
cmp dword [rsp + 0x44], 0
je 0x1800078fe
cmp dword [rsp + 0x3c0], 0
je 0x1800078fe
mov ecx, 5
call fcn.1800190a0
mov r9d, dword [rsp + 0x3d0]
mov r8d, eax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x270]
call fcn.1800098f0
movzx eax, al
test eax, eax
je 0x1800078f6
mov r9d, dword [rsp + 0x3d0]
mov r8d, dword [rsp + 0x3c8]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x278]
call fcn.1800098f0
movzx eax, al
test eax, eax
je 0x1800078ec
mov eax, dword [rsp + 0x3c0]
mov r8d, eax
mov rdx, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x3b8]
call fcn.180023200
jmp 0x1800078f4
mov dword [rsp + 0x44], 0
jmp 0x1800078fe
mov dword [rsp + 0x44], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180007917
lea rcx, str._SendIpcMessage:_ProcessID_was_not_filled_in_by_server_n
call fcn.180007b70
cmp dword [rsp + 0x48], 0
je 0x18000792b
lea rcx, [rsp + 0x258]
call fcn.1800097e0
mov ecx, dword [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x44]
add rsp, 0x390
pop rdi
ret