Function at 0x10004ec0
Capabilities:
Check if file exists
Delete registry key
Delete service
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10027da4
mov eax, dword fs:[0]
push eax
sub esp, 0xa90
mov eax, dword [0x10031210]
xor eax, esp
mov dword [esp + 0xa88], eax
push ebx
push esi
push edi
mov eax, dword [0x10031210]
xor eax, esp
push eax
lea eax, [esp + 0xaa0]
mov dword fs:[0], eax
lea esi, [esp + 0x38]
call fcn.1000b440
push 0x208
lea eax, [esp + 0x890]
push 0
push eax
mov dword [esp + 0xab4], 0
call fcn.10015cf0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x27e]
push edx
mov word [esp + 0x280], cx
call fcn.10015cf0
add esp, 0xc
push 0x20
push str.BQAGAFMAEAAFABUATQBKAAgAAACSAA
lea esi, [esp + 0x27c]
call fcn.10005940
mov ecx, dword [esp + 0x38]
mov eax, esi
push eax
push ecx
push str._sSoftMgr_s
mov ecx, 0x104
lea ebx, [esp + 0x898]
call fcn.10009340
add esp, 0xc
mov edx, ebx
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10004fa7
mov eax, ebx
push eax
call fcn.100090d0
add esp, 4
test eax, eax
je 0x10004fa7
mov ebx, 4
mov ecx, esi
call fcn.10005a10
push 0x208
xor ebx, ebx
lea ecx, [esp + 0x480]
push ebx
push ecx
call fcn.10015cf0
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
call fcn.10006d70
push 0x104
lea eax, [esp + 0x480]
push eax
mov byte [esp + 0xab0], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [esp + 0x18]
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.1000b6b0
push 0x208
lea ecx, [esp + 0x688]
push ebx
push ecx
call fcn.10015cf0
add esp, 0xc
cmp dword [esp + 0x14], 6
mov ecx, 0x104
lea ebx, [esp + 0x684]
jb 0x10005032
movzx edx, word [esp + 0x47c]
push edx
push str._C:Users
jmp 0x10005040
movzx eax, word [esp + 0x47c]
push eax
push str._C:Documents_and_Settings
call fcn.10009340
add esp, 8
lea ecx, [esp + 0x684]
push ecx
lea ecx, [esp + 0x40]
call fcn.100061a0
lea edx, [esp + 0x54]
push edx
call fcn.10006d70
mov byte [esp + 0xaa8], 2
mov esi, dword [esp + 0x4c]
sub esi, dword [esp + 0x48]
xor ebx, ebx
sar esi, 2
xor edi, edi
cmp esi, ebx
jbe 0x100050d3
mov edi, edi
push 0x208
lea eax, [esp + 0x70]
push ebx
push eax
call fcn.10015cf0
add esp, 0xc
cmp edi, esi
jb 0x1000509c
call fcn.10014d0c
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + edi*4]
push edx
push str._sDoFix360safe.lnk
mov ecx, 0x104
lea ebx, [esp + 0x74]
call fcn.10009340
add esp, 8
mov ecx, ebx
call fcn.10009250
mov esi, dword [esp + 0x4c]
sub esi, dword [esp + 0x48]
inc edi
sar esi, 2
xor ebx, ebx
cmp edi, esi
jb 0x10005080
push 4
call fcn.1001402c
add esp, 4
cmp eax, ebx
je 0x100050e9
lea ecx, [esp + 0x20]
mov dword [eax], ecx
jmp 0x100050eb
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
lea edx, [esp + 0x14]
push edx
mov ecx, str.txRepairaafe
mov byte [esp + 0xaac], 4
call fcn.10009b30
mov byte [esp + 0xaa8], 5
mov edx, dword [esp + 0x2c]
cmp edx, ebx
jne 0x10005126
xor ecx, ecx
jmp 0x1000512f
mov ecx, dword [esp + 0x34]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x30]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
mov esi, eax
jae 0x10005168
mov byte [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
call fcn.10008150
add esp, 0x14
add esi, 4
mov dword [esp + 0x30], esi
jmp 0x1000518a
cmp edx, eax
jbe 0x10005171
call fcn.10014d0c
mov eax, dword [esp + 0x20]
push esi
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
call fcn.10007500
mov byte [esp + 0xaa8], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100051b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.Fix360SafeService
call fcn.10009b30
mov byte [esp + 0xaa8], 6
mov edx, dword [esp + 0x2c]
cmp edx, ebx
jne 0x100051d5
xor ecx, ecx
jmp 0x100051de
mov ecx, dword [esp + 0x34]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x30]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
mov esi, eax
jae 0x10005217
mov byte [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
push edx
push ecx
lea edx, [esp + 0x1c]
push edx
push 1
push eax
call fcn.10008150
add esp, 0x14
add esi, 4
mov dword [esp + 0x30], esi
jmp 0x10005239
cmp edx, eax
jbe 0x10005220
call fcn.10014d0c
mov eax, dword [esp + 0x20]
push esi
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x30]
call fcn.10007500
mov byte [esp + 0xaa8], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.Fix360Service
call fcn.10009b30
mov byte [esp + 0xaa8], 7
mov edx, dword [esp + 0x2c]
cmp edx, ebx
jne 0x10005284
xor ecx, ecx
jmp 0x1000528d
mov ecx, dword [esp + 0x34]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x30]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
mov esi, eax
jae 0x100052c6
mov byte [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
push edx
push ecx
lea edx, [esp + 0x1c]
push edx
push 1
push eax
call fcn.10008150
add esp, 0x14
add esi, 4
mov dword [esp + 0x30], esi
jmp 0x100052e8
cmp edx, eax
jbe 0x100052cf
call fcn.10014d0c
mov eax, dword [esp + 0x20]
push esi
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x30]
call fcn.10007500
mov byte [esp + 0xaa8], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005310
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.360FixService
call fcn.10009b30
mov byte [esp + 0xaa8], 8
mov edx, dword [esp + 0x2c]
cmp edx, ebx
jne 0x10005333
xor ecx, ecx
jmp 0x1000533c
mov ecx, dword [esp + 0x34]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x30]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
mov esi, eax
jae 0x10005375
mov byte [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
push edx
push ecx
lea edx, [esp + 0x1c]
push edx
push 1
push eax
call fcn.10008150
add esp, 0x14
add esi, 4
mov dword [esp + 0x30], esi
jmp 0x10005397
cmp edx, eax
jbe 0x1000537e
call fcn.10014d0c
mov eax, dword [esp + 0x20]
push esi
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x30]
call fcn.10007500
mov byte [esp + 0xaa8], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100053bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.360FixSafe
call fcn.10009b30
mov byte [esp + 0xaa8], 9
mov edx, dword [esp + 0x2c]
cmp edx, ebx
jne 0x100053e2
xor ecx, ecx
jmp 0x100053eb
mov ecx, dword [esp + 0x34]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x30]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
mov esi, eax
jae 0x10005424
mov byte [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
push edx
push ecx
lea edx, [esp + 0x1c]
push edx
push 1
push eax
call fcn.10008150
add esp, 0x14
add esi, 4
mov dword [esp + 0x30], esi
jmp 0x10005446
cmp edx, eax
jbe 0x1000542d
call fcn.10014d0c
mov eax, dword [esp + 0x20]
push esi
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x30]
call fcn.10007500
mov byte [esp + 0xaa8], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000546e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.FixSafeService
call fcn.10009b30
mov byte [esp + 0xaa8], 0xa
mov edx, dword [esp + 0x2c]
cmp edx, ebx
jne 0x10005491
xor ecx, ecx
jmp 0x1000549a
mov ecx, dword [esp + 0x34]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x30]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
mov esi, eax
jae 0x100054d3
mov byte [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
push edx
push ecx
lea edx, [esp + 0x1c]
push edx
push 1
push eax
call fcn.10008150
add esp, 0x14
add esi, 4
mov dword [esp + 0x30], esi
jmp 0x100054f5
cmp edx, eax
jbe 0x100054dc
call fcn.10014d0c
mov eax, dword [esp + 0x20]
push esi
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x30]
call fcn.10007500
mov byte [esp + 0xaa8], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000551d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.RepairSafezage
call fcn.10009b30
mov byte [esp + 0xaa8], 0xb
mov edx, dword [esp + 0x2c]
cmp edx, ebx
jne 0x10005540
xor ecx, ecx
jmp 0x10005549
mov ecx, dword [esp + 0x34]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x30]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
mov esi, eax
jae 0x10005582
mov byte [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
push edx
push ecx
lea edx, [esp + 0x1c]
push edx
push 1
push eax
call fcn.10008150
add esp, 0x14
add esi, 4
mov dword [esp + 0x30], esi
jmp 0x100055a4
cmp edx, eax
jbe 0x1000558b
call fcn.10014d0c
mov eax, dword [esp + 0x20]
push esi
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x30]
call fcn.10007500
mov byte [esp + 0xaa8], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100055cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov eax, edx
sub eax, ecx
sar eax, 2
xor esi, esi
cmp eax, ebx
jbe 0x100056ca
cmp esi, eax
jb 0x100055f2
call fcn.10014d0c
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + esi*4]
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x1000564b
push 0xf01ff
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x1000563c
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1000562c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10005651
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10005651
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x76]
push edx
mov word [esp + 0x78], cx
call fcn.10015cf0
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
add esp, 0xc
sar eax, 2
cmp esi, eax
jb 0x1000567f
call fcn.10014d0c
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + esi*4]
push edx
push str.SYSTEMCurrentControlSet_services
push str._s_s
mov ecx, 0x104
lea ebx, [esp + 0x78]
call fcn.10009340
add esp, 0xc
mov eax, ebx
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov eax, edx
sub eax, ecx
inc esi
sar eax, 2
xor ebx, ebx
cmp esi, eax
jb 0x100055f2
mov byte [esp + 0xaa8], 2
cmp ecx, ebx
je 0x10005712
mov edi, edx
mov esi, ecx
cmp ecx, edx
je 0x10005709
mov edi, edi
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100056fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x100056e0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.10013ff7
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.10013ff7
mov byte [esp + 0xaac], 1
mov esi, dword [esp + 0x64]
add esp, 4
cmp esi, ebx
je 0x10005777
mov eax, dword [esp + 0x64]
mov edi, eax
cmp esi, eax
je 0x1000576e
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005763
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x10005745
mov esi, dword [esp + 0x60]
push esi
call fcn.10013ff7
add esp, 4
mov ecx, dword [esp + 0x54]
push ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.10013ff7
mov byte [esp + 0xaac], 0
mov esi, dword [esp + 0x4c]
add esp, 4
cmp esi, ebx
je 0x100057e2
mov eax, dword [esp + 0x4c]
mov edi, eax
cmp esi, eax
je 0x100057d9
lea ebx, [ebx]
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100057ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x100057b0
mov esi, dword [esp + 0x48]
push esi
call fcn.10013ff7
add esp, 4
mov ecx, dword [esp + 0x3c]
push ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.10013ff7
mov dword [esp + 0xaac], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005826
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xaa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa88]
xor ecx, esp
call fcn.10014002
mov esp, ebp
pop ebp
ret