Function at 0x100146e3
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001487b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jbe 0x10014766
mov dword [ebp - 0x14], 1
jmp 0x1001476a
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x58]
jle 0x10014799
mov dword [ebp - 0x5c], 1
jmp 0x1001479d
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
push 1
mov ecx, dword [ebp - 0x10]
call fcn.10016b9d
cmp dword [eax], 0xb14151c8
je 0x100147c0
mov dword [ebp - 0xc], 1
jmp 0x100147c4
and dword [ebp - 0xc], 0
push 1
mov ecx, dword [ebp - 0x10]
call fcn.10016b9d
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
cmp dword [ebp - 0xc], 0
jne 0x100147e3
push 1
mov ecx, dword [ebp - 0x10]
call fcn.10016b9d
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x100147f8
mov dword [ebp - 0x18], 1
jmp 0x100147fc
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0x69cd
jne 0x10014813
or eax, 0xffffffff
je 0x10014813
mov dword [ebp - 0x1c], 1
jmp 0x10014817
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp dword [ebp - 0x1c], eax
jg 0x1001482a
mov dword [ebp - 0x64], 1
jmp 0x1001482e
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1001484e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x1001484e
and dword [ebp - 0x24], 0
jmp 0x10014855
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
cmp eax, dword [ecx]
jge 0x1001486d
mov dword [ebp - 0x30], 1
jmp 0x10014871
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
jmp 0x100148a0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x22ea
push 0x24d3
push 0x18f2
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov esp, ebp
pop ebp
ret