Function at 0x45c860
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8085
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4db064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26c], ecx
mov ecx, dword [ecx + 0x94]
mov eax, dword [ebp + 8]
shr ecx, 7
and cl, 1
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x258], ecx
je 0x45d09e
call fcn.00427020
or esi, 0xffffffff
cmp byte [eax + 0x1c], 0
je 0x45c9a5
call fcn.00427020
test byte [eax + 0x20], 8
je 0x45c9a5
call fcn.00427020
mov edi, eax
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x45d1d9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x24c]
push 0x20
push str.Installing_using_helper_service.
call fcn.004021c0
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x45d1d9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x250]
push 0
push 0x4bc000
call fcn.004021c0
push ecx
lea eax, [ebp - 0x24c]
push eax
push ecx
lea eax, [ebp - 0x250]
mov ecx, edi
push eax
call fcn.00427310
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45c981
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45c9a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x268]
mov eax, dword [eax + 0x168]
add eax, 0x44
push eax
call fcn.004023e0
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x268]
cmp dword [eax - 0xc], 0
je 0x45d0bd
call fcn.00427020
cmp byte [eax + 0x1c], 0
je 0x45cabf
call fcn.00427020
test byte [eax + 0x20], 8
je 0x45cabf
call fcn.00427020
mov edi, eax
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x45d1d9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x250]
push 0x11
push str.Service_detected.
call fcn.004021c0
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x45d1d9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x24c]
push 0
push 0x4bc000
call fcn.004021c0
push ecx
lea eax, [ebp - 0x250]
push eax
push ecx
lea eax, [ebp - 0x24c]
mov ecx, edi
push eax
call fcn.00427310
mov byte [ebp - 4], 0xd
mov eax, esi
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ca9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, esi
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45cabf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x280], 0x4bc954
mov dword [ebp - fcn.00418860], 0x4bc948
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x248], 0x4bd238
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x280]
mov dword [ebp - 0x220], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x27c]
movq qword [ebp - 0x230], xmm0
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x248]
movups xmmword [ebp - 0x240], xmm0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [0x4dd23c], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x260]
call fcn.0046f2a0
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.0045d250
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x248]
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x24c]
push eax
push 4
push SysReAllocString
mov dword [ebp - 0x24c], 0
call fcn.0041dbe0
mov edi, eax
mov dword [ebp - 0x254], 0x4bd238
mov dword [ebp - 0x250], edi
mov byte [ebp - 4], 0x19
test edi, edi
jne 0x45cbc3
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x254], 0x4bd238
jmp 0x45cbea
push 1
push edi
call fcn.0041de50
mov byte [ebp - 4], 0x18
push edi
mov dword [ebp - 0x254], 0x4bd238
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x250], 0
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
push eax
push 0x14
push SysReAllocString
lea ecx, [ebp - 0x248]
call fcn.0041dbe0
mov edi, eax
mov dword [ebp - 0x254], 0x4bd238
mov dword [ebp - 0x250], edi
mov byte [ebp - 4], 0x1a
test edi, edi
je 0x45cc64
lea eax, [ebp - 0x274]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x45cc5c
mov byte [ebp - 4], 0x18
push edi
mov dword [ebp - 0x254], 0x4bd238
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x250], 0
jmp 0x45cca1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x45cc6a
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x254], 0x4bd238
test edi, edi
je 0x45cc93
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x250], 0
mov edi, dword [ebp - 0x24c]
test edi, edi
jne 0x45cebe
call fcn.00427020
cmp byte [eax + 0x1c], 0
je 0x45cd89
call fcn.00427020
test byte [eax + 0x20], 8
je 0x45cd89
call fcn.00427020
mov edi, eax
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x45d1d9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x250]
push 0x10
push str.Service_started.
call fcn.004021c0
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x45d1d9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x24c]
push 0
push 0x4bc000
call fcn.004021c0
push ecx
lea eax, [ebp - 0x250]
push eax
push ecx
lea eax, [ebp - 0x24c]
mov ecx, edi
push eax
call fcn.00427310
mov byte [ebp - 4], 0x1d
mov eax, esi
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45cd68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x18
mov eax, esi
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45cd89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x270]
mov edi, dword [ebp - 0x264]
mov ecx, edi
cmp dword [eax - 0xc], 0
cmove eax, dword [ebp - 0x260]
push eax
call fcn.00450940
test al, al
je 0x45cffd
mov ecx, edi
call fcn.00450b70
test al, al
je 0x45cffd
mov ecx, edi
call fcn.0044faf0
test al, al
je 0x45cffd
mov ecx, edi
call fcn.004504b0
test al, al
je 0x45cffd
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 0x258]
neg eax
sbb al, al
and cl, al
mov dword [ebp - 0x258], ecx
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x45d1d9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
call fcn.004031b0
test al, al
jne 0x45ce67
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ce45
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.00403320
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x250]
mov edx, dword [ebp - 0x26c]
lea edx, [edx + 0x160]
call fcn.0046f070
test eax, eax
setne byte [ebp - 0x259]
mov byte [ebp - 4], 0x18
mov eax, esi
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ceac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x259], 0
je 0x45d005
jmp 0x45cffd
call fcn.00427020
cmp byte [eax + 0x1c], 0
je 0x45cffd
call fcn.00427020
test byte [eax + 0x20], 1
je 0x45cffd
call fcn.00427020
mov dword [ebp - 0x26c], eax
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x45d1d9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x258]
push 0x19
push str.Unable_to_start_service:
call fcn.004021c0
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x45cf51
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x264], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x45cf31
sub edx, dword [ebp - 0x264]
lea ecx, [ebp - 0x258]
sar edx, 1
push edx
push eax
call fcn.004021c0
push 0xc
push str._LastError:
lea ecx, [ebp - 0x258]
call fcn.004021c0
push edi
lea ecx, [ebp - 0x258]
call fcn.00426e30
mov edi, eax
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x45d1d9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 0x2d
lea ecx, [ebp - 0x24c]
push 0
push 0x4bc000
call fcn.004021c0
push ecx
push edi
push ecx
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x24c]
push eax
call fcn.00427310
mov byte [ebp - 4], 0x2a
mov eax, esi
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45cfdc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x18
mov eax, esi
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45cffd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor cl, cl
mov dword [ebp - 0x258], ecx
mov byte [ebp - 4], 0x17
mov eax, esi
mov edx, dword [ebp - 0x270]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45d026
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov eax, esi
mov edx, dword [ebp - 0x260]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45d047
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x248], 0x4bd238
test eax, eax
je 0x45d070
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x244], 0
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x45d09e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x258]
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00477280
mov esp, ebp
pop ebp
ret 4
call fcn.00427020
cmp byte [eax + 0x1c], 0
je 0x45d1cc
call fcn.00427020
test byte [eax + 0x20], 1
je 0x45d1cc
call fcn.00427020
mov edi, eax
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x45d1d9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0x37
lea ecx, [ebp - 0x250]
push 0x2e
push str.Support_service_not_configured_in_updates.ini.
call fcn.004021c0
push 0xc
push str._LastError:
lea ecx, [ebp - 0x250]
call fcn.004021c0
push 0xe000000b
lea ecx, [ebp - 0x250]
call fcn.00426cb0
mov dword [ebp - 0x264], eax
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x45d1d9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 0x3a
lea ecx, [ebp - 0x260]
push 0
push 0x4bc000
call fcn.004021c0
push ecx
push dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push ecx
push eax
mov ecx, edi
call fcn.00427310
mov byte [ebp - 4], 0x37
mov eax, esi
mov edx, dword [ebp - 0x260]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45d1ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, esi
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45d1cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor cl, cl
mov dword [ebp - 0x258], ecx
jmp 0x45d076
push 0x80004005
call fcn.004022e0
int3