Function at 0x415660
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4955ad
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4b80c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x88], ecx
mov esi, dword [ebp + 0x14]
mov edi, 5
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
cmp dword [esi + 0x14], 8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x80], eax
mov eax, esi
mov dword [ebp - 0x78], 0
jb 0x4156bb
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
mov eax, bind
mov ecx, dword [edx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x4158d3
cmp dword [edx + 0x14], 8
jb 0x4156e2
mov edx, dword [edx]
push ecx
push edx
push 1
push 0x4afad8
push ecx
push dword [ebp - 0x80]
lea ecx, [ebp - 0x40]
call fcn.004088d0
push 1
push 0x4afad8
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00408970
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
xor ecx, ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], cl
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x14], 8
jb 0x415750
mov eax, dword [eax]
mov ecx, dword [ebp - 0x7c]
mov edx, ecx
cmp dword [ecx + 0x14], 8
jb 0x41575d
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x84]
push 1
push 3
push 0x10
push 0xf01ff
push eax
push edx
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x74], eax
cmp edx, 8
jb 0x4157c3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4157b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4158d8
push edx
push ecx
call fcn.0046b46b
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x415818
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41580e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4158d8
push edx
push ecx
call fcn.0046b46b
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp dword [ebp - 0x74], eax
jne 0x415868
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x4158a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x70]
push 0x4afadc
push eax
call fcn.0041b6a0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00407f20
lea ecx, [ebp - 0x70]
call fcn.004034e0
jmp 0x4158b6
push dword [ebp - 0x80]
lea ecx, [ebp - 0x58]
call fcn.0040a4c0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
mov edi, dword [ebp - 0x74]
cmovae eax, dword [ebp - 0x58]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x58]
call fcn.004034e0
mov ecx, dword [ebp - 0x7c]
mov edx, esi
call fcn.0041fc50
xor ecx, ecx
mov edi, 6
test al, al
cmovne edi, ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b428
mov esp, ebp
pop ebp
ret
call fcn.00401560
call fcn.00470244
int3