Function at 0x417ba0
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x60]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
xor eax, eax
push fcn.00417b60
push ebp
push 0x414380
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x88]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.004135e0
mov edx, dword [ebp - 0x20]
mov ecx, 1
mov al, 0x20
call fcn.00408fe0
test eax, eax
je 0x417c4f
push 0
mov eax, 0x488e54
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x5c], eax
mov eax, 0x488e54
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x20]
mov ecx, 2
call fcn.00408380
push 0
mov ecx, str.___run
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x20]
call fcn.00408020
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x4c], 0
je 0x417c93
push 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x60], eax
mov eax, 0x488e78
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x20]
mov ecx, 2
call fcn.00408380
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x34]
lea eax, [ebp - 0x18]
call fcn.00407f30
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x24]
lea eax, [ebp - 0x1c]
call fcn.00407f30
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax + 0x48]
mov edx, dword [ebx + 0x1c]
lea eax, [ebp - 0x24]
call fcn.00407f30
mov edx, dword [ebx + 0x30]
lea eax, [ebp - 0x28]
call fcn.00407f30
cmp dword [ebp - 0x28], 0
jne 0x417ce0
mov dword [ebp - 0x4c], 0
jmp 0x417cef
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x417cec
mov eax, 0x4aa2e0
mov dword [ebp - 0x4c], eax
mov edx, dword [ebx + 0x20]
lea eax, [ebp - 0x2c]
call fcn.00407f30
cmp dword [ebp - 0x2c], 0
jne 0x417d10
mov dword [ebp - 0x50], 0
jmp 0x417d1f
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x417d1c
mov eax, 0x4aa2e0
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x24]
mov eax, dword [eax*4 + 0x482110]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
test dword [eax + 0x40], 4
je 0x417d45
cmp dword [ebx + 0x24], 0
jne 0x417d6a
or dword [ebp - 0x34], 0x100
cmp dword [ebx + 0x24], 0
jne 0x417d6a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 0x40]
call fcn.0041d560
cmp eax, 1
jle 0x417d6a
mov eax, dword [ebp - 0x34]
xor eax, 0x10
or eax, 0x20
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x28]
mov eax, dword [eax*4 + 0x482120]
mov dword [ebp - 0x38], eax
cmp dword [ebx + 0x28], 2
jae 0x417d8a
cmp dword [ebx + 0x24], 1
je 0x417d8a
mov dword [ebp - 0x38], 2
mov eax, dword [ebx + 0x2c]
cmp dword [ebx + 0x2c], 0
je 0x417da0
lea eax, [ebx + 0x2c]
mov dword [ebp - 0x44], eax
jmp 0x417da7
mov dword [ebp - 0x44], 0
mov eax, dword [ebx + 0x18]
mov eax, dword [eax*4 + 0x482140]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x10]
call fcn.00417a20
mov dword [ebp - 0x48], eax
xor eax, eax
push fcn.00417b40
push ebp
push 0x414380
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x417dea
mov eax, 0x4aa2e0
push eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x417df7
mov eax, 0x4aa2e0
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push 0xf01ff
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x417e12
mov eax, 0x4aa2e0
push eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x417e1f
mov eax, 0x4aa2e0
push eax
push dword [ebp - 0xc]
call fcn.0043dc70
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x417e34
call fcn.00436ed0
xor eax, eax
push fcn.00417b20
push ebp
push 0x414380
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x14]
call fcn.00407f30
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x417e61
mov eax, 0x4aa2e0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
push 1
push dword [ebp - 0x10]
call fcn.0043dc50
cmp dword [ebp - 0x44], 0
je 0x417e84
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 0x40]
mov dword [eax + 0x2c], edx
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00417b20
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00417b40
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00417b60
pop ebx
mov esp, ebp
pop ebp
ret