Function at 0x10027076
Capabilities:
Connect pipe

Disassembly:
mov eax, 0x100697ad
call fcn.10068858
sub esp, 0xa8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x3c], ebx
cmp dword [ebx], 0
je 0x1002764a
push dword [ebx]
push 0
push dword [ebx + 4]
call fcn.1001f168
add esp, 0xc
lea ecx, [ebp - 0x80]
push 4
call fcn.1001f933
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x28], 0x22ba3946
mov dword [ebp - 0x1c], edx
jmp 0x100270d1
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x80]
mov dword [eax + ecx*4], 0xfffffff6
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jl 0x100270c1
push 2
pop esi
push 1
mov dword [ebp - 0x28], edx
pop edi
jmp 0x100271ed
mov dword [ebp - 0x14], 0xfc07e17f
mov dword [ebp - 0x1c], edx
jmp 0x10027102
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x90], 0x8e92eda8
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], esi
jl 0x100270f1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 3
jg 0x100271c1
push 4
lea ecx, [ebp - 0x68]
call fcn.1001f933
mov dword [ebp - 0x1c], 0
jmp 0x10027137
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x68]
mov dword [eax + ecx*4], 0x6c9cd49f
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jl 0x10027127
mov byte [ebp - 0x15], 0
cmp byte [ebp - 0x15], 0
je 0x1002715d
push edi
push 0x1b00
push 0x1803
push 0xeab
call dword [sym.imp.USER32.dll_SetScrollPos]
mov eax, dword [ebp - 0x14]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x80]
cmp dword [esi + eax*4], 1
setl dl
xor eax, eax
cmp dword [esi + ecx*4], 0xfffffff9
setle al
xor ecx, ecx
cmp eax, edx
mov eax, dword [ebp - 0x68]
setge cl
xor edx, edx
cmp ecx, dword [eax + 8]
lea ecx, [ebp - 0x68]
setge dl
xor eax, eax
cmp edx, dword [esi + edi*4]
setg al
mov dword [ebp - 0x90], eax
call fcn.1001f9b5
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
push 1
pop edi
jle 0x10027114
push 2
xor edx, edx
pop esi
mov dword [ebp - 0x14], 0xffffffe7
jmp 0x100271e4
mov byte [ebp - 0x15], dl
cmp byte [ebp - 0x15], 0
je 0x100271e1
push edx
push 0x1f2b
call dword [sym.imp.USER32.dll_SetWindowTextA]
xor edx, edx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 6
jge 0x100271ca
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 3
jle 0x100270e5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.1001f9b5
push dword [ebx + 4]
call fcn.10050627
pop ecx
push edi
lea ecx, [ebp - 0x5c]
call fcn.1001f933
mov dword [ebp - 4], edi
xor edx, edx
mov dword [ebp - 0x24], 0x1897a4a
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x2c], 0x3ae5
mov dword [ebp - 0x1c], 0x11e9
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x14], edx
jmp 0x10027259
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x5c]
mov dword [eax + ecx*4], 0x2799
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x10027249
mov dword [ebp - 0x14], edx
jmp 0x10027274
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x88], 0xd76c132d
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x10027263
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], edx
jg 0x100273cc
mov dword [ebp - 0x28], 0x101a
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edx
jmp 0x100272a1
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x98], edx
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], esi
jl 0x10027294
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x28]
cmp edx, eax
sete cl
xor ebx, ebx
cmp ecx, edx
setge bl
xor edx, edx
sub ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x5c]
imul ebx, dword [eax]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], edx
jl 0x100273bd
xor ebx, ebx
push 4
lea ecx, [ebp - 0x74]
call fcn.1001f933
mov dword [ebp - 0x50], 0xca307758
mov dword [ebp - 0x14], ebx
jmp 0x100272fe
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x40], ebx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x100272f4
mov dword [ebp - 0x14], ebx
jmp 0x10027318
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x74]
mov dword [eax + ecx*4], 0xc2a4e630
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x10027308
mov dword [ebp - 0x28], ebx
jmp 0x100273a1
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x14], 0xffff
mov dword [ebp - 0x34], 0x771fda66
cmp dword [ebp - 0x1c], ebx
jne 0x10027346
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp - 0x74]
mov dword [eax + 0xc], edi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x50]
sub edx, eax
neg edx
sbb edx, edx
inc edx
sub edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
setle cl
xor edx, edx
add ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x40]
cmp ecx, 0x67bb
setle dl
xor ecx, ecx
cmp eax, edx
setl cl
add ecx, 0x9896
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], ebx
jle 0x10027323
lea ecx, [ebp - 0x74]
call fcn.1001f9b5
dec dword [ebp - 0x20]
jns 0x100272de
xor edx, edx
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], edx
jle 0x10027285
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], 0xffffffea
jmp 0x1002743a
mov dword [ebp - 0x24], 0xfffffffb
mov dword [ebp - 0x2c], edx
inc dword [ebp - 0x24]
jne 0x10027411
cmp dword [ebp - 0x20], edx
je 0x1002740a
mov eax, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
inc ecx
cmp eax, ecx
mov eax, dword [ebp - 0x30]
setge dl
sub eax, edx
xor edx, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, edx
cmp dword [ebp - 0x2c], edx
je 0x10027413
mov ecx, edi
xor eax, eax
cmp ecx, 0x537e
sete al
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x15], dl
cmp byte [ebp - 0x15], 0
je 0x10027437
push edx
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
xor edx, edx
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x1d
jle 0x100273d5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.1001f9b5
and dword [ebx + 4], 0
lea ecx, [ebp - 0x4c]
push 3
call fcn.1001f933
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
jmp 0x1002747d
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x4c]
mov dword [eax + ecx*4], 0x10c93b4e
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x1002746d
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], esi
jg 0x1002763f
mov dword [ebp - 0x14], 0x33efc07e
mov dword [ebp - 0x14], 0
jmp 0x10027547
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x20], 0xc0bf90a2
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], esi
jg 0x10027515
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0xb15b45be
mov dword [ebp - 0x20], 0x49cec79e
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x4c]
cmp dword [eax], 0
jne 0x100274e6
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [edx + 8]
imul ecx, dword [eax]
mov dword [ebp - 0x38], ecx
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], esi
jle 0x100274c3
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x20], 0
jl 0x10027544
mov byte [ebp - 0x15], 0
cmp byte [ebp - 0x15], 0
je 0x10027530
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + eax*4]
mov dword [ecx + edx*4], eax
dec dword [ebp - 0x20]
jns 0x1002751e
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jle 0x100274a6
mov dword [ebp - 0x14], 0
jmp 0x10027627
mov dword [ebp - 0x20], 0x1c69
cmp dword [ebp - 0x20], 0x1dca
jle 0x100275f1
xor edi, edi
mov dword [ebp - 0x1c], edi
xor esi, esi
mov dword [ebp - 0x2c], esi
mov ecx, esi
mov dword [ebp - 0x34], edi
xor ebx, ebx
sar edi, cl
mov eax, ebx
mov esi, 0x4e46
mov dword [ebp - 0x30], eax
and eax, edi
lea ecx, [ebp - 0xb0]
cdq
push edx
push eax
call fcn.1000a2b4
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100275a7
mov eax, dword [eax]
push eax
call fcn.100504bf
pop ecx
push 0
push 1
lea ecx, [ebp - 0xb0]
call fcn.1001ff63
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
dec esi
jne 0x1002758d
inc ebx
cmp ebx, 0x40d9
jl 0x10027583
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x2c], esi
cmp esi, 0x3d9e
jl 0x1002757a
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, 0x56e1
jl 0x10027575
push 2
pop esi
mov byte [ebp - 0x15], 0
cmp byte [ebp - 0x15], 0
je 0x1002760d
push 0x5d1
push 0
push 0xc3f
call dword [sym.imp.GDI32.dll_Polygon]
cmp dword [ebp - 0x20], 0x18a1
jge 0x10027621
push 0x10008040
call fcn.100504bf
pop ecx
mov dword [ebp - 4], esi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jle 0x1002755c
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], esi
jle 0x10027493
mov ebx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x4c]
call fcn.1001f9b5
and dword [ebx], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret