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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4520
call fcn.00431350
mov eax, dword [0x4420a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40c
lea eax, [ebp - 0x4510]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4514]
mov ecx, 0x41
lea edi, [ebp - 0x4514]
mov esi, str..pipeHaima_Droid4XServicePipe
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4280c7
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
call edi
cmp eax, 0xe7
jne 0x42813e
push 0x1388
lea eax, [ebp - 0x4514]
push eax
call ebx
test eax, eax
je 0x42813e
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x4514]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x428081
push 0x7f
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call sub.MSVCR120.dll_memset
lea eax, [ebp - 0x4514]
push eax
lea eax, [ebp - 0x104]
push str.PIPE:The_named_pipe___s__is_connected._n
push eax
call fcn.00402a10
add esp, 0x18
mov dword [ebp - 0x4520], 2
lea eax, [ebp - 0x4520]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x42818f
push 0x7f
push eax
mov byte [ebp - 0x84], al
lea eax, [ebp - 0x83]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call edi
push eax
push str.PIPE:SetNamedPipeHandleState_failed___error_code___d_n
jmp 0x428338
push 0x7f
lea eax, [ebp - 0x83]
mov byte [ebp - 0x84], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call edi
push eax
lea eax, [ebp - 0x84]
push str.PIPE:Unable_to_open_named_pipe___error_code___d_n
push eax
call fcn.00402a10
add esp, 0xc
mov dword [0x442ffc], 0
mov ecx, 0x44206c
push 0xd
push str.MMNotice:test
call fcn.00406720
jmp 0x428347
push 0x1fff
lea eax, [ebp - 0x2103]
mov byte [ebp - 0x2104], 0
push 0
push eax
call sub.MSVCR120.dll_memset
push 0x1fff
lea eax, [ebp - 0x4103]
mov byte [ebp - 0x4104], 0
push 0
push eax
call sub.MSVCR120.dll_memset
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2104]
mov eax, ecx
add esp, 0x18
mov edx, 0x2000
sub ebx, eax
jmp 0x4281e0
lea eax, [edx + 0x7fffdffe]
test eax, eax
je 0x4281f9
mov al, byte [ebx + ecx]
test al, al
je 0x4281f9
mov byte [ecx], al
inc ecx
dec edx
jne 0x4281e0
jmp 0x4281fd
test edx, edx
jne 0x4281fe
dec ecx
lea eax, [ebp - 0x2104]
mov byte [ecx], 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ebx, [eax + 1]
lea eax, [ebp - 0x4518]
push eax
push ebx
lea eax, [ebp - 0x2104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428316
mov eax, dword [ebp - 0x4518]
cmp ebx, eax
jne 0x428316
lea ecx, [ebp - 0x2104]
push ecx
push eax
push str.Sends__ld_bytes__Message:___s__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 0xc
push 0
lea eax, [ebp - 0x451c]
push eax
push 0x2000
lea eax, [ebp - 0x4104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
jne 0x428280
call edi
cmp eax, 0xea
jne 0x4282a1
lea eax, [ebp - 0x4104]
push eax
push dword [ebp - 0x451c]
push str.Receives__ld_bytes__Message:___s__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 0xc
test ebx, ebx
je 0x428255
jmp 0x4282d2
push 0x7f
lea eax, [ebp - 0x83]
mov byte [ebp - 0x84], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call edi
push eax
lea eax, [ebp - 0x84]
push str.PIPE:ReadFile_failed___error_code___d_n
push eax
call fcn.00402a10
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x442080], 0x10
mov eax, 0x44206c
pop edi
cmovae eax, dword [0x44206c]
mov dword [0x442ffc], 1
mov dword [0x44207c], 0
pop esi
mov byte [eax], 0
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004308d0
mov esp, ebp
pop ebp
ret
push 0x7f
lea eax, [ebp - 0x83]
mov byte [ebp - 0x84], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call edi
push eax
push str.PIPE:WriteFile_failed___error_code___d_n
lea eax, [ebp - 0x84]
push eax
call fcn.00402a10
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004308d0
mov esp, ebp
pop ebp
ret