Function at 0x40dd6e
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 0x40e010
cmp dword [ebx], 0
je 0x40e001
cmp dword [ebx + 0xc], 0
je 0x40dfbb
lea esi, [ebp - 0x218]
push 0x1f4
push esi
push dword [ebp - 0x220]
push dword [0x479b20]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
cmp dword [ebx + 8], 0
je 0x40de78
sub esp, 0xc
push esi
call fcn.004123ba
mov ecx, dword [ebx + 0xc]
add esp, 0x10
mov esi, dword [ecx]
cmp eax, esi
je 0x40e001
cmp ecx, 0x46c88c
jne 0x40de11
cmp dword [0x46c88c], 0
je 0x40de07
test esi, esi
jne 0x40de11
mov dword [ebp - 0x21c], 0
mov dword [ecx], eax
push ecx
push ecx
push 0x43fec5
push dword [ebx]
call fcn.004034b9
pop esi
xor esi, esi
pop edi
test eax, eax
mov eax, dword [ebp - 0x21c]
push 0x43fec9
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 0x40e001
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x40de96
push edx
push edx
push eax
push esi
call fcn.004033fb
add esp, 0x10
test eax, eax
jne 0x40dea5
jmp 0x40e001
cmp byte [ebp - 0x218], 0
je 0x40e001
jmp 0x40def0
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
je 0x40def0
sub esp, 0xc
push esi
call fcn.0042d208
mov edi, eax
pop eax
mov eax, dword [ebx + 0xc]
push dword [eax]
call fcn.0042d208
add esp, 0x10
cmp edi, eax
ja 0x40def0
cmp byte [ebp - 0x218], 0
mov eax, dword [ebx + 0xc]
je 0x40df6a
mov edi, dword [eax]
test edi, edi
je 0x40deeb
test esi, esi
je 0x40deeb
cld
lodsb al, byte [esi]
stosb byte es:[edi], al
or al, al
jne 0x40dee5
jmp 0x40e001
sub esp, 0xc
push esi
call fcn.0042d208
lea ecx, [eax + 3]
mov dword [esp], ecx
mov dword [ebp - 0x224], ecx
call fcn.0042d128
mov ecx, dword [ebp - 0x224]
mov edx, eax
mov edi, eax
test edi, edi
je 0x40df21
test esi, esi
je 0x40df21
jecxz 0x40df21
cld
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xc]
add esp, 0x10
mov esi, dword [eax]
cmp esi, dword [0x46ccd0]
seta cl
cmp esi, section..rsrc
seta al
test cl, al
je 0x40df60
test esi, esi
je 0x40df60
mov dword [ebp - 0x224], edx
push edi
push esi
push 0
push dword [0x451048]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x224]
pop eax
mov eax, dword [ebx + 0xc]
mov dword [eax], edx
jmp 0x40e001
cmp eax, 0x42e4c0
jne 0x40df80
mov dword [0x42e4c0], 0x43fed4
jmp 0x40e001
cmp eax, 0x46ccc4
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 0x40e001
cmp eax, 0x42e4c4
je 0x40e001
mov dword [eax], 0
jmp 0x40e001
cmp dword [ebx + 8], 0
je 0x40e001
mov eax, dword [ebp - 0x220]
push esi
push esi
add eax, 5
push eax
push dword [0x479b20]
call fcn.004022aa
add esp, 0x10
test eax, eax
mov eax, dword [ebx + 4]
je 0x40dff5
mov ecx, dword [eax*4 + 0x46c978]
or ecx, dword [ebx + 8]
mov dword [eax*4 + 0x46c978], ecx
jmp 0x40e001
mov ecx, dword [ebx + 8]
not ecx
and dword [eax*4 + 0x46c978], ecx
add dword [ebp - 0x220], 8
add ebx, 0x18
jmp 0x40dd94
sub esp, 0xc
push 0x20000
call fcn.0042d128
mov esi, eax
mov dword [esp], eax
call fcn.0041356e
add esp, 0x10
test esi, esi
je 0x40e03f
push edx
push esi
push 0
push dword [0x451048]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ecx
sub esp, 0xc
push dword [0x479b20]
call dword [sym.imp.USER32.dll_DestroyWindow]
add esp, 0xc
cmp dword [ebp - 0x21c], 0
jne 0x40e08d
push eax
push eax
push dword [0x4357e0]
push 0x4634a0
call fcn.0040423a
mov dword [esp], 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x42e4a0], 0
add esp, 0xc
call fcn.0040dd19
jmp 0x40e0be
call fcn.0041291c
test byte [0x46c983], 2
je 0x40e0be
cmp dword [0x46c4c8], 0
jg 0x40e0be
push 0x400
push 0x42e458
push 0x46c4c8
push 0x46c4c4
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret