Function at 0x1003661f
Capabilities:
Create pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0xc
call fcn.10101428
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 0x10
call fcn.10101428
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
jmp 0x100366cc
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
push 0x10038795
call fcn.1002a60f
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x10036718
push 0xffffffff
call fcn.10036f84
jmp 0x10036ef7
cmp dword [ebp - 4], 0
je 0x10036eed
mov dword [ebp - 0x30], esp
mov eax, dword [0x102bd8c3]
push eax
push 0x44
call fcn.10101428
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call dword [0x102bdbaf]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x1003681e
push 0x161
push 0x4242c00
push 6
call fcn.1010142e
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x34]
push ebx
mov edi, dword [ebp - 0x38]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.10008d52
call fcn.10008d52
call fcn.10008d52
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.10101422
add esp, 4
pop eax
mov ebx, dword [0x102bd8c3]
add ebx, 0x3c
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
cmp dword [ebx], 0xffffffff
je 0x1003690d
mov ebx, dword [0x102bd8c3]
add ebx, 0x3c
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
cmp dword [ebx], 0
je 0x1003690d
mov eax, 1
jmp 0x10036912
mov eax, 0
test eax, eax
je 0x10036a5b
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x1bc
call fcn.10102410
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1003694f
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [0x102bd8c3]
add ebx, 0x3c
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0xc]
push eax
call fcn.10008331
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push 0
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp - 0x34]
mov ebx, dword [ebp - 0x30]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x100369aa
push 0x251
push 0x4242c00
push 6
call fcn.1010142e
add esp, 0xc
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push htons
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x100369cf
mov eax, 0x1010b24e
push eax
push 3
mov ebx, 0x19c
call fcn.10102c80
add esp, 0x28
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp ecx, 0x80000101
jne 0x10036a03
and eax, 0xff
jmp 0x10036a58
cmp ecx, 0x80000201
jne 0x10036a0e
cwde
jmp 0x10036a58
cmp ecx, 0x80000301
je 0x10036a58
cmp ecx, 0x80000401
je 0x10036a58
mov dword [ebp - 0x40], eax
cmp ecx, 0x80000501
je 0x10036a48
cmp ecx, 0x80000601
je 0x10036a4d
push 0x29e
push 0x4242c00
push 2
call fcn.1010142e
add esp, 0xc
fld dword [ebp - 0x40]
jmp 0x10036a53
mov dword [ebp - 0x3c], edx
fld qword [ebp - 0x40]
call fcn.1000144d
mov dword [ebp - 8], eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.10036ff2
cmp dword [ebp - 8], eax
je 0x10036ee8
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], 0xc
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], 1
mov dword [ebp - 0x30], esp
push 4
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10036aef
push 0x3c1
push 0x4242c00
push 6
call fcn.1010142e
add esp, 0xc
mov ebx, dword [0x102bd8c3]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], 0x44
mov ebx, dword [0x102bd8c3]
add ebx, 0x3c
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
mov dword [ebx], eax
mov ebx, dword [0x102bd8c3]
add ebx, 0x40
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x30]
mov dword [ebx], eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.10036ff2
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.10102aa0
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10036b79
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], esp
push 0
lea eax, [ebp - 0x10]
push eax
push 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10036b98
add eax, 8
push eax
push dword [ebp - 0x1c]
call dword [0x102bdbb3]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10036bc2
push 0x4d6
push 0x4242c00
push 6
call fcn.1010142e
add esp, 0xc
mov ebx, dword [0x102bd8c3]
add ebx, 0x2c
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], pe_nt_image_headers32
push 0
mov ebx, 0x104
call fcn.10104d80
add esp, 4
mov dword [ebp - 0x30], eax
push 0
mov ebx, 0x108
call fcn.10104f30
add esp, 4
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
push 0x101393b8
push dword [ebp - 0x30]
mov ecx, 3
call fcn.1000c488
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x10036c2c
push ebx
call fcn.10101422
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x10036c3c
push ebx
call fcn.10101422
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10036c50
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push 0xffffffff
call fcn.10037060
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10036c75
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
push 0
mov ebx, 0x104
call fcn.10104d80
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x10036ca2
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000ce6e
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push eax
call fcn.1000ce6e
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x28]
push eax
call fcn.1000ce6e
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
push dword [ebp - 0x2c]
mov eax, dword [0x102bd8c3]
push eax
push 0x44
call fcn.10101428
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push dword [ebp - 0x38]
push 0
push 0
push 1
push 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call dword [0x102bdaff]
nop
nop
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x10036deb
push 0x6a0
push 0x4242c00
push 6
call fcn.1010142e
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x40]
push ebx
mov edi, dword [ebp - 0x44]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.10008d52
call fcn.10008d52
call fcn.10008d52
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.10101422
add esp, 4
pop eax
test eax, eax
je 0x10036ede
push dword [ebp - 0x18]
call fcn.10015d2b
push dword [ebp - 0x1c]
call fcn.10015d2b
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
push dword [ebx]
call fcn.10015d2b
mov ebx, dword [ebp - 0x2c]
add ebx, 4
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
push dword [ebx]
call fcn.10015d2b
push 0xffffffff
call fcn.10036f84
jmp 0x10036ef7
push 0xffffffff
call fcn.10036f84
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
lea eax, [ebp - 4]
push eax
call fcn.100372bc
jmp 0x10036f28
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10036f38
push ebx
call fcn.10101422
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.10101422
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10036f54
push ebx
call fcn.10101422
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10036f64
push ebx
call fcn.10101422
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x10036f74
push ebx
call fcn.10101422
add esp, 4
mov ebx, dword [ebp - 0x2c]
push ebx
call fcn.10101422
add esp, 4
mov esp, ebp
pop ebp
ret