Function at 0x1002f652
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008e123
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002f6ad
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
movzx eax, byte [eax]
test eax, eax
je 0x1002f6a8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
jmp 0x100301cc
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x4c], 0x33fd52a4
mov dword [ebp - 0x188], 0xffffffff
mov dword [ebp - 0x10], 0
jmp 0x1002f6ea
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x15
jg 0x1002fa06
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x2c], 0x3205f5a2
mov dword [ebp - 0x12c], 0xffff
cmp dword [ebp - 0x10], 0
jne 0x1002f7ac
cmp dword [ebp - 0x18], 0xffffffff
jle 0x1002f72e
mov eax, 0xde637c5b
test eax, eax
jne 0x1002f72e
and dword [ebp - 0xf0], 0
jmp 0x1002f738
mov dword [ebp - 0xf0], 1
cmp dword [ebp - 0xf0], 1
jne 0x1002f755
cmp dword [ebp - 0x10], 0
jne 0x1002f755
or eax, 0xffffffff
jne 0x1002f755
and dword [ebp - 0x114], 0
jmp 0x1002f75f
mov dword [ebp - 0x114], 1
cmp dword [ebp - 0x114], 0xed9
jge 0x1002f777
mov dword [ebp - 0xf8], 1
jmp 0x1002f77e
and dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0xf8]
add eax, 0x581471ed
cmp eax, dword [ebp - 0x18]
jne 0x1002f797
mov dword [ebp - 0x7c], 1
jmp 0x1002f79b
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x7c], eax
jne 0x1002f7ac
and dword [ebp - 0xe4], 0
jmp 0x1002f7b6
mov dword [ebp - 0xe4], 1
imul eax, dword [ebp - 0xe4], 0x5dea
cmp dword [ebp - 0x18], eax
je 0x1002f7d1
mov dword [ebp - 0x128], 1
jmp 0x1002f7d8
and dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x4c], eax
je 0x1002f7f5
mov dword [ebp - 0x84], 1
jmp 0x1002f7fc
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x84], eax
jg 0x1002f813
mov dword [ebp - 0xec], 1
jmp 0x1002f81a
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x1002f838
cmp dword [ebp - 0x18], 0
jne 0x1002f838
and dword [ebp - 0x8c], 0
jmp 0x1002f842
mov dword [ebp - 0x8c], 1
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x8c], eax
jge 0x1002f85d
cmp dword [ebp - 0x2c], 0
je 0x1002f858
jmp 0x1002fa06
jmp 0x1002f9f1
mov dword [ebp - 0x3c], 0
jmp 0x1002f86d
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 1
jge 0x1002f883
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x13c], 0x97d6a583
jmp 0x1002f866
mov eax, 0x788a
test eax, eax
je 0x1002f89e
cmp dword [ebp - 0x4c], 0
je 0x1002f89e
mov dword [ebp - 0xf4], 1
jmp 0x1002f8a5
and dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0xf4], eax
jle 0x1002f8bc
mov dword [ebp - 0x94], 1
jmp 0x1002f8c3
and dword [ebp - 0x94], 0
cmp dword [ebp - 0x94], 0xffffffff
je 0x1002f8d8
mov dword [ebp - 0xfc], 1
jmp 0x1002f8df
and dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0xfc]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x10]
jl 0x1002f8f9
mov dword [ebp - 0x9c], 1
jmp 0x1002f900
and dword [ebp - 0x9c], 0
cmp dword [ebp - 0x9c], 1
jne 0x1002f915
mov dword [ebp - 0x104], 1
jmp 0x1002f91c
and dword [ebp - 0x104], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x104]
jle 0x1002f933
mov dword [ebp - 0x10c], 1
jmp 0x1002f93a
and dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x10c], eax
je 0x1002f951
mov dword [ebp - 0xa8], 1
jmp 0x1002f958
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0xa8], eax
jle 0x1002f96f
mov dword [ebp - 0xe0], 1
jmp 0x1002f976
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0xe0], eax
jle 0x1002f98d
mov dword [ebp - 0xb0], 1
jmp 0x1002f994
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0xb0]
add eax, dword [ebp - 0x2c]
jne 0x1002f9b2
cmp dword [ebp - 0x4c], 0
jne 0x1002f9b2
and dword [ebp - 0x108], 0
jmp 0x1002f9bc
mov dword [ebp - 0x108], 1
cmp dword [ebp - 0x108], 0xfff8
jb 0x1002f9d4
mov dword [ebp - 0xb8], 1
jmp 0x1002f9db
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0xb8]
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x13c], eax
push 0
lea eax, [ebp - 0x12c]
push eax
call fcn.1002f412
pop ecx
pop ecx
jmp 0x1002f6e3
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0x358c
push 0
call fcn.1002905c
add esp, 0x10
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x34], 0
jmp 0x1002fa34
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffe6
jge 0x1002fa8b
mov byte [ebp - 0x1c], 0
movzx eax, byte [ebp - 0x1c]
test eax, eax
je 0x1002fa5a
push 0
push 0x2cfb
push 0x7456
call fcn.1002f44f
add esp, 0xc
mov byte [ebp - 0x1b], 0
movzx eax, byte [ebp - 0x1b]
test eax, eax
je 0x1002fa89
push 0x1513
push 0x1c29
push 0x19f4
push 0x74ca
push 0
push 0x765b
call fcn.10031d6c
add esp, 0x18
jmp 0x1002fa2d
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0
jne 0x100301cc
push 1
lea ecx, [ebp - 0x58]
call fcn.10018753
and dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x2c39d5b6
mov dword [ebp - 0xa4], 0xfffffff8
push 0x6215
push 0
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x58]
push eax
push 0x2640
push 0x450
call fcn.10028e6e
add esp, 0x18
push 0
lea ecx, [ebp - 0x58]
call fcn.100187f4
mov dword [eax], 0xffffffe2
jmp 0x1002fb0d
push 0
lea ecx, [ebp - 0x58]
call fcn.100187f4
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xe8]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x58]
call fcn.100187f4
cmp dword [eax], 0x13
jne 0x1002fe3e
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x164], 0xb88cdf8a
mov dword [ebp - 0x160], 0xb88cdf8a
mov dword [ebp - 0x15c], 0xb88cdf8a
mov dword [ebp - 0x158], 0xb88cdf8a
lea ecx, [ebp - 0x61]
call fcn.100094a3
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.10018803
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x170]
call fcn.100187b2
mov byte [ebp - 4], 1
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x1002fba2
push 0x1ab7
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
lea ecx, [ebp - 0x58]
call fcn.100187f4
cmp dword [eax], 0
je 0x1002fdbc
push 4
lea ecx, [ebp - 0x150]
call fcn.10018753
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], 0
jmp 0x1002fbd6
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jge 0x1002fbec
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0x1b0], 0
jmp 0x1002fbcf
lea eax, [ebp - 0x30]
push eax
push 1
push 0x73e3
push 0x1227
lea eax, [ebp - 0x150]
push eax
call fcn.10028dea
add esp, 0x14
cmp dword [ebp - 0x24], 0x73417203
jle 0x1002fc30
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x1b0], 0
je 0x1002fc30
mov dword [ebp - 0xc0], 1
jmp 0x1002fc37
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0xc0], eax
jl 0x1002fc51
cmp dword [ebp - 0x24], 0
jne 0x1002fc51
and dword [ebp - 0x124], 0
jmp 0x1002fc5b
mov dword [ebp - 0x124], 1
mov eax, 0xc248
test eax, eax
je 0x1002fc70
mov dword [ebp - 0x100], 1
jmp 0x1002fc77
and dword [ebp - 0x100], 0
push 0
lea ecx, [ebp - 0x58]
call fcn.100187f4
mov ecx, dword [ebp - 0x100]
cmp ecx, dword [eax]
je 0x1002fc97
mov dword [ebp - 0xc8], 1
jmp 0x1002fc9e
and dword [ebp - 0xc8], 0
cmp dword [ebp - 0xc8], 0xead9bacc
je 0x1002fcb3
mov dword [ebp - 0x60], 1
jmp 0x1002fcb7
and dword [ebp - 0x60], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x60]
mov dword [ebp + eax - 0x1b0], ecx
cmp dword [ebp - 0x60], 0
jne 0x1002fcdc
mov eax, 0x9b8fa48a
test eax, eax
jne 0x1002fcdc
and dword [ebp - 0x74], 0
jmp 0x1002fce3
mov dword [ebp - 0x74], 1
push 0
lea ecx, [ebp - 0x58]
call fcn.100187f4
mov eax, dword [eax]
cmp eax, dword [ebp - 0x74]
jg 0x1002fd00
mov dword [ebp - 0xd0], 1
jmp 0x1002fd07
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x14], eax
jle 0x1002fd24
mov dword [ebp - 0x110], 1
jmp 0x1002fd2b
and dword [ebp - 0x110], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x110], eax
jle 0x1002fd42
mov dword [ebp - 0xd8], 1
jmp 0x1002fd49
and dword [ebp - 0xd8], 0
push 2
lea ecx, [ebp - 0x150]
call fcn.100187f4
mov ecx, dword [ebp - 0xd8]
cmp ecx, dword [eax]
jne 0x1002fd6c
mov dword [ebp - 0xa0], 1
jmp 0x1002fd73
and dword [ebp - 0xa0], 0
push 2
lea ecx, [ebp - 0x170]
call fcn.100187f4
mov ecx, dword [ebp - 0xa0]
mov dword [eax], ecx
lea eax, [ebp - 0x58]
push eax
push 1
push 0x7c82
push 0x3d51
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10028e6e
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x150]
call fcn.100187d8
jmp 0x1002fe2a
mov dword [ebp - 0x130], 4
mov dword [ebp - 0x138], 0xb3883faa
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1002fdf0
push 0x5870
push 0x26bc
push 0
call fcn.1002915e
add esp, 0xc
push 0x3163
push 0x7809
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x170]
push eax
push 0x2d94
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.1003232c
add esp, 0x28
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x170]
call fcn.100187d8
jmp 0x1002faec
mov dword [ebp - 0x14], 0xd
jmp 0x1002fe4e
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x1d
jle 0x1002ffa8
mov dword [ebp - 0x44], 0x7913da51
push 1
lea ecx, [ebp - 0x70]
call fcn.10018753
mov byte [ebp - 4], 3
mov dword [ebp - 0xc4], 0x1ba05761
mov dword [ebp - 0x140], 0x2ce4
lea eax, [ebp - 0x70]
push eax
push 1
lea eax, [ebp - 0x180]
push eax
push 0xc17
push 0x6704
call fcn.10028f0c
add esp, 0x14
push 0
lea ecx, [ebp - 0x58]
call fcn.100187f4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xef6e
jge 0x1002feda
mov dword [ebp - 0xac], 1
jmp 0x1002fee1
and dword [ebp - 0xac], 0
push 0
lea ecx, [ebp - 0x70]
call fcn.100187f4
mov ecx, dword [ebp - 0xac]
cmp ecx, dword [eax]
jl 0x1002ff01
mov dword [ebp - 0xb4], 1
jmp 0x1002ff08
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xc4]
cmp dword [ebp - 0xb4], eax
je 0x1002ff2e
push 0
lea ecx, [ebp - 0x70]
call fcn.100187f4
cmp dword [eax], 0
jne 0x1002ff2e
and dword [ebp - 0xbc], 0
jmp 0x1002ff38
mov dword [ebp - 0xbc], 1
push 0
lea ecx, [ebp - 0x58]
call fcn.100187f4
mov ecx, dword [ebp - 0xbc]
mov dword [eax], ecx
push 0
lea ecx, [ebp - 0x70]
call fcn.100187f4
push 0
lea ecx, [ebp - 0x70]
call fcn.100187f4
cmp dword [ebp - 0xc4], 0
jne 0x1002ff71
push 0
lea ecx, [ebp - 0x70]
call fcn.100187f4
push 0
lea ecx, [ebp - 0x70]
call fcn.100187f4
mov esi, dword [ebp - 0x14]
add esi, 0xea0d
push 0
lea ecx, [ebp - 0x70]
call fcn.100187f4
imul esi, dword [eax]
mov dword [ebp - 0x140], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.100187d8
jmp 0x1002fe47
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.100187d8
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x24]
and eax, 0x40
je 0x100301af
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0xd4], 0xdedfc3e8
mov dword [ebp - 0x134], 0x9e56e623
mov dword [ebp - 0x28], 0
jmp 0x1002ffee
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffec
jge 0x1003019d
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x48], 9
jmp 0x1003000f
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x17
je 0x10030198
mov dword [ebp - 0x20], 0xd3f46721
mov dword [ebp - 0x78], 0x26d8d38
push 3
lea ecx, [ebp - 0x17c]
call fcn.10018753
mov dword [ebp - 4], 4
push 0
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.1002c976
add esp, 0xc
mov dword [ebp - 0x20], 0x1b
jmp 0x10030063
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x1b
jge 0x10030184
mov dword [ebp - 0xcc], 0xbb6b
mov dword [ebp - 0x11c], 0x7d19
mov dword [ebp - 0x38], 0
jmp 0x10030091
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 2
jge 0x100300a7
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0x190], 0x3672d714
jmp 0x1003008a
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0xcc], eax
jne 0x100300be
mov dword [ebp - 0xdc], 1
jmp 0x100300c5
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0xcc]
cmp dword [ebp - 0x20], eax
jle 0x100300dc
mov dword [ebp - 0x120], 1
jmp 0x100300e3
and dword [ebp - 0x120], 0
xor eax, eax
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x1a0], eax
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x1003011a
mov dword [ebp - 0x88], 1
jmp 0x10030121
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x80]
mov dword [ebp + eax - 0x190], ecx
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x20]
je 0x1003016c
push 1
lea ecx, [ebp - 0x17c]
call fcn.100187f4
cmp dword [eax], 0
je 0x1003016c
mov dword [ebp - 0x90], 1
jmp 0x10030173
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x134], eax
jmp 0x1003005c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x17c]
call fcn.100187d8
jmp 0x10030008
jmp 0x1002ffe7
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax + 0x20]
mov dword [ecx], eax
jmp 0x100301cc
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x24]
and eax, 0x80
je 0x100301cc
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax + 0x24]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret