Function at 0x41ee30
Capabilities:
Create service
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x460be8
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
call fcn.0041eda0
test eax, eax
jne 0x41f16e
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x41f14e
push 0x104
lea eax, [esp + 0xe8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebp, 7
xor ecx, ecx
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], cx
push 0x466208
lea ecx, [esp + 0xb0]
mov dword [esp + 0x2fc], ebx
call fcn.0040d920
mov esi, eax
lea edx, [esp + 0xe4]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x2fc], 1
call fcn.0040d920
mov edi, eax
push 0x466204
lea ecx, [esp + 0x40]
mov byte [esp + 0x2fc], 2
call fcn.0040d920
push edi
push eax
lea eax, [esp + 0x98]
push eax
mov byte [esp + 0x304], 3
call fcn.0041ead0
push esi
push eax
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0x310], 4
call fcn.0041ead0
push str.__startSrv
push eax
lea edx, [esp + 0x94]
push edx
mov byte [esp + 0x31c], 5
call fcn.0041eb80
add esp, 0x24
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xd4]
mov byte [esp + 0x304], 6
call fcn.0041e0b0
mov edi, 8
cmp dword [esp + 0x8c], edi
jb 0x41ef8f
mov eax, dword [esp + 0x78]
push eax
call fcn.0043e711
add esp, 4
xor ecx, ecx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], cx
cmp dword [esp + 0x70], edi
jb 0x41efb7
mov edx, dword [esp + 0x5c]
push edx
call fcn.0043e711
add esp, 4
xor eax, eax
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
cmp dword [esp + 0xa8], edi
jb 0x41efdf
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0043e711
add esp, 4
xor edx, edx
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], dx
cmp dword [esp + 0x54], edi
jb 0x41f00a
mov eax, dword [esp + 0x40]
push eax
call fcn.0043e711
add esp, 4
xor ecx, ecx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], cx
cmp dword [esp + 0x38], edi
jb 0x41f02c
mov edx, dword [esp + 0x24]
push edx
call fcn.0043e711
add esp, 4
xor eax, eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], ax
mov byte [esp + 0x2f8], bl
cmp dword [esp + 0xc4], edi
jb 0x41f05b
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0043e711
add esp, 4
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
call fcn.0041ec50
mov esi, eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x2fc], 7
call fcn.0041ec50
mov edx, dword [esp + 0xcc]
cmp dword [esp + 0xe0], edi
jae 0x41f098
lea edx, [esp + 0xcc]
cmp dword [esi + 0x18], edi
jb 0x41f0a2
mov ecx, dword [esi + 4]
jmp 0x41f0a5
lea ecx, [esi + 4]
cmp dword [eax + 0x18], edi
jb 0x41f0af
mov eax, dword [eax + 4]
jmp 0x41f0b2
add eax, 4
push ebx
push ebx
push 0x46c82c
push ebx
push ebx
push edx
push 1
push 3
push 0x110
push 0xf01ff
push ecx
mov ecx, dword [esp + 0x40]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
cmp dword [esp + 0x38], edi
jb 0x41f0ec
mov edx, dword [esp + 0x24]
push edx
call fcn.0043e711
add esp, 4
xor eax, eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], ax
cmp dword [esp + 0x54], edi
jb 0x41f10e
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0043e711
add esp, 4
lea eax, [esp + 0x1c]
push eax
push 1
xor edx, edx
push esi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], dx
mov dword [esp + 0x28], 0x4661d8
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp esi, ebx
jne 0x41f152
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0xc8]
call fcn.004084b0
xor eax, eax
jmp 0x41f173
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
lea ecx, [esp + 0xc8]
call fcn.004084b0
mov eax, 1
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.0043f03d
add esp, 0x2e8
ret