Function at 0x40c9a7
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.0041b5c0
push dword [ebp + 8]
mov esi, 0x400
push 0x436128
push 0xffffffffffffffff
lea eax, [ebp - 0x58c]
push esi
push eax
call fcn.0041b6dc
lea eax, [ebp - 0x58c]
push eax
push str.__s___fullversion
push 0xffffffffffffffff
lea eax, [ebp - 0x98c]
push esi
push eax
call fcn.0041b6dc
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 0x40ca67
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 0x40ca67
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 0x40caa9
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], ebx
je 0x40ca77
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 8], ebx
je 0x40ca81
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
je 0x40ca8b
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x18], ebx
je 0x40ca95
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x14], ebx
je 0x40ca9f
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], ebx
je 0x40caa9
push dword [ebp - 0x10]
call esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.0041b5c0
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 0x40cc1f
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 0x43614c
push eax
call fcn.0041bde0
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x40cc1f
lea esi, [eax + 1]
push 0x436150
push esi
mov dword [ebp - 0x34], esi
call fcn.0041bde0
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x40cba0
push 0x436154
push esi
call fcn.0041bde0
mov edi, eax
mov dword [ebp - 0x20], edi
jmp 0x40cbb1
lea eax, [edi + 1]
push 0x436158
push eax
call fcn.0041bde0
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.0041d300
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.0041d300
mov eax, dword [ebp + 0x14]
push 0x43615c
push esi
mov byte [edi + eax - 1], bl
call fcn.0041bde0
add esp, 0x14
cmp eax, ebx
jne 0x40cc0a
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 0x40cbfe
jmp 0x40cc1f
mov edi, eax
sub edi, esi
push edi
push esi
mov esi, dword [ebp + 0xc]
push esi
call fcn.0041d300
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