Function at 0x4116b0
Capabilities:
Create service
Modify service
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451d99
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x6c], ecx
mov esi, dword [ebp + 0x10]
mov edi, 5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x60], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x70], eax
mov eax, esi
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 0
mov dword [esi + 0x10], 0
jb 0x411713
mov eax, dword [esi]
xor edx, edx
mov word [eax], dx
mov dword [ebp - 4], edx
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, dword [ecx + 0x10]
lea ecx, [ebp - 0x44]
inc eax
mov dword [ebp - 0x34], edx
push eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x60], 1
call fcn.00404800
push 0x463cc8
lea ecx, [ebp - 0x44]
call fcn.00403660
push dword [ebp - 0x68]
lea ecx, [ebp - 0x44]
call fcn.00404a30
push 0x463cc8
lea ecx, [ebp - 0x44]
call fcn.00403660
mov ecx, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ecx]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x60], ecx
jb 0x4117bc
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], eax
cmp dword [ebx + 0x14], 8
mov edx, ebx
jb 0x4117c6
mov edx, dword [ebx]
mov ecx, ebx
jb 0x4117cc
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x60]
push 1
push 3
push 0x10
push 0xf01ff
push edx
push ecx
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x60], eax
cmp edx, 8
jb 0x41182c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411822
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a45
push edx
push ecx
call fcn.0041b657
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x411881
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411877
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a4a
push edx
push ecx
call fcn.0041b657
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp dword [ebp - 0x60], eax
jne 0x4119aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x411a11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x44]
push ebx
push str._EAC_Setup___Error__CreateService_failed_with__i.
push eax
call fcn.004123b0
add esp, 0xc
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
jb 0x4118d5
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x411916
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41190c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a4f
push edx
push ecx
call fcn.0041b657
add esp, 8
push ebx
lea eax, [ebp - 0x2c]
push str.CreateService_failed_with__i
push eax
call fcn.004123b0
mov ebx, eax
add esp, 0xc
cmp esi, ebx
je 0x41196a
mov ecx, esi
call fcn.00401280
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x411a27
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41199e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a54
push edx
push ecx
call fcn.0041b657
add esp, 8
jmp 0x411a27
push dword [ebp - 0x70]
lea ecx, [ebp - 0x5c]
call fcn.00403360
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
jb 0x4119c1
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x411a11
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411a07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a59
push edx
push ecx
call fcn.0041b657
add esp, 8
mov edx, esi
mov ecx, ebx
call fcn.0041a850
movzx edi, al
neg edi
sbb edi, edi
and edi, 0xfffffffa
add edi, 6
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041b616
mov esp, ebp
pop ebp
ret
call fcn.00436a89
call fcn.00436a89
call fcn.00436a89
call fcn.00436a89
call fcn.00436a89
int3