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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x426106
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 8
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x426016
cmp dword [ebp - 0x14], 1
je 0x426047
cmp dword [ebp - 0x14], 2
je 0x4260c2
jmp 0x4260f2
cmp dword [ebp - 0xc], 0
jne 0x426039
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CastingStation__PipeService::Process_Error__d._n
call fcn.004172e0
add esp, 8
xor eax, eax
jmp 0x4262d7
mov ecx, dword [ebp - 4]
mov dword [ecx], 1
jmp 0x426106
cmp dword [ebp - 0xc], 0
jne 0x4260a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xea
jne 0x42608c
mov ecx, dword [ebp - 4]
add ecx, 0x24
call fcn.004203f0
add eax, 0x1000
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x24
call fcn.00427fb0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
jmp 0x4260a6
cmp dword [ebp - 0x18], 0x3e5
jne 0x426097
jmp 0x4260a6
mov ecx, dword [ebp - 4]
call fcn.00425e90
xor eax, eax
jmp 0x4262d7
jmp 0x4260c0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 4]
mov dword [edx], 2
jmp 0x426106
cmp dword [ebp - 0xc], 0
je 0x4260d3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x30]
je 0x4260e7
mov ecx, dword [ebp - 4]
call fcn.00425e90
mov eax, 2
jmp 0x4262d7
mov edx, dword [ebp - 4]
mov dword [edx], 1
jmp 0x426106
push 0x47efd8
call fcn.004172e0
add esp, 4
xor eax, eax
jmp 0x4262d7
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 1
je 0x426123
cmp dword [ebp - 0x1c], 2
je 0x426200
jmp 0x4262c1
mov edx, dword [ebp - 4]
add edx, 8
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x24
call fcn.004203f0
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x20]
push eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x24
call fcn.00427550
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4261ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xea
jne 0x4261a8
mov ecx, dword [ebp - 4]
add ecx, 0x24
call fcn.004203f0
add eax, 0x1000
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x24
call fcn.00427fb0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], ecx
jmp 0x4261c5
cmp dword [ebp - 0x10], 0x3e5
jne 0x4261bd
mov eax, dword [ebp - 4]
mov dword [eax + 4], 1
jmp 0x4261c5
mov ecx, dword [ebp - 4]
call fcn.00425e90
xor eax, eax
jmp 0x4262d7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
add edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 4]
mov dword [edx], 2
mov ecx, dword [ebp - 4]
add ecx, 0x40
call fcn.00405390
jmp 0x4262d2
cmp dword [ebp + 8], 0
jne 0x42620d
xor eax, eax
jmp 0x4262d7
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x34
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x24
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
call edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
push ecx
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x34
call fcn.00427550
push eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4262a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3e5
jne 0x426293
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 1
jmp 0x42629b
mov ecx, dword [ebp - 4]
call fcn.00425e90
xor eax, eax
jmp 0x4262d7
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax], 1
mov ecx, dword [ebp - 4]
add ecx, 0x40
call fcn.00405390
jmp 0x4262d2
push str._CastingStation__PipeService::Process_Invalid_pipe_state._n
call fcn.004172e0
add esp, 4
xor eax, eax
jmp 0x4262d7
mov eax, 1
mov esp, ebp
pop ebp
ret 4