Function at 0x4395a0
Capabilities:
Start 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 0x5543a8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x100
mov eax, dword [0x5ec3c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov dword [ebp - 0xec], esi
mov dword [ebp - 0x108], eax
test eax, eax
jne 0x439619
push eax
push dword [esi]
call fcn.0049a030
inc dword [esi + 4]
push str.Null_service_name
push dword [esi]
call fcn.0049a240
add esp, 0x10
inc dword [esi + 4]
jmp 0x4398fe
push 0xf003f
mov edx, esi
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.004382e0
add esp, 4
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4398fe
push 0x14
push edi
push dword [ebp - 0x108]
mov edx, esi
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
call fcn.00438500
add esp, 0xc
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4398f7
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x439798
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10c], eax
cmp eax, 0x420
je 0x439798
push 0xb0
lea eax, [ebp - 0xe8]
push 0
push eax
call fcn.0050cdd0
add esp, 8
lea ecx, [ebp - 0xe8]
call fcn.0043b0f0
push 0x5cb3d8
push ecx
push dword [ebp - 0x108]
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 2
push ecx
push str.Failed_to_start_service
push eax
call fcn.0043d770
add esp, 0xc
push eax
call fcn.0043d770
add esp, 0xc
push eax
call fcn.0043d770
add esp, 8
mov ecx, eax
push dword [ebp - 0x10c]
call fcn.0043b380
mov ecx, dword [ebp - 0xec]
push 0
push dword [ecx]
call fcn.0049a030
mov ecx, dword [ebp - 0xec]
lea eax, [ebp - 0x104]
add esp, 8
inc dword [ecx + 4]
lea ecx, [ebp - 0xe8]
push eax
call fcn.0043b000
cmp dword [eax + 0x14], 0x10
jb 0x439734
mov eax, dword [eax]
mov ecx, dword [ebp - 0xec]
push eax
push dword [ecx]
call fcn.0049a240
mov eax, dword [ebp - 0xec]
add esp, 8
mov ecx, dword [ebp - 0xf0]
inc dword [eax + 4]
cmp ecx, 0x10
jb 0x439788
mov edx, dword [ebp - 0x104]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43977e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43991e
push ecx
push edx
call fcn.0050a4c5
add esp, 8
lea ecx, [ebp - 0xe8]
call fcn.00438430
jmp 0x4398f0
xorps xmm0, xmm0
mov dword [ebp - 0xf4], 0
movups xmmword [ebp - 0x104], xmm0
mov byte [ebp - 0x104], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0xf0], 0xf
movups xmm0, xmmword [ebp - 0x104]
mov byte [ebp - 0x20], 1
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [ebp - 0xf4]
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push eax
mov edx, 4
mov ecx, esi
call fcn.00438670
mov ecx, dword [ebp - 0xec]
add esp, 4
mov ecx, dword [ecx]
test eax, eax
je 0x4398bf
push 0
push ecx
call fcn.0049a030
mov ecx, dword [ebp - 0xec]
add esp, 8
inc dword [ecx + 4]
lea ecx, [ebp - 0x104]
cmp byte [ebp - 0x20], 0
je 0x43982f
lea eax, [ebp - 0x38]
push eax
call fcn.00419520
jmp 0x439859
push 0x21
xorps xmm0, xmm0
mov dword [ebp - 0xf4], 0
push str.Failed_to_wait_for_running_status
movups xmmword [ebp - 0x104], xmm0
mov dword [ebp - 0xf0], 0
call fcn.00419cf0
cmp dword [ebp - 0xf0], 0x10
lea eax, [ebp - 0x104]
mov ecx, dword [ebp - 0xec]
cmovae eax, dword [ebp - 0x104]
push eax
push dword [ecx]
call fcn.0049a240
mov eax, dword [ebp - 0xec]
add esp, 8
mov ecx, dword [ebp - 0xf0]
inc dword [eax + 4]
cmp ecx, 0x10
jb 0x4398e8
mov edx, dword [ebp - 0x104]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4398b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439923
push ecx
push edx
call fcn.0050a4c5
add esp, 8
jmp 0x4398e8
push 1
push ecx
call fcn.0049a030
mov ecx, dword [ebp - 0xec]
push 0x5c698b
push dword [ecx]
inc dword [ecx + 4]
call fcn.0049a240
mov eax, dword [ebp - 0xec]
add esp, 0x10
inc dword [eax + 4]
lea ecx, [ebp - 0x38]
call fcn.0041fd70
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050a47b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.00522dda
call fcn.00522dda
int3