Function at 0x1002ed78
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov dword [esp + 0x14], 0xffffffff
mov esi, ecx
mov dword [esp + 0x18], 0xffffffff
push edi
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x20], 0x328c
cmp dword [esp + 0x20], 0x353a
push 1
mov dword [esp + 0x2c], esi
pop ebx
jle 0x1002ee04
call dword [sym.imp.USER32.dll_EndMenu]
xor esi, esi
xor edi, edi
mov eax, edi
lea ecx, [esp + 0x48]
and eax, esi
cdq
push edx
push eax
call fcn.10001a55
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1002eddb
mov eax, dword [eax]
push eax
call fcn.10047d34
pop ecx
push 0
push ebx
lea ecx, [esp + 0x50]
call fcn.10002050
inc edi
cmp edi, 0x6b6b
jl 0x1002edc1
inc esi
cmp esi, 0x581
jl 0x1002edbf
mov esi, dword [esp + 0x28]
mov dword [esp + 0x24], 0x9124c6e1
cmp dword [esp + 0x20], 0x321c
jge 0x1002ee21
push str.pjz_fnop_jvhipog_rtgncmtee_fuu_nczypo_umgpldvh_rgoppdgv
call fcn.10047d34
pop ecx
mov dword [esp + 0x30], 0
xor edx, edx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp eax, 0x1fb9
setne dl
xor ecx, ecx
sub edx, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, edx
setle cl
imul eax, ecx, 0x4b26
sub eax, dword [esp + 0x1c]
neg eax
sbb eax, eax
inc eax
jns 0x1002eeaf
xor eax, eax
mov byte [esp + 0x13], al
cmp byte [esp + 0x13], al
je 0x1002efd3
push eax
push 0x17a8
push eax
push 0x1cc5
push 0x25a6
call dword [sym.imp.GDI32.dll_ExtCreatePen]
jmp 0x1002efd3
mov dword [esp + 0x20], 0xffff
xor edx, edx
mov dword [esp + 0x2c], 0x2ee8b720
mov dword [esp + 0x14], edx
jmp 0x1002eed7
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x34], 9
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 2
jl 0x1002eec7
mov dword [esp + 0x14], edx
jmp 0x1002eef4
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x3c], 0xb8a8
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 3
jl 0x1002eee4
mov byte [esp + 0x13], dl
cmp byte [esp + 0x13], dl
je 0x1002ef0f
push edx
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
xor edx, edx
cmp dword [esp + 0x20], edx
je 0x1002ef1b
cmp dword [esp + 0x18], edx
jne 0x1002ef1d
mov ebx, edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov eax, dword [esp + 0x14]
cmp eax, ebx
setne cl
sub ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x1c]
je 0x1002ef44
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x2c], 0x2bb1
sub eax, 0x4a5bf585
je 0x1002efbc
mov dword [esp + 0x1c], 0x9c94
xor edx, edx
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp eax, ecx
setl dl
cmp edx, 0xe821
jle 0x1002ef89
cmp dword [esp + 0x14], 0
jne 0x1002ef8d
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
xor edx, edx
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
imul ecx, eax, 0xf60
mov eax, dword [esp + 0x38]
cmp ecx, eax
setne dl
mov dword [esp + 0x14], edx
jmp 0x1002efd3
mov byte [esp + 0x13], dl
cmp byte [esp + 0x13], 0
je 0x1002efd3
push edx
push 0x1463
call dword [sym.imp.USER32.dll_BeginPaint]
dec dword [esp + 0x28]
push esi
push 0x15cd
push 0xf5d
call fcn.10043729
pop ecx
pop ecx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret