Function at 0x4051a0
Capabilities:
Create pipe
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x766594]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0x3bd
mov ecx, dword [0x7665b4]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x24], 0x48
mov dword [ebp - 0x18], 0x203
mov dword [ebp - 0x20], 0xdc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_DrawIcon]
mov dword [ebp - 0x20], eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [ebp - 0x1c], eax
xor edx, edx
sub edx, dword [ebp - 0x14]
or edx, dword [ebp - 0x28]
movzx eax, byte [ebp - 8]
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
xor eax, ecx
or edx, eax
movzx eax, byte [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
or edx, ecx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
add edx, 0x958
sub edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x10]
and edx, eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x28]
shl ecx, 0x80
or edx, ecx
mov byte [ebp - 8], dl
call fcn.00405370
movzx edx, byte [ebp - 0x1c]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
movzx ecx, byte [ebp - 0xc]
add eax, ecx
sub eax, dword [ebp - 0x18]
movzx ecx, byte [ebp - 0xc]
add eax, ecx
movzx ecx, word [ebp - 0x14]
add eax, ecx
movzx ecx, byte [ebp - 0xc]
and eax, ecx
or edx, eax
mov dword [ebp - 4], edx
movzx edx, byte [ebp - 0x10]
movzx eax, byte [ebp - 0xc]
sub edx, eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 4]
and ecx, 0
and ecx, 0x47e
or edx, ecx
or edx, dword [ebp - 0xc]
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jae 0x405322
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
ja 0x405322
movzx ecx, byte [ebp - 0x24]
sub ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 8]
and ecx, edx
or ecx, 0x208
movzx eax, byte [ebp - 0x14]
add eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
or ecx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x10]
je 0x4052ff
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x1c]
jae 0x4052ff
push str.kodlhot
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x24], eax
jmp 0x405320
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1c]
movzx ecx, byte [ebp - 8]
add ecx, dword [ebp - 8]
and eax, ecx
or eax, dword [ebp - 4]
movzx edx, byte [ebp - 8]
and edx, dword [ebp - 0xc]
and edx, dword [ebp - 8]
or eax, edx
mov dword [ebp - 0x20], eax
jmp 0x40533f
mov eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x10]
and ecx, dword [ebp - 0x28]
movzx edx, word [ebp - 4]
and ecx, edx
or eax, ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0x43
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov dword [ebp - 0x20], eax
push 0
push 0
push 3
push 0
push 1
push 1
push str.geiuietedsen
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
mov esp, ebp
pop ebp
ret