Function at 0x42a8a0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5d7ce0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42a8e2
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42a912
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ebx, 1
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ecx
mov byte [ebp - 4], bl
mov esi, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x1c], esi
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42a951
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.strServiceName
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x42a98a
mov edx, ecx
movzx edi, dx
push edi
call fcn.0044d834
test eax, eax
je 0x42a998
push edi
push eax
mov ecx, esi
call fcn.004074b0
jmp 0x42a998
push 0xe
push str.strServiceName
mov ecx, esi
call fcn.00407870
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov byte [ebp - 4], bl
mov ebx, dword [ebp + 0xc]
push eax
mov edi, esi
call fcn.0043b9d0
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x42aa4e
mov ecx, 0xa0000001
lea esi, [ebp - 0x1c]
call fcn.0041ae20
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0040d290
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a9f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ecx], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42aa1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ad7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42ad7e
push 1
lea ecx, [ebp - 0x18]
push ecx
push ecx
mov edi, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x1c], edi
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42aa77
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, str.iSystemBits
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x42aab0
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.0044d834
test eax, eax
je 0x42aabe
push ebx
push eax
mov ecx, edi
call fcn.004074b0
jmp 0x42aabe
push 0xb
push str.iSystemBits
mov ecx, edi
call fcn.00407870
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push eax
mov edi, esi
mov byte [ebp - 4], 1
call fcn.0043b9d0
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x42ab73
mov ecx, 0xa0000001
lea esi, [ebp - 0x1c]
call fcn.0041ae20
mov ecx, dword [ebp + 0x14]
push eax
mov byte [ebp - 4], 5
call fcn.0040d290
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ab18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ecx], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42ab44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ad7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42ad7e
mov esi, dword [ebp - 0x18]
push esi
call fcn.0054df0d
add esp, 4
cmp dword [0x5d9fb8], 0
mov edi, eax
je 0x42abcf
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42abc5
lea ecx, [ebp - 0x40]
push ecx
call eax
mov ax, word [ebp - 0x40]
cmp ax, 9
je 0x42abbb
cmp ax, 6
jne 0x42abc5
mov dword [0x5e0c44], 1
mov dword [0x5d9fb8], 0
test edi, edi
je 0x42abe1
cmp edi, 1
jne 0x42ac31
cmp dword [0x5e0c44], 0
jne 0x42ac3f
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x42ad0a
push 0x10
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x42ac95
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42aca4
cmp edi, 2
jne 0x42ac3f
cmp dword [0x5e0c44], 0
jne 0x42abe1
lea eax, [esi - 0x10]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42ac66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ad7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42ad7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x10], 0
jne 0x42ad1b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov ecx, ebx
lea esi, [ebp - 0x1c]
call fcn.0041ae20
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x2c]
mov edx, dword [ebp + 0x14]
push ecx
push edi
push eax
push edx
call fcn.00409220
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ad38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42ad38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x10], 0
jmp 0x42acb4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ecx], 2
mov eax, dword [edx + 0x30]
push edi
push eax
mov eax, dword [ebp + 0x14]
push eax
call fcn.00409220
add esp, 0xc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ad5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ad7e
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret