Function at 0x405970
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x20], 0x84f
mov dword [ebp - 0x38], 0
mov eax, dword [0x7665a0]
mov dword [ebp - 8], eax
mov dword [ebp - 0x44], 0x855
mov dword [ebp - 0x1c], 0
mov ecx, dword [0x766580]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], 0x46a
mov edx, dword [0x766590]
mov dword [ebp - 4], edx
mov dword [ebp - 0x40], 0x228
mov eax, dword [0x766540]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], 0x427
mov ecx, dword [0x7665ac]
mov dword [ebp - 0x24], ecx
mov edx, dword [0x766590]
mov dword [ebp - 0x48], edx
mov eax, dword [0x766544]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3c], 0x75e
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x4c]
push edx
push 0x17
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov dword [ebp - 0x18], eax
push 0
push 0
push 3
push 0
push 2
push 0x40000000
push str.vadtreorii
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
push str.yrcblseoatti
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov dword [ebp - 0x3c], eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 8]
add edx, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x2c]
imul ecx, dword [ebp - 0x20], 0
add eax, dword [ebp - 0x28]
add ecx, eax
and edx, ecx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 8]
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x44]
movzx ecx, word [ebp - 0x2c]
sub eax, ecx
or edx, eax
mov word [ebp - 0xc], dx
call fcn.00405ce0
movzx edx, byte [ebp - 8]
cmp dword [ebp - 0x28], edx
jae 0x405b8c
mov eax, dword [ebp - 0x3c]
and eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
add ecx, 0x78
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 4]
and ecx, edx
or eax, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
sub ecx, 0x3d
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0xc1
ja case.0x405ad3.1
mov edx, dword [ebp - 0x34]
movzx eax, byte [edx + 0x405c14]
jmp dword [eax*4 + 0x405bfc]
mov ecx, dword [ebp - 8]
add ecx, 0x4ea
movzx edx, word [ebp - 0x28]
sub ecx, edx
add ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
lea ecx, [ecx + eax + 0xb23]
and ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], ecx
jmp 0x405b8a
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x38]
shl edx, cl
and edx, 0x37d
mov dword [ebp - 0x1c], edx
jmp 0x405b8a
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 0x24]
add eax, dword [ebp - 0xc]
movzx ecx, byte [ebp - 0x10]
and eax, ecx
and eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
jmp 0x405b8a
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x40], edx
jmp 0x405b8a
movzx eax, byte [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
sub ecx, dword [ebp - 0x20]
movzx edx, word [ebp - 0xc]
sub ecx, edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x44]
and eax, 0
movzx edx, word [ebp - 4]
and eax, edx
or ecx, eax
or ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
and eax, dword [ebp - 0xc]
or ecx, eax
mov dword [ebp - 0x2c], ecx
jmp 0x405b8a
movzx ecx, byte [ebp - 0x18]
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx - 0x43a]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x405bae
movzx ecx, word [ebp - 0x18]
and ecx, dword [ebp - 4]
movzx edx, byte [ebp - 0x1c]
add edx, 0x891
sub edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
or ecx, edx
or ecx, 0x410
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x20]
movzx ecx, word [ebp - 0x28]
sub ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x40]
and eax, ecx
and eax, dword [ebp - 4]
or eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x10]
or edx, 0xab3
or edx, 0x6ae
mov eax, dword [ebp - 0x2c]
and eax, 0
or edx, eax
mov dword [ebp - 0x44], edx
movzx ecx, byte [ebp - 0x30]
xor edx, edx
sub edx, ecx
and edx, 0x930
mov dword [ebp - 0x20], edx
mov esp, ebp
pop ebp
ret