Function at 0x10026586
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007fcc2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002661f
push 2
lea ecx, [ebp - 0x60]
call fcn.10017e9c
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
jmp 0x100265c7
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jge 0x100265dd
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x60]
call fcn.10017f3a
and dword [eax], 0
jmp 0x100265c0
push 1
lea ecx, [ebp - 0x60]
call fcn.10017f3a
mov dword [eax], 0xfffffffd
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x10026601
push 0
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.10017f1e
push 0x1bac
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x100267ba
mov dword [ebp - 0x20], 0
jmp 0x1002662f
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jge 0x10026642
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x78], 5
jmp 0x10026628
mov byte [ebp - 0xe], 0
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x10026658
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 4
pop eax
shl eax, 1
mov dword [ebp + eax - 0x78], 0xb90da115
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x18], 0x2c03342e
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x14], 0xb6182eac
mov dword [ebp - 0x18], 0
jmp 0x1002669c
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffe3
jge 0x100266b2
mov dword [ebp - 0x2c], 0x63126ff2
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x2c], eax
jmp 0x10026695
cmp dword [ebp - 0x30], 0
je 0x100266c7
cmp dword [ebp - 0x14], 0
je 0x100266c7
mov dword [ebp - 0x34], 1
jmp 0x100266cb
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
je 0x100266e2
mov dword [ebp - 0x38], 0xbbd0a708
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
jmp 0x10026751
push 2
lea ecx, [ebp - 0x6c]
call fcn.10017e9c
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], 0
jmp 0x10026703
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 2
jge 0x1002671c
push dword [ebp - 0x24]
lea ecx, [ebp - 0x6c]
call fcn.10017f3a
mov dword [eax], 0xfffffffa
jmp 0x100266fc
mov dword [ebp - 0x14], 0
jmp 0x1002672c
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jge 0x10026745
push dword [ebp - 0x14]
lea ecx, [ebp - 0x6c]
call fcn.10017f3a
mov dword [eax], 0xfffffffd
jmp 0x10026725
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.10017f1e
mov dword [ebp - 0x28], 0xfffffff8
mov dword [ebp - 0x28], 1
jmp 0x10026768
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 7
jg 0x10026796
mov byte [ebp - 0xf], 0
movzx eax, byte [ebp - 0xf]
test eax, eax
je 0x10026782
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov byte [ebp - 0x10], 0
movzx eax, byte [ebp - 0x10]
test eax, eax
je 0x10026794
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
jmp 0x10026761
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret