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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1979
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x100eedbc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x100a75d9
mov eax, 0x80070057
jmp 0x100a7a16
xor ebx, ebx
push ebx
push 0xffffffffffffffff
push 4
push 4
push 1
push ebx
push 0x40000003
push 0x1002d2e0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x100a7607
mov eax, 0x80004005
jmp 0x100a7a16
xorps xmm0, xmm0
mov dword [ebp - 0x18], ebx
sub esp, 0xc
movlpd qword [ebp - 0x3c], xmm0
xor edx, edx
movlpd qword [ebp - 0x34], xmm0
lea ecx, [ebp - 0x18]
call fcn.10052ea7
mov esi, eax
test esi, esi
jns 0x100a7667
mov eax, dword [0x100ec1d0]
cmp eax, 0x100ec1d0
je 0x100a7650
test byte [eax + 0x1c], 1
je 0x100a7650
push esi
push dword [eax + 0x14]
mov edx, 0x1002d4fc
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.10052045
cmp dword [ebp - 0x18], ebx
je 0x100a7a0b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100a7a0b
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
push 0x20019
push 0x1002d328
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], ebx
call fcn.10053af9
mov edi, eax
test edi, edi
jns 0x100a76d5
mov ecx, dword [0x100ec1d0]
cmp ecx, 0x100ec1d0
je 0x100a76b5
test byte [ecx + 0x1c], 1
je 0x100a76b5
push edi
push dword [ecx + 0x14]
mov edx, 0x1002d4fc
push dword [ecx + 0x10]
push 0xb
pop ecx
call fcn.10052045
cmp dword [ebp - 0x18], ebx
je 0x100a76c3
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x100a76ce
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
jmp 0x100a7a0b
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push ecx
push ecx
push eax
mov edx, 0x10012134
mov dword [ebp - 0x10], ebx
mov ecx, edi
call fcn.10053f37
mov ebx, eax
test ebx, ebx
jns 0x100a7728
mov ecx, dword [0x100ec1d0]
cmp ecx, 0x100ec1d0
je 0x100a79e4
test byte [ecx + 0x1c], 1
je 0x100a79e4
push ebx
push dword [ecx + 0x14]
mov edx, 0x1002d4fc
push dword [ecx + 0x10]
push 0xc
pop ecx
call fcn.10052045
jmp 0x100a79e4
push dword [ebp - 0x10]
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0x1002d410
push eax
call fcn.100538da
mov ebx, eax
add esp, 0xc
test ebx, ebx
jns 0x100a777b
mov ecx, dword [0x100ec1d0]
cmp ecx, 0x100ec1d0
je 0x100a79d5
test byte [ecx + 0x1c], 1
je 0x100a79d5
push ebx
push dword [ecx + 0x14]
mov edx, 0x1002d4fc
push dword [ecx + 0x10]
push 0xd
pop ecx
call fcn.10052045
jmp 0x100a79d5
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
and dword [ebp - 0x14], 0
sub esp, 0x20
call fcn.10052749
mov ebx, eax
test ebx, ebx
jns 0x100a77c8
mov ecx, dword [0x100ec1d0]
cmp ecx, 0x100ec1d0
je 0x100a79c6
test byte [ecx + 0x1c], 1
je 0x100a79c6
push ebx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xe
mov edx, 0x1002d4fc
pop ecx
call fcn.10052045
jmp 0x100a79c6
and dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 0x24]
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push eax
push 2
push 0
call fcn.1005281e
mov ebx, eax
test ebx, ebx
jns 0x100a7813
mov ecx, dword [0x100ec1d0]
cmp ecx, 0x100ec1d0
je 0x100a79c6
test byte [ecx + 0x1c], 1
je 0x100a79c6
push ebx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xf
jmp 0x100a77b8
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x100a7911
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070217
je 0x100a78b6
cmp ebx, 0x800703e5
je 0x100a7878
test ebx, ebx
jns 0x100a78b6
mov eax, dword [0x100ec1d0]
cmp eax, 0x100ec1d0
je 0x100a79c6
test byte [eax + 0x1c], 1
je 0x100a79c6
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x11
jmp 0x100a77b8
mov ecx, dword [ebp - 0x2c]
mov edx, 0x1388
call fcn.10052f3e
test al, al
je 0x100a78b6
mov ebx, 0x800705b4
mov eax, dword [0x100ec1d0]
cmp eax, 0x100ec1d0
je 0x100a79c6
test byte [eax + 0x1c], 1
je 0x100a79c6
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10
jmp 0x100a77b8
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push 0
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x100a7911
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x100a7911
mov eax, dword [0x100ec1d0]
cmp eax, 0x100ec1d0
je 0x100a79c6
test byte [eax + 0x1c], 1
je 0x100a79c6
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x13
jmp 0x100a77b8
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
call fcn.100533ef
mov ebx, eax
test ebx, ebx
jns 0x100a794d
mov ecx, dword [0x100ec1d0]
cmp ecx, 0x100ec1d0
je 0x100a79c6
test byte [ecx + 0x1c], 1
je 0x100a79c6
push ebx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x14
jmp 0x100a77b8
mov ecx, dword [ebp - 0x14]
mov edx, 0x1388
call fcn.10052f3e
test al, al
je 0x100a7973
push 0x5b4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0x800705b4
jmp 0x100a79c6
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x100a79b5
call fcn.10054b37
mov ebx, eax
test ebx, ebx
jns 0x100a79b5
mov ecx, dword [0x100ec1d0]
cmp ecx, 0x100ec1d0
je 0x100a79c6
test byte [ecx + 0x1c], 1
je 0x100a79c6
push ebx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x15
jmp 0x100a77b8
mov eax, dword [ebp - 0x24]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp dword [ebp - 0x14], 0
je 0x100a79d5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x100a79e4
push dword [ebp - 0x18]
call fcn.100c1152
pop ecx
cmp dword [ebp - 0x10], 0
je 0x100a79f3
push dword [ebp - 0x10]
call fcn.100c1152
pop ecx
test edi, edi
je 0x100a79fe
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x100a7a09
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret