Function at 0x4b01d0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
lea edi, [ebp - 0x3c]
mov ecx, 0xf
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ecx, dword [edx + 0x10]
or ecx, dword [eax + 0x14]
jne 0x4b02c4
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 8]
test eax, eax
je 0x4b02c4
mov esi, esp
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp esi, esp
call fcn.0052354c
test eax, eax
jne 0x4b029d
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0052354c
test eax, eax
jne 0x4b025d
mov dword [ebp - 0x28], 0
jmp 0x4b0274
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0052354c
add eax, 0xafc80
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0xafced
jne 0x4b028a
mov dword [ebp - 4], 0x1117e
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov eax, dword [ebp - 4]
jmp 0x4b0530
cmp dword [ebp - 0x1c], 0
jne 0x4b02b6
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, 0xb
jmp 0x4b0530
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x1c]
jbe 0x4b02c4
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
je 0x4b0300
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 8]
test edx, edx
jne 0x4b0300
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x48]
mov edx, dword [ecx + 0x4c]
mov cl, 0x20
call fcn.005259b0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov esi, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.0052354c
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
jne 0x4b04e0
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0052354c
test eax, eax
jne 0x4b035a
mov dword [ebp - 0x2c], 0
jmp 0x4b0371
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0052354c
add eax, 0xafc80
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0xb0065
jne 0x4b04bc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x14], 0
jl 0x4b03d4
jg 0x4b039e
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x10], 0
jbe 0x4b03d4
mov eax, dword [ebp + 8]
push 0
push 0x3e8
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [eax + 0x10]
push edx
call fcn.005252e0
mov esi, esp
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.0052354c
mov dword [ebp - 4], eax
jmp 0x4b0409
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x10]
and eax, dword [edx + 0x14]
cmp eax, 0xffffffff
jne 0x4b0409
mov esi, esp
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.0052354c
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0xffffffff
je 0x4b0463
cmp dword [ebp - 0x38], 0
je 0x4b0426
cmp dword [ebp - 0x38], 0x102
je 0x4b045a
jmp 0x4b049c
mov esi, esp
push 1
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp esi, esp
call fcn.0052354c
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov dword [ebp - 4], 0
jmp 0x4b049c
mov dword [ebp - 4], 0x11177
jmp 0x4b049c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0052354c
test eax, eax
jne 0x4b047f
mov dword [ebp - 0x3c], 0
jmp 0x4b0496
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0052354c
add eax, 0xafc80
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b04ba
cmp dword [0x5a51dc], 0xe
jl 0x4b04ba
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call fcn.004b11a0
add esp, 4
jmp 0x4b04de
cmp dword [ebp - 4], 0xafced
jne 0x4b04ce
mov dword [ebp - 4], 0x1117e
jmp 0x4b04de
cmp dword [ebp - 4], 0xafca6
jne 0x4b04de
mov dword [ebp - 4], 0x1117e
jmp 0x4b04f8
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x4b04f1
mov dword [ebp - 4], 0x1117e
jmp 0x4b04f8
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x4b052d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0
je 0x4b052d
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 8]
test eax, eax
jne 0x4b052d
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
xor eax, eax
mov ecx, dword [ebp + 8]
add edx, dword [ecx + 0x48]
mov ecx, dword [ecx + 0x4c]
adc ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], ecx
mov eax, dword [ebp - 4]
push edx
mov ecx, ebp
push eax
lea edx, [0x4b0554]
call fcn.0052356f
pop eax
pop edx
pop edi
pop esi
add esp, 0x3c
cmp ebp, esp
call fcn.0052354c
mov esp, ebp
pop ebp
ret