Function at 0x4a06d0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8198
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x534008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x539ac4], 0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x84], esi
je 0x4a078d
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], 0
je 0x4a078d
cmp dword [eax + 0x58], 4
jb 0x4a078d
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040a090
push 0x15
push str.Entry_InstanllService
mov dword [ebp - 4], 0
call fcn.0040a960
push 0x2a1
push str.RC::DM::RCServiceDManager::InstanllService
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
push 4
call fcn.004b31c0
test bl, bl
je 0x4a077e
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
call fcn.004b34e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
lea eax, [edi + 0x1c]
mov dword [esi], 0xffffffff
push eax
lea ecx, [ebp - 0x28]
mov dword [esi + 4], 0xffffffff
call fcn.004107f0
lea eax, [edi + 0x34]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
call fcn.004107f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
mov eax, dword [edi + 0x88]
mov dword [ebp - 0x98], eax
mov eax, dword [edi + 0x84]
mov dword [ebp - 0x94], eax
mov eax, dword [edi + 0x80]
mov dword [ebp - 0x90], eax
mov eax, dword [edi + 0x7c]
mov dword [ebp - 0x8c], eax
lea eax, [edi + 4]
push eax
call fcn.004107f0
lea eax, [edi + 0x118]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x7c]
xor esi, esi
call fcn.004a1890
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx]
cmp eax, edx
je 0x4a0822
inc esi
add esi, dword [eax + 0x18]
mov eax, dword [eax]
cmp eax, edx
jne 0x4a0818
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b66c9
mov ecx, eax
lea eax, [esi + esi]
push eax
push 0
push ecx
mov dword [ebp - 0x80], ecx
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp - 0x7c]
add esp, 0x10
xor ebx, ebx
mov esi, dword [edi]
cmp esi, edi
je 0x4a08bf
nop word [eax + eax]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
mov edx, dword [eax + 0x10]
lea ecx, [eax + 0x10]
mov dword [ebp - 0x88], ecx
jb 0x4a0877
mov eax, dword [eax]
add edx, edx
push edx
push eax
mov eax, dword [ebp - 0x80]
lea ecx, [eax + ebx*2]
call fcn.0049e320
mov eax, dword [ebp - 0x88]
add esp, 8
add ebx, dword [eax]
mov eax, dword [ebp - 0x80]
lea ecx, [eax + ebx*2]
test ecx, ecx
jne 0x4a08af
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x4a08b8
mov ax, word [0x51177c]
mov word [ecx], ax
mov esi, dword [esi]
inc ebx
cmp esi, edi
jne 0x4a0860
mov edi, dword [ebp - 0x80]
lea ecx, [edi + ebx*2]
test ecx, ecx
jne 0x4a08dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x4a08e6
mov ax, word [0x51177c]
mov word [ecx], ax
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4a0936
mov esi, dword [ebp - 0x84]
mov dword [esi], 0xa803b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
test edi, edi
je 0x4a091a
push edi
call fcn.004b64a6
add esp, 4
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.0049e130
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 7
jmp 0x4a0a69
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
push 0
cmovae edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x70]
cmp dword [ebp - 0x14], 8
push edi
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push edx
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x4a0a3d
cmp dword [0x539ac4], eax
je 0x4a0a06
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], 0
je 0x4a0a06
cmp dword [eax + 0x58], 2
jb 0x4a0a06
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x40]
call fcn.0040a090
push 0x15
push str.CreateService_failed
mov byte [ebp - 4], 8
call fcn.0040a960
push 0x2e1
push str.RC::DM::RCServiceDManager::InstanllService
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x40]
mov ecx, 0x539ac4
push eax
push 2
call fcn.004b31c0
test bl, bl
je 0x4a09fa
lea eax, [ebp - 0x40]
mov ecx, 0x539ac4
push eax
call fcn.004b34e0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00409f90
push edi
call fcn.004b64a6
mov esi, dword [ebp - 0x84]
add esp, 4
mov dword [esi], 0xa803b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 9
call fcn.0049e130
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 0xb
jmp 0x4a0a69
push edi
call fcn.004b64a6
mov esi, dword [ebp - 0x84]
add esp, 4
mov dword [esi], 0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xc
call fcn.0049e130
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 0xe
push 0x20
push eax
call fcn.004b622a
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00409f90
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00409f90
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
cmp dword [0x539ac4], 0
je 0x4a0b1e
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], 0
je 0x4a0b1e
cmp dword [eax + 0x58], 4
jb 0x4a0b1e
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x40]
call fcn.0040a090
push 0x14
push str.Exit_InstanllService
mov dword [ebp - 4], 0xf
call fcn.0040a960
push 0x2ed
push str.RC::DM::RCServiceDManager::InstanllService
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x40]
mov ecx, 0x539ac4
push eax
push 4
call fcn.004b31c0
test bl, bl
je 0x4a0b0f
lea eax, [ebp - 0x40]
mov ecx, 0x539ac4
push eax
call fcn.004b34e0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5f6c
mov esp, ebp
pop ebp
ret 8