Function at 0x1010b940
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014f9d6
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x98], ebx
call fcn.1000af50
test eax, eax
jg 0x1010b9bd
push ebx
push 0x144
push str.RepairService_repair.cc
lea ecx, [ebp - 0x1b8]
call fcn.1000afc0
mov dword [ebp - 4], ebx
add eax, 8
push str.Repairing_service
mov ebx, 1
push eax
mov dword [ebp - 0x98], ebx
call fcn.100025d0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x1010b9d7
lea ecx, [ebp - 0x1b8]
and ebx, 0xfffffffe
call fcn.1000b010
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0x10168270
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x98]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1010ba2b
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call dword [eax + 4]
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x1c], eax
push 0x3c
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.1011a400
add esp, 0xc
lea ecx, [ebp - 0x108]
call fcn.10109680
push 0
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 2
push eax
push str.SeDebugPrivilege
lea ecx, [ebp - 0x20]
call fcn.10109a90
test al, al
jne 0x1010bacb
call fcn.1000af50
cmp eax, 2
jg 0x1010bab4
push 2
push 0x14c
push str.RepairService_repair.cc
lea ecx, [ebp - 0x1b8]
call fcn.1000afc0
push str.SeDebugPrivilege
add eax, 8
mov byte [ebp - 4], 3
push str.Failed_to_enable
or ebx, 2
push eax
mov dword [ebp - 0x98], ebx
call fcn.100025d0
add esp, 8
push eax
call fcn.1000b860
add esp, 8
mov dword [ebp - 4], 2
test bl, 2
je 0x1010bacb
lea ecx, [ebp - 0x1b8]
call fcn.1000b010
lea ecx, [ebp - 0x38]
call fcn.1000d240
mov edx, dword [str.knbcenter.exe]
xor eax, eax
mov dword [ebp - 0x9c], 7
mov dword [ebp - 0xa0], 0
mov word [ebp - 0xb0], ax
mov byte [ebp - 4], 4
cmp word [edx], ax
jne 0x1010bb03
xor ecx, ecx
jmp 0x1010bb1f
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x1010bb10
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010bb10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb0]
call fcn.1000c2b0
mov ebx, dword [ebp - 0xb4]
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 5
push eax
mov ecx, ebx
call fcn.1000d990
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.1000d2b0
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 5
call fcn.1000baf0
cmp dword [ebp - 0x9c], 8
mov byte [ebp - 4], 4
jb 0x1010bb82
push dword [ebp - 0xb0]
call fcn.1011a1ea
add esp, 4
xor esi, esi
push 0x5c
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.1011a400
mov edx, dword [0x10167e28]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x9c], 7
mov dword [ebp - 0xa0], 0
mov word [ebp - 0xb0], ax
cmp word [edx], ax
jne 0x1010bbc3
xor ecx, ecx
jmp 0x1010bbdf
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x1010bbd0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010bbd0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb0]
call fcn.1000c2b0
mov edx, dword [str.KNBCenter]
xor eax, eax
mov dword [ebp - 0xb8], 7
mov dword [ebp - 0xbc], 0
mov word [ebp - 0xcc], ax
mov byte [ebp - 4], 9
cmp word [edx], ax
jne 0x1010bc1c
xor ecx, ecx
jmp 0x1010bc30
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010bc21
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xcc]
call fcn.1000c2b0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push eax
push 0x10167e34
push 0x10167e30
push 0x10167e2c
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x94]
call fcn.101092f0
cmp dword [ebp - 0xb8], 8
jb 0x1010bc84
push dword [ebp - 0xcc]
call fcn.1011a1ea
add esp, 4
xor eax, eax
mov dword [ebp - 0xb8], 7
mov dword [ebp - 0xbc], 0
mov word [ebp - 0xcc], ax
cmp dword [ebp - 0x9c], 8
mov byte [ebp - 4], 0xd
jb 0x1010bcbc
push dword [ebp - 0xb0]
call fcn.1011a1ea
add esp, 4
xor eax, eax
mov dword [ebp - 0x9c], 7
push ebx
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xa0], 0
mov word [ebp - 0xb0], ax
call fcn.1010c6d0
test al, al
jne 0x1010bcf4
lea ecx, [ebp - 0x94]
call fcn.10109b60
lea ecx, [ebp - 0x94]
call fcn.1010be30
lea ecx, [ebp - 0x94]
call fcn.1010c1e0
test al, al
jne 0x1010bd73
lea ecx, [ebp - 0x94]
call fcn.10109b60
lea ecx, [ebp - 0x94]
call fcn.1010be30
lea ecx, [ebp - 0x94]
call fcn.1010c1e0
test al, al
jne 0x1010bd73
lea ecx, [ebp - 0x94]
call fcn.1010c550
lea ecx, [ebp - 0x94]
call fcn.1010a620
lea ecx, [ebp - 0x94]
call fcn.1010c1e0
test al, al
jne 0x1010bd73
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 4
call fcn.10109780
inc esi
cmp esi, 5
jl 0x1010bb84
jmp 0x1010bd82
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 4
call fcn.10109780
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.1000baf0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20]
call fcn.10109930
push dword [ebp - 0xd4]
mov dword [ebp - 0x108], 0x10168268
call fcn.1011bc41
add esp, 4
lea ecx, [ebp - 0x104]
call fcn.10109700
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10168270
test ecx, ecx
je 0x1010bdeb
test eax, eax
je 0x1010bde4
push ecx
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x1010bdfd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x14]
call fcn.1011a1ea
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret