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

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x2bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x54], 0
mov dword [ebp - 0x15c], 0
push 0x144
push 0
lea eax, [ebp - 0x158]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov dword [ebp + 0x4c], 0
call fcn.00469c30
movzx ecx, al
test ecx, ecx
je 0x467554
push 0x104
push 0
lea edx, [ebp - 0x260]
push edx
call sub.MSVCR110.dll_memset
add esp, 0xc
call fcn.004691c0
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp - 0x20], eax
push 0
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov edx, dword [ebp - 0x258]
push edx
mov eax, dword [ebp + 0x64]
push eax
push 1
call fcn.004689d0
add esp, 0x18
movzx ecx, al
mov dword [ebp + 0x4c], ecx
cmp dword [ebp + 0x4c], 0
je 0x46754f
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x34], 0
call fcn.00467860
lea edx, [ebp + 8]
push edx
mov eax, dword [ebp + 0x64]
push eax
call fcn.004677c0
add esp, 8
push 0x18
push 0
lea ecx, [ebp + 0x18]
push ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
push 0x10
push 0
lea edx, [ebp - 0x14]
push edx
call sub.MSVCR110.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0x25c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0046f230
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp + 0x74]
mov dword [ebp - 0x250], ecx
cmp dword [ebp + 0x6c], 0xf0
jbe 0x467476
push 0xc
push 0
lea edx, [ebp - 4]
push edx
call sub.MSVCR110.dll_memset
add esp, 0xc
mov dword [ebp + 0x18], 0x18
push 0
mov eax, dword [ebp + 0x6c]
push eax
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp + 0x6c]
mov dword [ebp + 0x24], ecx
push 0
push 0
push 0
push 0xf001f
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 0x28], eax
cmp dword [ebp + 0x28], 0
je 0x46745b
mov eax, dword [ebp + 0x6c]
push eax
mov ecx, dword [ebp + 0x68]
push ecx
mov edx, dword [ebp + 0x28]
push edx
call sub.MSVCR110.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp + 0x28], 0
mov dword [ebp - 4], 0xc
mov ecx, dword [ebp + 0x6c]
mov dword [ebp], ecx
lea edx, [ebp + 0x18]
mov dword [ebp + 0x44], edx
lea eax, [ebp - 4]
mov dword [ebp + 0x48], eax
jmp 0x46749b
mov ecx, dword [ebp + 0x6c]
push ecx
mov edx, dword [ebp + 0x68]
push edx
lea eax, [ebp - 0x24c]
push eax
call sub.MSVCR110.dll_memcpy
add esp, 0xc
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x3c], 0x104
lea ecx, [ebp + 0x3c]
push ecx
lea edx, [ebp - 0x260]
push edx
push 0
mov eax, dword [ebp + 0x48]
push eax
mov ecx, dword [ebp + 0x44]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0x34]
push ecx
call dword [0x4c8cdc]
test eax, eax
jne 0x4674d7
mov edx, dword [ebp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.SendIpcMessage:_NtConnectPort_complete_n
call fcn.00467980
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp + 0x1c], 0
je 0x4674fe
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x260], 0
je 0x467510
mov dword [ebp + 0x38], 1
jmp 0x467517
mov dword [ebp + 0x38], 0
mov edx, dword [ebp + 0x38]
mov dword [ebp + 0x50], edx
cmp dword [ebp + 0x50], 0
je 0x467542
cmp dword [ebp + 0x74], 0
je 0x467542
mov eax, dword [ebp - 0x260]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 0x54], eax
jmp 0x46754f
push str.SendIpcMessage:__LpcPortThread_did_not_fill_in_the_process_ID_n
call fcn.00467980
add esp, 4
jmp 0x4676f7
push 0
lea ecx, [ebp + 0x30]
push ecx
lea edx, [ebp - 0x15c]
push edx
mov eax, dword [ebp + 0x64]
push eax
call fcn.00469940
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x4676f7
mov edx, dword [ebp + 0x74]
mov dword [ebp - 0x20], edx
push 0
lea eax, [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp + 0x64]
push edx
push 1
call fcn.004689d0
add esp, 0x18
movzx eax, al
mov dword [ebp + 0x4c], eax
cmp dword [ebp + 0x4c], 0
je 0x4676e3
mov ecx, dword [ebp - 0x158]
push ecx
push 0
push 0x100040
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 0x54], eax
cmp dword [ebp + 0x54], 0
je 0x4676e3
push 2
push 0
push 0
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov eax, dword [ebp - 0x150]
push eax
mov ecx, dword [ebp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4676e3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0046f230
mov dword [ebp + 0x10], eax
push 0
lea edx, [ebp + 0x58]
push edx
push 4
lea eax, [ebp + 0x6c]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4676c9
cmp dword [ebp + 0x58], 4
jne 0x4676c9
push 0
lea edx, [ebp + 0x58]
push edx
push 4
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4676c9
cmp dword [ebp + 0x58], 4
jne 0x4676c9
push 0
lea edx, [ebp + 0x58]
push edx
push 4
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4676c9
cmp dword [ebp + 0x58], 4
jne 0x4676c9
push 0
lea edx, [ebp + 0x58]
push edx
push 4
lea eax, [ebp + 0x74]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4676c9
cmp dword [ebp + 0x58], 4
jne 0x4676c9
push 0
lea edx, [ebp + 0x58]
push edx
mov eax, dword [ebp + 0x6c]
push eax
mov ecx, dword [ebp + 0x68]
push ecx
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4676c9
mov eax, dword [ebp + 0x58]
cmp eax, dword [ebp + 0x6c]
jne 0x4676c9
mov dword [ebp + 0x40], 1
jmp 0x4676d0
mov dword [ebp + 0x40], 0
mov ecx, dword [ebp + 0x40]
mov dword [ebp + 0x50], ecx
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x54], 0
je 0x467781
cmp dword [ebp + 0x50], 0
je 0x467775
cmp dword [ebp + 0x74], 0
je 0x467775
mov edx, dword [ebp + 0x7c]
push edx
push 5
call fcn.00470de0
push eax
mov eax, dword [ebp + 0x54]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004690b0
add esp, 0x10
movzx edx, al
test edx, edx
je 0x46776e
mov eax, dword [ebp + 0x7c]
push eax
mov ecx, dword [ebp + 0x78]
push ecx
mov edx, dword [ebp + 0x54]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004690b0
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x467765
mov edx, dword [ebp + 0x74]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x70]
push ecx
call sub.MSVCR110.dll_memcpy
add esp, 0xc
jmp 0x46776c
mov dword [ebp + 0x50], 0
jmp 0x467775
mov dword [ebp + 0x50], 0
mov edx, dword [ebp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46778e
push str._SendIpcMessage:_ProcessID_was_not_filled_in_by_server_n
call fcn.00467980
add esp, 4
cmp dword [ebp + 0x4c], 0
je 0x4677a0
lea eax, [ebp - 0x28]
push eax
call fcn.00468fd0
add esp, 4
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x50]
add ebp, 0x5c
mov esp, ebp
pop ebp
ret 0x1c