Function at 0x430460
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a3fd
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x462304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
push 1
mov ecx, dword [ebp - 0x30]
add ecx, 0x7c
call fcn.0042cb00
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
je 0x430512
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x60], 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x54
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x3c], 0
jne 0x430512
cmp dword [ebp - 0x40], 0x217
jne 0x4304ef
mov dword [ebp - 0x3c], 1
jmp 0x430512
cmp dword [ebp - 0x40], 0x3e5
jne 0x430512
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x430512
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, 1
test edx, edx
je 0x430669
mov byte [ebp - 0x29], 1
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x5c], 0
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x60], 0
lea ecx, [ebp - 0x28]
call fcn.00409940
mov dword [ebp - 4], 0
push 0x1001
call fcn.0044625f
add esp, 4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], edx
mov byte [ebp - 0x29], 1
push 0
lea eax, [ebp - 0x38]
push eax
push 0x1000
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x4c], 0
je 0x4305a8
cmp dword [ebp - 0x50], 6
jne 0x4305af
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0
je 0x4305fc
mov ecx, dword [ebp - 0x38]
sub ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x54]
movsx eax, byte [edx]
test eax, eax
jne 0x4305d4
mov dword [ebp - 0x44], 1
jmp 0x4305db
mov dword [ebp - 0x44], 0
mov cl, byte [ebp - 0x44]
mov byte [ebp - 0x29], cl
mov edx, 1
shl edx, 0xc
mov eax, dword [ebp - 0x34]
mov byte [eax + edx], 0
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042ffa0
movzx edx, byte [ebp - 0x29]
test edx, edx
je 0x430570
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00446268
add esp, 4
movzx edx, byte [ebp - 0x29]
test edx, edx
je 0x430628
cmp dword [ebp - 0x38], 0
jne 0x43063b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ae30
jmp 0x430669
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
call dword [ebp - 0x5c]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ae30
jmp 0x43051f
push 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x7c
call fcn.0042cb00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446150
mov esp, ebp
pop ebp
ret