Function at 0x40bbf0
Capabilities:
Modify service

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 0x45d5f0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x54
mov eax, dword [0x47b06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x5c]
call fcn.0040a3f0
mov dword [ebp - 4], 0
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x40bc48
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push 0
mov ecx, eax
call fcn.00401e00
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x40bcbd
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bcb3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf03
push edx
push ecx
call fcn.0042736a
add esp, 8
lea edx, [ebp - 0x44]
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.00412560
push eax
lea ecx, [ebp - 0x44]
call fcn.00401a90
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40bd17
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bd0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf08
push edx
push ecx
call fcn.0042736a
add esp, 8
push str.__Service
lea ecx, [ebp - 0x44]
call fcn.004010f0
call fcn.00408850
push 0x1c
push str.RegisterService:_filename_
mov dword [ebp - 0x20], 0
mov ecx, dword [eax + 0x114]
lea eax, [ebp - 0x44]
push eax
sub esp, 0x10
mov dword [ebp - 0x1c], 0
movq xmm0, qword [ebp - 0x20]
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.0041b420
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
call fcn.0040b830
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x40be6d
push 0x12
push str.asComSvc
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x40be1b
push 0
push 0
push 0
push 0
push 0
push str.UIGroup
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x40be06
call fcn.00408850
sub esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movq xmm0, qword [ebp - 0x20]
mov ecx, dword [eax + 0x114]
mov eax, esp
push 1
sub esp, 0xc
mov dword [eax], str.ChangeServiceConfig_failed
mov dword [eax + 4], 0x1a
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00405a70
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40beb4
call fcn.00408850
sub esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movq xmm0, qword [ebp - 0x20]
mov ecx, dword [eax + 0x114]
mov eax, esp
push 1
sub esp, 0xc
mov dword [eax], str.OpenService_failed
mov dword [eax + 4], 0x12
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00405a70
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40beb4
call fcn.00408850
sub esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movq xmm0, qword [ebp - 0x20]
mov ecx, dword [eax + 0x114]
mov eax, esp
push 1
sub esp, 0xc
mov dword [eax], str.OpenSCManager_failed
mov dword [eax + 4], 0x14
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00405a70
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x40bee4
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40beda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf0d
push edx
push ecx
call fcn.0042736a
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00427329
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004421bc
call fcn.004421bc
call fcn.004421bc
int3