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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451da9
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 0x411743
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.00404820
push 0x464120
lea ecx, [ebp - 0x44]
call fcn.00403680
push dword [ebp - 0x68]
lea ecx, [ebp - 0x44]
call fcn.00404a50
push 0x464120
lea ecx, [ebp - 0x44]
call fcn.00403680
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 0x4117ec
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], eax
cmp dword [ebx + 0x14], 8
mov edx, ebx
jb 0x4117f6
mov edx, dword [ebx]
mov ecx, ebx
jb 0x4117fc
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 0x41185c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411852
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a75
push edx
push ecx
call fcn.0041b677
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 0x4118b1
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4118a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a7a
push edx
push ecx
call fcn.0041b677
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 0x4119da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x411a41
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.004123e0
add esp, 0xc
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
jb 0x411905
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x411946
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41193c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a7f
push edx
push ecx
call fcn.0041b677
add esp, 8
push ebx
lea eax, [ebp - 0x2c]
push str.CreateService_failed_with__i
push eax
call fcn.004123e0
mov ebx, eax
add esp, 0xc
cmp esi, ebx
je 0x41199a
mov ecx, esi
call fcn.004012a0
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 0x411a57
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4119ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a84
push edx
push ecx
call fcn.0041b677
add esp, 8
jmp 0x411a57
push dword [ebp - 0x70]
lea ecx, [ebp - 0x5c]
call fcn.00403380
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
jb 0x4119f1
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 0x411a41
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411a37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a89
push edx
push ecx
call fcn.0041b677
add esp, 8
mov edx, esi
mov ecx, ebx
call fcn.0041a870
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.0041b636
mov esp, ebp
pop ebp
ret
call fcn.00436a99
call fcn.00436a99
call fcn.00436a99
call fcn.00436a99
call fcn.00436a99
int3