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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98c
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x58b]
push ebx
push eax
mov byte [ebp - 0x58c], bl
call fcn.0041bdb0
push dword [ebp + 8]
mov esi, 0x400
push 0x437690
push 0xffffffffffffffff
lea eax, [ebp - 0x58c]
push esi
push eax
call fcn.0041becc
lea eax, [ebp - 0x58c]
push eax
push str.__s___fullversion
push 0xffffffffffffffff
lea eax, [ebp - 0x98c]
push esi
push eax
call fcn.0041becc
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x34
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 1
call edi
test eax, eax
je 0x40d298
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
je 0x40d298
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
call edi
test eax, eax
jne 0x40d2da
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], ebx
je 0x40d2a8
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 8], ebx
je 0x40d2b2
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
je 0x40d2bc
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x18], ebx
je 0x40d2c6
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x14], ebx
je 0x40d2d0
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], ebx
je 0x40d2da
push dword [ebp - 0x10]
call esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.0041bdb0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x14]
push ebx
push 1
push dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x8c], esi
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x60], 0x100
mov dword [ebp - 0x4c], eax
call esi
push ebx
push 1
push dword [ebp - 8]
call esi
push ebx
push 1
push dword [ebp - 4]
call esi
xor eax, eax
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x8c]
push eax
push ebx
push ebx
push 0x8000008
push 1
push ebx
push ebx
lea eax, [ebp - 0x98c]
push eax
lea eax, [ebp - 0x58c]
push eax
call fcn.004012e8
add esp, 0x28
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x40d450
push ebx
lea eax, [ebp - 0x38]
push eax
push 0x100
lea eax, [ebp - 0x18c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x18c]
push 0x4376b4
push eax
call fcn.0041ca90
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x40d450
lea esi, [eax + 1]
push 0x4376b8
push esi
mov dword [ebp - 0x34], esi
call fcn.0041ca90
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x40d3d1
push 0x4376bc
push esi
call fcn.0041ca90
mov edi, eax
mov dword [ebp - 0x20], edi
jmp 0x40d3e2
lea eax, [edi + 1]
push 0x4376c0
push eax
call fcn.0041ca90
mov dword [ebp - 0x20], eax
sub edi, dword [ebp - 0x1c]
lea eax, [edi - 1]
push eax
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.0041dfb0
mov byte [edi + esi - 1], bl
mov edi, dword [ebp - 0x20]
sub edi, dword [ebp - 0x1c]
add esp, 0x14
lea eax, [edi - 1]
push eax
push dword [ebp - 0x34]
push dword [ebp + 0x14]
call fcn.0041dfb0
mov eax, dword [ebp + 0x14]
push 0x4376c4
push esi
mov byte [edi + eax - 1], bl
call fcn.0041ca90
add esp, 0x14
cmp eax, ebx
jne 0x40d43b
mov edx, dword [ebp + 0xc]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40d42f
jmp 0x40d450
mov edi, eax
sub edi, esi
push edi
push esi
mov esi, dword [ebp + 0xc]
push esi
call fcn.0041dfb0
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x44]
call esi
push dword [ebp - 0x48]
call esi
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
leave
ret