Function at 0x10099300
Capabilities:
Connect pipe
Create pipe
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov eax, ecx
mov dword [ebp - 0x18], eax
push esi
push edi
test eax, eax
jne 0x1009931c
mov eax, 0x80070057
jmp 0x10099728
xor ebx, ebx
push ebx
push 0xffffffffffffffff
push 4
push 4
push 1
push ebx
push 0x40000003
push 0x10029330
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x1009934a
mov eax, 0x80004005
jmp 0x10099728
xorps xmm0, xmm0
mov dword [ebp - 0xc], ebx
sub esp, 0xc
movlpd qword [ebp - 0x30], xmm0
xor edx, edx
movlpd qword [ebp - 0x28], xmm0
lea ecx, [ebp - 0xc]
call fcn.1009485e
mov esi, eax
test esi, esi
jns 0x100993aa
mov eax, dword [0x100da1f8]
cmp eax, 0x100da1f8
je 0x10099393
test byte [eax + 0x1c], 1
je 0x10099393
push esi
push dword [eax + 0x14]
mov edx, 0x10029514
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.10093cb0
cmp dword [ebp - 0xc], ebx
je 0x1009971d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1009971d
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
push 0x20019
push 0x100292e8
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], esi
mov dword [ebp - 0xc], ebx
call fcn.10095780
mov edi, eax
test edi, edi
jns 0x10099418
mov ecx, dword [0x100da1f8]
cmp ecx, 0x100da1f8
je 0x100993f8
test byte [ecx + 0x1c], 1
je 0x100993f8
push edi
push dword [ecx + 0x14]
mov edx, 0x10029514
push dword [ecx + 0x10]
push 0xb
pop ecx
call fcn.10093cb0
cmp dword [ebp - 0xc], ebx
je 0x10099406
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10099411
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
jmp 0x1009971d
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push ecx
push ecx
push eax
mov edx, 0x1000d13c
mov dword [ebp - 4], ebx
mov ecx, edi
call fcn.10095bbd
mov ebx, eax
test ebx, ebx
jns 0x1009946b
mov ecx, dword [0x100da1f8]
cmp ecx, 0x100da1f8
je 0x100996f6
test byte [ecx + 0x1c], 1
je 0x100996f6
push ebx
push dword [ecx + 0x14]
mov edx, 0x10029514
push dword [ecx + 0x10]
push 0xc
pop ecx
call fcn.10093cb0
jmp 0x100996f6
push dword [ebp - 4]
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push 0x10029398
push eax
call fcn.1009688a
mov ebx, eax
add esp, 0xc
test ebx, ebx
js 0x100996e7
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 8]
and dword [ebp - 8], 0
sub esp, 0x20
call fcn.10094100
mov ebx, eax
test ebx, ebx
jns 0x100994da
mov ecx, dword [0x100da1f8]
cmp ecx, 0x100da1f8
je 0x100996d8
test byte [ecx + 0x1c], 1
je 0x100996d8
push ebx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xd
mov edx, 0x10029514
pop ecx
call fcn.10093cb0
jmp 0x100996d8
and dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 0x18]
push ecx
push dword [ebp - 8]
lea ecx, [ebp - 0x14]
push eax
push 2
push 0
call fcn.100941d5
mov ebx, eax
test ebx, ebx
jns 0x10099525
mov ecx, dword [0x100da1f8]
cmp ecx, 0x100da1f8
je 0x100996d8
test byte [ecx + 0x1c], 1
je 0x100996d8
push ebx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xe
jmp 0x100994ca
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x10099623
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070217
je 0x100995c8
cmp ebx, 0x800703e5
je 0x1009958a
test ebx, ebx
jns 0x100995c8
mov eax, dword [0x100da1f8]
cmp eax, 0x100da1f8
je 0x100996d8
test byte [eax + 0x1c], 1
je 0x100996d8
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10
jmp 0x100994ca
mov ecx, dword [ebp - 0x20]
mov edx, 0x1388
call fcn.100948e9
test al, al
je 0x100995c8
mov ebx, 0x800705b4
mov eax, dword [0x100da1f8]
cmp eax, 0x100da1f8
je 0x100996d8
test byte [eax + 0x1c], 1
je 0x100996d8
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xf
jmp 0x100994ca
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x10099623
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x10099623
mov eax, dword [0x100da1f8]
cmp eax, 0x100da1f8
je 0x100996d8
test byte [eax + 0x1c], 1
je 0x100996d8
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
jmp 0x100994ca
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.10094caf
mov ebx, eax
test ebx, ebx
jns 0x1009965f
mov ecx, dword [0x100da1f8]
cmp ecx, 0x100da1f8
je 0x100996d8
test byte [ecx + 0x1c], 1
je 0x100996d8
push ebx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x13
jmp 0x100994ca
mov ecx, dword [ebp - 8]
mov edx, 0x1388
call fcn.100948e9
test al, al
je 0x10099685
push 0x5b4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0x800705b4
jmp 0x100996d8
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x100996c7
call fcn.10096a4e
mov ebx, eax
test ebx, ebx
jns 0x100996c7
mov ecx, dword [0x100da1f8]
cmp ecx, 0x100da1f8
je 0x100996d8
test byte [ecx + 0x1c], 1
je 0x100996d8
push ebx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x14
jmp 0x100994ca
mov eax, dword [ebp - 0x18]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp dword [ebp - 8], 0
je 0x100996e7
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x100996f6
push dword [ebp - 0xc]
call fcn.100b408c
pop ecx
cmp dword [ebp - 4], 0
je 0x10099705
push dword [ebp - 4]
call fcn.100b408c
pop ecx
test edi, edi
je 0x10099710
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1009971b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret