Function at 0x10045d3b
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10076dc2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push esi
movzx eax, byte [ebp + 0x2c]
test eax, eax
je 0x10045dff
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc0], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x90]
movzx eax, byte [eax]
test eax, eax
je 0x10045dda
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
jmp 0x10045db9
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jl 0x10045dd8
mov dword [ebp - 0xa0], 0xffffffff
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0xa0], eax
jmp 0x10045dae
jmp 0x10045dfa
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
jmp 0x100461ec
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x2c], 0xf5ebec5
mov dword [ebp - 0x28], 0x8a52b4b5
mov dword [ebp - 0x54], 5
mov dword [ebp - 0x14], 0xfffffff6
mov dword [ebp - 0x6c], 0
push 1
lea ecx, [ebp - 0xdc]
call fcn.1001ae5e
and dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
jmp 0x10045e80
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jge 0x10045e9c
push dword [ebp - 0x24]
lea ecx, [ebp - 0xdc]
call fcn.1001af45
mov dword [eax], 1
jmp 0x10045e79
cmp dword [ebp - 0x10], 0
je 0x10046037
mov dword [ebp - 0x18], 0x8d020bd2
mov dword [ebp - 0x80], 0x695cd1d2
mov dword [ebp - 0xc8], 0x670fc244
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x28], eax
jne 0x10045ed8
mov dword [ebp - 0x84], 1
jmp 0x10045edf
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x84]
jge 0x10045ef9
mov dword [ebp - 0x40], 1
jmp 0x10045efd
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x18]
jg 0x10045f14
mov dword [ebp - 0x8c], 1
jmp 0x10045f1b
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x8c], eax
je 0x10045f38
cmp dword [ebp - 0x18], 0
je 0x10045f38
mov dword [ebp - 0xd0], 1
jmp 0x10045f3f
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0x80], 0xa4d9
jne 0x10045f63
mov dword [ebp - 0x48], 1
jmp 0x10045f67
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 8
ja 0x10045f79
mov dword [ebp - 0x88], 1
jmp 0x10045f80
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x88]
jne 0x10045f94
mov dword [ebp - 0x50], 1
jmp 0x10045f98
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x50], eax
jne 0x10045fa9
mov dword [ebp - 0x70], 1
jmp 0x10045fad
and dword [ebp - 0x70], 0
cmp dword [ebp - 0x70], 0x4481
jne 0x10045fc2
mov dword [ebp - 0xb0], 1
jmp 0x10045fc9
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0x18], 0xffff
jbe 0x10045fdb
mov dword [ebp - 0x58], 1
jmp 0x10045fdf
and dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0x305aba9a
jge 0x10045ff1
cmp dword [ebp - 0xc8], 0
jne 0x10045ffd
cmp dword [ebp - 0x10], 0
jne 0x10045ffd
and dword [ebp - 0x60], 0
jmp 0x10046004
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x60], eax
jge 0x10046015
mov dword [ebp - 0x78], 1
jmp 0x10046019
and dword [ebp - 0x78], 0
cmp dword [ebp - 0x78], 0xfffffffd
jne 0x10046028
mov dword [ebp - 0x68], 1
jmp 0x1004602c
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x54], eax
jmp 0x10046194
mov dword [ebp - 0x44], 0xfffffffd
mov dword [ebp - 0x64], 0xdad8be77
mov dword [ebp - 0x10], 0
jmp 0x10046055
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3a
jg 0x1004613e
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x94], 0xb395b91
cmp dword [ebp - 0x28], 0
jne 0x10046082
cmp dword [ebp - 0x44], 0
jne 0x10046082
and dword [ebp - 0x74], 0
jmp 0x10046089
mov dword [ebp - 0x74], 1
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 8
jae 0x100460a4
mov eax, 0x3954
test eax, eax
jne 0x100460a4
and dword [ebp - 0x4c], 0
jmp 0x100460ab
mov dword [ebp - 0x4c], 1
cmp dword [ebp - 0x4c], 0xffffffff
jae 0x100460ba
mov dword [ebp - 0x34], 1
jmp 0x100460be
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x28]
jl 0x100460e7
mov dword [ebp - 0xb8], 1
jmp 0x100460ee
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x74], eax
jg 0x100460ff
mov dword [ebp - 0x7c], 1
jmp 0x10046103
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x7c], eax
jge 0x10046114
mov dword [ebp - 0x38], 1
jmp 0x10046118
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x38], eax
jl 0x10046129
mov dword [ebp - 0x3c], 1
jmp 0x1004612d
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
sub eax, 6
mov dword [ebp - 0x94], eax
jmp 0x1004604e
mov dword [ebp - 0x14], 0
jmp 0x1004614e
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x10046194
push dword [ebp - 0x14]
lea ecx, [ebp - 0xdc]
call fcn.1001af45
mov esi, eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0xdc]
call fcn.1001af45
mov ecx, dword [esi]
mov dword [eax], ecx
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x10046192
push 0x14dd
push 0x18e5
call dword [sym.imp.GDI32.dll_SetPolyFillMode]
jmp 0x10046147
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x100461aa
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.1001af37
push dword [ebp - 0x9c]
push dword [ebp - 0xa4]
push dword [ebp - 0xac]
push dword [ebp - 0xb4]
push 0
push dword [ebp - 0xbc]
push 0x41d9
push dword [ebp - 0xc4]
call fcn.10029abc
add esp, 0x20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret