Function at 0x402430
Capabilities:
Read file on windows
Terminate process
Write file on windows

Disassembly:
sub esp, 0x484
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x402452
pop edi
pop esi
add esp, 0x484
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PeekNamedPipe
push esi
call edi
test eax, eax
mov dword [esp + 0x18], eax
jne 0x402471
pop edi
pop esi
add esp, 0x484
ret
push str.CreatePipe
push esi
call edi
mov esi, eax
test esi, esi
jne 0x402488
pop edi
pop esi
add esp, 0x484
ret
lea eax, [esp + 0x28]
push 0
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 1
call esi
test eax, eax
jne 0x4024c0
pop edi
pop esi
add esp, 0x484
ret
lea eax, [esp + 0x28]
push 0
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call esi
test eax, eax
jne 0x4024f6
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x484
ret
mov edx, dword [esp + 0x1c]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov eax, dword [0x42f094]
mov dword [esp + 0x70], 0x101
test eax, eax
mov dword [esp + 0x7c], edx
mov word [esp + 0x74], 0
mov dword [esp + 0x4c], str.WinSta0Default
je 0x40272a
lea ecx, [esp + 0x34]
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x498]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push ecx
push 0
call eax
test eax, eax
jne 0x40259d
lea edx, [esp + 0x34]
mov ecx, dword [esp + 0x498]
lea eax, [esp + 0x44]
push edx
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push ecx
push 0
call dword [0x42f094]
test eax, eax
je 0x40272a
mov edx, dword [esp + 0x34]
push ebp
push 0x1f4
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [str.exit_r_n]
mov cx, word [0x408330]
mov dl, byte [0x408332]
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
mov byte [esp + 0x2a], dl
mov eax, dword [0x42f090]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x4026e9
mov edi, dword [esp + 0x1c]
xor esi, esi
mov eax, dword [0x42f090]
test eax, eax
jne 0x4026e9
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 0
push 0
push ecx
call dword [esp + 0x34]
test eax, eax
je 0x402670
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40265c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esp + 0x94]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402670
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x494]
lea eax, [esp + 0x8c]
push edx
push eax
call fcn.00401750
test eax, eax
jle 0x402670
mov esi, 1
jmp 0x402660
test esi, esi
jne 0x402670
push 0x1f4
call ebp
mov eax, dword [0x42f090]
test eax, eax
je 0x4025f3
mov eax, dword [0x42f090]
test eax, eax
jne 0x4026e9
lea ecx, [esp + 0x8c]
push 0x400
push ecx
mov ecx, dword [esp + 0x49c]
call fcn.00401780
mov edi, eax
mov eax, dword [0x42f090]
test eax, eax
jne 0x4026e9
test edi, edi
jle 0x4026e9
cmp edi, 6
jne 0x4026c1
lea edx, [esp + 0x24]
push edi
lea eax, [esp + 0x90]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x4026e9
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x94]
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x42f090]
test eax, eax
je 0x4025e4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x2c]
push 6
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x64
call ebp
mov ecx, dword [esp + 0x38]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x3c]
push eax
call esi
pop ebp
jmp 0x402730
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x484
ret