Function at 0x411e39
Capabilities:
Create service
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
cmp dword [0x4ace4c], esi
push edi
mov dword [ebp - 0x3c], ecx
jne 0x411eed
lea eax, [ebp - 4]
push eax
push 0x4ace4c
mov edi, 0x4970ac
push edi
push 0x49709c
mov dword [ebp - 4], esi
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ace50
push edi
push 0x49708c
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ace54
push edi
push 0x497074
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ace58
push edi
push 0x497064
call fcn.00431911
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4ace5c
push edi
push 0x497054
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ace60
push edi
push 0x497040
call fcn.00431911
add esp, 0x20
cmp dword [0x4ace4c], esi
jne 0x411eed
mov eax, 0x80004001
jmp 0x412333
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_SetLastError]
push esi
mov dword [ebp - 4], esi
call ebx
push 9
pop ecx
push 0xf003f
xor eax, eax
push esi
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x20], esi
xor edi, edi
call dword [0x4ace4c]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x4122cf
push 7
lea eax, [ebp + 8]
push eax
push 0x497038
mov dword [ebp - 0x10], esi
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x411f4b
inc edi
jmp 0x411f69
push 7
lea eax, [ebp + 8]
push eax
push 0x497030
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x411f69
mov dword [ebp - 0x10], 1
push 5
lea eax, [ebp + 8]
push eax
push 0x497028
call fcn.00437ad0
movzx eax, al
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], 0x3f
jne 0x411fb4
inc eax
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 8]
push eax
call fcn.00410308
mov eax, dword [ebp + 8]
cmp word [eax], si
pop ecx
je 0x411fac
mov word [eax], si
add dword [ebp + 8], 2
lea ecx, [ebp + 8]
call fcn.0040bc51
cmp edi, esi
je 0x41215b
lea ecx, [ebp - 0x28]
call fcn.00435d62
lea ecx, [ebp - 0xc]
call fcn.00435d62
lea ecx, [ebp - 8]
call fcn.00435d62
lea ecx, [ebp - 0x10]
call fcn.00435d62
lea ecx, [ebp - 4]
call fcn.00435d62
lea ecx, [ebp - 0x30]
call fcn.00435d62
lea ecx, [ebp - 0x2c]
call fcn.00435d62
push esi
push 0x2c
pop edi
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 1
call fcn.0042c75a
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042c75a
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004103cf
push edi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004103cf
push edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004103cf
add esp, 0x44
push esi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042c75a
push esi
push edi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042c75a
push esi
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042c75a
push esi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042c75a
add esp, 0x40
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 4]
call fcn.00435da9
mov ecx, dword [ebp - 4]
lea eax, [edi + edi]
mov word [eax + ecx + 2], si
mov ecx, dword [ebp - 4]
mov word [eax + ecx], si
mov eax, dword [ebp - 0x30]
cmp word [eax], si
mov edi, eax
jne 0x4120cb
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp word [eax], si
jne 0x4120de
push dword [ebp - 0x28]
lea ecx, [ebp - 0xc]
call fcn.0044042b
mov eax, dword [ebp - 4]
jmp 0x4120f1
cmp word [eax], 0x2f
jne 0x4120ef
mov word [eax], si
mov eax, dword [ebp + 8]
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], si
jne 0x4120e3
push dword [ebp - 0x2c]
push edi
push dword [ebp - 4]
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x24]
push 0xf01ff
push dword [ebp - 0xc]
push dword [ebp - 0x28]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.DLL_CreateServiceW]
lea ecx, [ebp - 0x2c]
mov edi, eax
call fcn.0043092f
lea ecx, [ebp - 0x30]
call fcn.0043092f
lea ecx, [ebp - 4]
call fcn.0043092f
lea ecx, [ebp - 0x10]
call fcn.0043092f
lea ecx, [ebp - 8]
call fcn.0043092f
lea ecx, [ebp - 0xc]
call fcn.0043092f
lea ecx, [ebp - 0x28]
jmp 0x4121b7
cmp dword [ebp - 0x10], esi
je 0x4121c1
push 0x497018
lea ecx, [ebp - 8]
call fcn.004403c3
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.00435dd0
push dword [ebp - 8]
mov ecx, dword [ebp - 0x3c]
call fcn.00411e39
lea ecx, [ebp - 0x10]
call fcn.00435d62
push esi
call ebx
push 0x10020
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [0x4ace50]
mov edi, eax
cmp edi, esi
je 0x4121ac
push edi
call dword [sym.imp.ADVAPI32.DLL_DeleteService]
lea ecx, [ebp - 0x10]
call fcn.0043092f
lea ecx, [ebp - 8]
call fcn.0043092f
jmp 0x4122cf
mov ecx, dword [ebp + 8]
xor eax, eax
cmp word [ecx], 0x21
sete al
cmp eax, esi
mov dword [ebp - 8], eax
je 0x4121d8
add dword [ebp + 8], 2
lea ecx, [ebp + 8]
call fcn.0040bc51
push dword [ebp + 8]
call fcn.0040eec0
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x14], esi
mov dword [ebp + 8], eax
setne cl
mov dword [ebp - 0x20], ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffffffd0
add ecx, 0x34
push ecx
push eax
push dword [ebp - 0x18]
call dword [0x4ace50]
mov edi, eax
cmp edi, esi
je 0x4122cf
cmp dword [ebp - 0x14], esi
je 0x412281
lea eax, [ebp - 0x40]
push eax
push 0x24
lea eax, [ebp - 0x64]
push eax
push esi
push edi
call dword [0x4ace54]
mov ebx, eax
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp ebx, esi
mov dword [ebp - 4], eax
jne 0x41224c
cmp eax, esi
je 0x4122b5
mov dword [ebp - 0x1c], eax
jmp 0x4122b5
push dword [ebp - 0x44]
lea eax, [ebp - 0x210]
push dword [ebp - 0x48]
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push 0x496fa8
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0x2c
jmp 0x4122b5
cmp dword [ebp - 8], esi
jle 0x412295
lea eax, [ebp - 0x80]
push eax
push 1
push edi
call dword [0x4ace58]
jmp 0x41229e
push esi
push esi
push edi
call dword [0x4ace5c]
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x4122b5
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x24], esi
je 0x4122ca
cmp dword [ebp - 0x20], esi
jne 0x4122ca
push dword [ebp - 8]
push edi
call fcn.0040d4d7
pop ecx
pop ecx
cmp dword [ebp - 0xc], esi
jne 0x4122d8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
cmp edi, esi
pop ebx
je 0x4122e4
push edi
call dword [0x4ace60]
cmp dword [ebp - 0x18], esi
je 0x4122f2
push dword [ebp - 0x18]
call dword [0x4ace60]
cmp dword [ebp - 0x14], esi
je 0x412330
cmp dword [ebp - 0x20], esi
jne 0x412301
push dword [ebp - 4]
jmp 0x412309
cmp dword [ebp - 0x1c], esi
je 0x41231e
push dword [ebp - 0x1c]
lea eax, [ebp - 0x210]
push 0x494e3c
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x14]
call fcn.00435749
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4