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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45618d
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x46f008]
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 edi, edx
mov dword [ebp - 0x84], ecx
mov eax, dword [ebp + 0xc]
mov esi, 5
mov edx, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x10]
mov ecx, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0
cmp dword [eax + 0x14], 8
jb 0x411818
mov ecx, dword [eax]
mov dword [eax + 0x10], 0
xor eax, eax
mov word [ecx], ax
mov eax, 0x7ffffffe
mov ecx, dword [edx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x411ac1
cmp dword [edx + 0x14], 8
jb 0x41183f
mov edx, dword [edx]
push ecx
push edx
push 1
push 0x4675b0
push ecx
push dword [ebp - 0x80]
lea ecx, [ebp - 0x44]
call fcn.00404700
push 0x4675b0
lea edx, [ebp - 0x44]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403fb0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x411876
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
mov ebx, edi
jb 0x411880
mov ebx, dword [edi]
mov edx, edi
jb 0x411886
mov edx, dword [edi]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push 3
push 0x10
push 0xf01ff
push ebx
push edx
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edx, dword [ebp - 0x18]
mov ebx, eax
cmp edx, 8
jb 0x4118e6
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4118dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ac6
push edx
push ecx
call fcn.0041fbbf
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 0x41193b
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411931
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ac6
push edx
push ecx
call fcn.0041fbbf
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
test ebx, ebx
jne 0x411a28
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x431
je 0x411a8c
call ebx
mov edi, eax
lea eax, [ebp - 0x2c]
push edi
push str._EAC_Setup___Error__CreateService_failed_with__i.
push eax
call fcn.004123f0
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
jb 0x41198c
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4119cd
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4119c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411acb
push edx
push ecx
call fcn.0041fbbf
add esp, 8
push edi
lea eax, [ebp - 0x74]
push str.CreateService_failed_with__i
push eax
call fcn.004123f0
mov ecx, dword [ebp - 0x7c]
add esp, 0xc
push eax
call fcn.00403700
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x411aa3
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411a1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ad0
push edx
push ecx
call fcn.0041fbbf
add esp, 8
jmp 0x411aa3
push dword [ebp - 0x80]
lea ecx, [ebp - 0x5c]
call fcn.00403820
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
jb 0x411a3f
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x411a8c
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411a82
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ad5
push edx
push ecx
call fcn.0041fbbf
add esp, 8
mov edx, dword [ebp - 0x7c]
mov ecx, edi
call fcn.0041ecf0
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xfffffffa
add esi, 6
mov eax, esi
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.0041fb7c
mov esp, ebp
pop ebp
ret
call fcn.00401360
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
call fcn.00439d3f
int3