Function at 0x404250
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x766570]
mov dword [ebp - 0x48], eax
mov ecx, dword [0x766554]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x34], 0
movzx edx, word [ebp - 0xc]
or edx, dword [ebp - 0x14]
movzx eax, word [ebp - 0x1c]
movzx ecx, byte [ebp - 0x18]
lea eax, [eax + ecx - 0x42]
movzx ecx, word [ebp - 4]
and eax, ecx
or edx, eax
mov word [ebp - 8], dx
cmp dword [ebp - 0x2c], 0
jbe 0x404353
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.USER32.dll_DrawIcon]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x57
je 0x40430a
cmp dword [ebp - 0x38], 0xa3
je 0x4042d0
cmp dword [ebp - 0x38], 0xdb
je 0x404317
jmp 0x404340
imul ecx, dword [ebp - 0x40], 0
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 4]
and edx, eax
or ecx, edx
imul edx, dword [ebp - 0x3c], 0x20c
movzx eax, word [ebp - 0x44]
add eax, dword [ebp - 0xc]
and edx, eax
movzx eax, byte [ebp - 0x10]
and edx, eax
or ecx, edx
or ecx, 0x982
mov dword [ebp - 0x24], ecx
jmp 0x404353
mov ecx, 0x8f1
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x30], ecx
jmp 0x404353
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 4]
movzx eax, byte [ebp - 0x30]
and edx, eax
movzx ecx, byte [ebp - 0x1c]
or edx, ecx
movzx eax, word [ebp - 8]
or edx, eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x1342
or edx, ecx
mov word [ebp - 0x28], dx
jmp 0x404353
imul edx, dword [ebp - 0x18], 0
sub edx, dword [ebp - 0x14]
movzx eax, byte [ebp - 0x20]
add eax, dword [ebp - 0x10]
or edx, eax
mov dword [ebp - 0x44], edx
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x50]
push edx
push 0x12
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov dword [ebp - 0x34], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push str.ttsiaeuyra
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
push str.getrkiiehwtonews
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov dword [ebp - 0x1c], eax
call fcn.00405440
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x2c]
or eax, dword [ebp - 0x28]
movzx ecx, word [ebp - 0x10]
or eax, ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x1c]
sub edx, 0x97a
and edx, dword [ebp - 8]
or eax, edx
xor ecx, ecx
sub ecx, dword [ebp - 0x3c]
or eax, ecx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_DrawIcon]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x24]
je 0x4043fb
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x24]
je 0x40444b
push 0
push 0
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x30], 0
jae 0x40441e
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jb 0x404427
mov dword [ebp - 0x24], 0xfffff90b
jmp 0x40444b
movzx edx, word [ebp - 0x10]
add edx, dword [ebp - 0x48]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x14]
or edx, eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x2c]
or edx, ecx
mov byte [ebp - 0x20], dl
movzx edx, byte [ebp - 0x34]
cmp dword [ebp - 0x20], edx
je 0x40449d
movzx eax, word [ebp - 0x40]
sub eax, dword [ebp - 0x24]
movzx ecx, word [ebp - 0x24]
mov edx, dword [ebp - 0x34]
sub edx, ecx
and eax, edx
movzx ecx, byte [ebp - 0x3c]
mov edx, dword [ebp - 0x44]
sub edx, ecx
and eax, edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
lea ecx, [edx + ecx + 0x270]
add ecx, dword [ebp - 0x28]
and ecx, dword [ebp - 0x48]
or eax, ecx
mov word [ebp - 0x2c], ax
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x4c], eax
jmp 0x4044a7
movzx ecx, byte [ebp - 0x40]
sub ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xc], ecx
mov esp, ebp
pop ebp
ret