Function at 0x40de06
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, 0x4308c0
sub esp, 0x21c
mov eax, dword [0x42e4a0]
mov dword [ebp - 0x220], 0x320
mov dword [ebp - 0x21c], eax
cmp dword [ebx + 0x10], 0
je 0x40e0a8
cmp dword [ebx], 0
je 0x40e099
cmp dword [ebx + 0xc], 0
je 0x40e053
lea esi, [ebp - 0x218]
push 0x1f4
push esi
push dword [ebp - 0x220]
push dword [0x47ab20]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
cmp dword [ebx + 8], 0
je 0x40df10
sub esp, 0xc
push esi
call fcn.0041244e
mov ecx, dword [ebx + 0xc]
add esp, 0x10
mov esi, dword [ecx]
cmp eax, esi
je 0x40e099
cmp ecx, 0x46d88c
jne 0x40dea9
cmp dword [0x46d88c], 0
je 0x40de9f
test esi, esi
jne 0x40dea9
mov dword [ebp - 0x21c], 0
mov dword [ecx], eax
push ecx
push ecx
push 0x440ee5
push dword [ebx]
call fcn.004034b9
pop esi
xor esi, esi
pop edi
test eax, eax
mov eax, dword [ebp - 0x21c]
push 0x440ee9
push dword [ebx]
cmovne eax, esi
mov dword [ebp - 0x21c], eax
call fcn.004034b9
pop edx
pop ecx
push str.cache
test eax, eax
mov eax, dword [ebp - 0x21c]
push dword [ebx]
cmovne eax, esi
mov dword [ebp - 0x21c], eax
call fcn.004034b9
add esp, 0x10
test eax, eax
cmove esi, dword [ebp - 0x21c]
mov dword [ebp - 0x21c], esi
jmp 0x40e099
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x40df2e
push edx
push edx
push eax
push esi
call fcn.004033fb
add esp, 0x10
test eax, eax
jne 0x40df3d
jmp 0x40e099
cmp byte [ebp - 0x218], 0
je 0x40e099
jmp 0x40df88
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
je 0x40df88
sub esp, 0xc
push esi
call fcn.0042d5c4
mov edi, eax
pop eax
mov eax, dword [ebx + 0xc]
push dword [eax]
call fcn.0042d5c4
add esp, 0x10
cmp edi, eax
ja 0x40df88
cmp byte [ebp - 0x218], 0
mov eax, dword [ebx + 0xc]
je 0x40e002
mov edi, dword [eax]
test edi, edi
je 0x40df83
test esi, esi
je 0x40df83
cld
lodsb al, byte [esi]
stosb byte es:[edi], al
or al, al
jne 0x40df7d
jmp 0x40e099
sub esp, 0xc
push esi
call fcn.0042d5c4
lea ecx, [eax + 3]
mov dword [esp], ecx
mov dword [ebp - 0x224], ecx
call fcn.0042d4e4
mov ecx, dword [ebp - 0x224]
mov edx, eax
mov edi, eax
test edi, edi
je 0x40dfb9
test esi, esi
je 0x40dfb9
jecxz 0x40dfb9
cld
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xc]
add esp, 0x10
mov esi, dword [eax]
cmp esi, dword [0x46dcd0]
seta cl
cmp esi, section..rsrc
seta al
test cl, al
je 0x40dff8
test esi, esi
je 0x40dff8
mov dword [ebp - 0x224], edx
push edi
push esi
push 0
push dword [0x452048]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x224]
pop eax
mov eax, dword [ebx + 0xc]
mov dword [eax], edx
jmp 0x40e099
cmp eax, 0x42e4c0
jne 0x40e018
mov dword [0x42e4c0], 0x440ef4
jmp 0x40e099
cmp eax, 0x46dcc4
setne dl
cmp eax, 0x42e670
setne cl
mov esi, edx
and esi, ecx
cmp eax, 0x42e66c
setne cl
and esi, ecx
cmp eax, 0x42e678
setne cl
mov edx, esi
test dl, cl
je 0x40e099
cmp eax, 0x42e4c4
je 0x40e099
mov dword [eax], 0
jmp 0x40e099
cmp dword [ebx + 8], 0
je 0x40e099
mov eax, dword [ebp - 0x220]
push esi
push esi
add eax, 5
push eax
push dword [0x47ab20]
call fcn.004022aa
add esp, 0x10
test eax, eax
mov eax, dword [ebx + 4]
je 0x40e08d
mov ecx, dword [eax*4 + 0x46d978]
or ecx, dword [ebx + 8]
mov dword [eax*4 + 0x46d978], ecx
jmp 0x40e099
mov ecx, dword [ebx + 8]
not ecx
and dword [eax*4 + 0x46d978], ecx
add dword [ebp - 0x220], 8
add ebx, 0x18
jmp 0x40de2c
sub esp, 0xc
push 0x20000
call fcn.0042d4e4
mov esi, eax
mov dword [esp], eax
call fcn.00413602
add esp, 0x10
test esi, esi
je 0x40e0d7
push edx
push esi
push 0
push dword [0x452048]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ecx
sub esp, 0xc
push dword [0x47ab20]
call dword [sym.imp.USER32.dll_DestroyWindow]
add esp, 0xc
cmp dword [ebp - 0x21c], 0
jne 0x40e125
push eax
push eax
push dword [0x435800]
push 0x4644a0
call fcn.0040423a
mov dword [esp], 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x42e4a0], 0
add esp, 0xc
call fcn.0040ddb1
jmp 0x40e156
call fcn.004129b0
test byte [0x46d983], 2
je 0x40e156
cmp dword [0x46d4c8], 0
jg 0x40e156
push 0x400
push 0x42e458
push 0x46d4c8
push 0x46d4c4
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret