Function at 0x1008d960
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10147ef6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x148
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10c], edi
lea esi, [edi + 0x20]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x110], esi
call fcn.10113e2b
add esp, 4
test eax, eax
jne 0x1008df5c
mov byte [ebp - 4], 1
cmp dword [edi + 0x18], 0x800
jb 0x1008daa7
mov eax, 0x80
cmp dword [edi + 0x1c], 8
lea ecx, [edi + 8]
jb 0x1008d9ec
mov ecx, dword [edi + 8]
cmp word [ecx + eax*2], 0x20
je 0x1008d9f9
inc eax
cmp eax, dword [edi + 0x18]
jb 0x1008d9e0
lea ecx, [edi + 8]
cmp eax, dword [edi + 0x18]
jne 0x1008da1c
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x1008da0b
mov eax, dword [ecx]
mov dword [ecx + 0x10], 0
xor ecx, ecx
mov word [eax], cx
jmp 0x1008daa7
mov edx, dword [ecx + 0x10]
inc eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
cmp edx, eax
jb 0x1008df62
sub edx, eax
or esi, 0xffffffff
cmp edx, 0xffffffff
cmovb esi, edx
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x104], esi
jb 0x1008da56
mov ecx, dword [ecx]
push dword [ebp - 0x104]
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x30]
call fcn.10002060
lea eax, [edi + 8]
lea ecx, [ebp - 0x30]
cmp eax, ecx
je 0x1008da9f
mov ecx, eax
call fcn.10002400
movups xmm0, xmmword [ebp - 0x30]
xor eax, eax
mov word [ebp - 0x30], ax
movups xmmword [edi + 8], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [edi + 0x18], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
lea ecx, [ebp - 0x30]
call fcn.10002400
cmp dword [edi + 0x18], 0
je 0x1008dabc
push 1
push 0x10166bd0
lea ecx, [edi + 8]
call fcn.100021c0
push dword [ebx + 0x24]
lea ecx, [ebp - 0x158]
push dword [ebx + 0x20]
call fcn.1008d4e0
add esp, 8
mov dword [ebp - 0xfc], eax
mov byte [ebp - 4], 2
lea esi, [ebp - 0x16]
mov ecx, dword [ebx + 8]
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x1008dae0
xor eax, eax
mov dword [ebp - 0x128], edx
mov word [ebp - 0x128], ax
lea eax, [ebp - 0x16]
mov dword [ebp - 0x104], esi
cmp esi, eax
mov dword [ebp - 0x118], edx
lea esi, [edi + 0x20]
mov dword [ebp - 0x114], 7
je 0x1008db46
mov ecx, dword [ebp - 0x104]
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x128]
call fcn.10002060
push 0x10169b68
lea edx, [ebp - 0x128]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x140]
call fcn.10081570
add esp, 4
push dword [ebp - 0xfc]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x100]
call fcn.1008d200
mov byte [ebp - 4], 5
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
lea ecx, [edi + 8]
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
push eax
mov dword [ebp - 0xfc], ecx
call fcn.100021c0
lea ecx, [ebp - 0x30]
call fcn.10002400
lea ecx, [ebp - 0x140]
call fcn.10002400
lea ecx, [ebp - 0x128]
call fcn.10002400
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 1
call fcn.10002400
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0x14]
je 0x1008dc97
mov ecx, dword [ebp - 0xfc]
push 1
push 0x10169b68
call fcn.100021c0
push 0xb0
lea eax, [ebp - 0xf8]
push 0
push eax
call fcn.10117ff0
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.10035c80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xe8]
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
add eax, ecx
push eax
call fcn.1002dfb0
mov eax, dword [ebx + 0x14]
add esp, 4
mov edi, dword [ebx + 0x10]
cmp edi, eax
je 0x1008dc4d
mov esi, eax
movzx eax, byte [edi]
lea ecx, [ebp - 0xe8]
push eax
call fcn.10026c90
inc edi
cmp edi, esi
jne 0x1008dc33
mov esi, dword [ebp - 0x110]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xe0]
call fcn.10027f70
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], 8
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.100021c0
lea ecx, [ebp - 0x30]
call fcn.10002400
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 1
call fcn.10035990
mov edi, dword [ebp - 0x10c]
cmp dword [edi + 0x1c], 8
jb 0x1008dca6
mov eax, dword [edi + 8]
mov dword [ebp - 0xfc], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1019e528]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1019f148]
cmp eax, dword [ecx + 4]
jle 0x1008dd63
push 0x1019f148
call fcn.10115da4
add esp, 4
cmp dword [0x1019f148], 0xffffffff
jne 0x1008dd63
mov byte [ebp - 4], 8
call fcn.100deed0
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x100], 6
push ecx
add eax, 0x60
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
mov dword [ebp - 0x104], eax
call fcn.100e1770
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0xd], 0
jne 0x1008dd25
cmp dword [ecx + 0x10], 6
jg 0x1008dd25
mov eax, dword [ebp - 0x104]
jmp 0x1008dd2d
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax]
cmp ecx, dword [eax]
je 0x1008dd3e
add ecx, 0x14
cmp dword [ecx + 0x14], 8
jb 0x1008dd43
mov ecx, dword [ecx]
jmp 0x1008dd43
mov ecx, 0x10168c44
test ecx, ecx
mov byte [ebp - 4], 1
mov eax, 0x10172dac
cmovne eax, ecx
push 0x1019f148
mov dword [0x1019f14c], eax
call fcn.10115d5a
add esp, 4
mov edx, dword [ebp - 0xfc]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x100], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008dd74
sub ecx, dword [ebp - 0x100]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push str.ServiceStages
push dword [0x1019f14c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
cmp dword [edi + 4], 0x400
jb 0x1008de73
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
push 0x28
mov dword [ebp - 0x44], 0
call fcn.101157fb
mov edx, eax
add esp, 4
mov dword [ebp - 0xfc], edx
mov dword [ebp - 0x48], edx
mov dword [edx], edx
mov dword [edx + 4], edx
mov byte [ebp - 4], 9
mov esi, 0x80
mov ecx, dword [edi]
mov ecx, dword [ecx]
mov eax, dword [ecx]
mov eax, dword [eax]
mov ecx, dword [eax]
mov ecx, dword [ecx]
sub esi, 4
jne 0x1008dde7
mov eax, dword [ecx]
lea esi, [ebp - 0x48]
cmp esi, edi
mov dword [ebp - 0x100], eax
lea esi, [edi + 0x20]
jne 0x1008de10
cmp edx, ecx
je 0x1008de56
cmp edx, eax
je 0x1008de56
jmp 0x1008de1a
dec dword [edi + 4]
mov dword [ebp - 0x44], 1
mov edi, dword [ecx + 4]
mov esi, dword [ebp - 0xfc]
mov dword [edi], eax
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0xfc]
mov dword [edx], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edx
mov edx, dword [ebp - 0x100]
mov esi, dword [ebp - 0x110]
mov dword [edx + 4], edi
mov edi, dword [ebp - 0x10c]
mov edx, dword [ebp - 0xfc]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x48]
cmp edi, eax
je 0x1008de67
push edx
push dword [edx]
mov ecx, edi
call fcn.1008d750
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.1008d580
cmp dword [edi + 4], 0x6666666
mov eax, dword [edi]
mov dword [ebp - 0x100], eax
je 0x1008df67
mov dword [ebp - 0x108], edi
mov byte [ebp - 4], 0xa
push 0x28
mov dword [ebp - 0x104], 0
call fcn.101157fb
mov ecx, dword [ebx + 8]
mov edi, eax
add esp, 4
mov dword [edi + 8], ecx
mov ecx, dword [ebx + 0xc]
mov dword [edi + 0xc], ecx
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], edx
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x10c]
mov dword [edi + 0x24], ecx
mov ecx, dword [ebp - 0x100]
push esi
inc dword [eax + 4]
mov eax, dword [ecx + 4]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [ecx + 4], edi
mov dword [eax], edi
call fcn.10113e50
mov edx, dword [ebx + 0x10]
add esp, 4
test edx, edx
je 0x1008df3c
mov ecx, dword [ebx + 0x18]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x1008df32
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008df71
push ecx
push edx
call fcn.101157ed
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20
push eax
call fcn.101136eb
call fcn.10002180
push str.list_too_long
call fcn.10111d8d
call fcn.1011a6bf
int3