Function at 0x71dd70
Capabilities:
Create service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x8910e6
push eax
mov dword fs:[0], esp
sub esp, 0xa48
push ebx
push esi
push edi
call fcn.00662400
test eax, eax
je 0x71dda6
mov dword [0x9dfba8], 0x32
jmp 0x71e174
mov edi, dword [esp + 0xa6c]
cmp edi, 4
ja 0x71e16a
mov eax, dword [esp + 0xa64]
xor ebx, ebx
cmp eax, ebx
je 0x71e16a
cmp word [eax], bx
je 0x71e16a
mov esi, dword [esp + 0xa7c]
cmp esi, ebx
je 0x71e16a
cmp word [esi], bx
je 0x71e16a
push ebp
mov dword [0x9dfba8], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0xa
mov dword [esp + 0x28], 2
push 0xa
push ebx
push ebx
mov dword [esp + 0xa6c], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x71de46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x71e0a4
test byte [esp + 0x24], 8
je 0x71de66
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x71de66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x18], ebx
je 0x71e0a4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x71e0f9
lea ecx, [esp + 0x10]
call fcn.0071dc50
test eax, eax
je 0x71deb4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x71e0f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x71e0f9
mov ebp, dword [esp + 0xa84]
mov dword [esp + 0x38], ebx
cmp ebp, ebx
mov dword [esp + 0x2c], ebx
je 0x71dee1
cmp word [ebp], bx
je 0x71dee1
lea eax, [esp + 0x38]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x3c]
xor esi, esi
call fcn.0082aad0
mov eax, dword [esp + 0xa88]
mov byte [esp + 0xa60], 1
cmp eax, ebx
je 0x71df09
push eax
lea ecx, [esp + 0x40]
call fcn.0082acac
mov eax, dword [esp + 0xa8c]
cmp eax, ebx
je 0x71df1e
push eax
lea ecx, [esp + 0x40]
call fcn.0082acac
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x25a]
mov word [esp + 0x258], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x34], 0x400
cmp eax, ebx
jle 0x71df72
lea ecx, [esp + 0x34]
lea edx, [esp + 0x258]
push ecx
push edx
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.0064e8f0
add esp, 0x10
test eax, eax
je 0x71e155
lea esi, [esp + 0x258]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x71dfc5
mov ecx, dword [esp + 0x24]
push ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x71dfa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x71dfc5
test byte [esp + 0x24], 8
je 0x71dfc5
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x71dfc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xa94]
mov ecx, dword [esp + 0xa90]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0xa88]
push esi
push edx
mov edx, dword [esp + 0xa84]
push ebp
push ecx
mov ecx, dword [esp + 0xa88]
push edx
mov edx, dword [esp + 0xa88]
push ecx
mov ecx, dword [esp + 0xa98]
push edx
mov edx, dword [esp + 0xa8c]
push 0xf01ff
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
cmp esi, ebx
je 0x71e084
mov ebp, dword [esp + 0xa7c]
mov dword [esp + 0x30], 1
cmp ebp, ebx
mov dword [esp + 0x1c], esi
je 0x71e08e
call fcn.0079b090
cmp dword [0x9e11fc], ebx
je 0x71e08e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x52]
mov word [esp + 0x50], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [esp + 0x54]
push 0x104
push eax
push 0xffffffffffffffff
push ebp
call fcn.0064d4f0
add esp, 0x14
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x50]
push edx
push 1
push esi
mov dword [esp + 0x38], ecx
call dword [0x9e11fc]
jmp 0x71e08e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa60], bl
call fcn.0082ab03
cmp dword [esp + 0x30], ebx
jne 0x71e0bf
cmp dword [0x9dfba8], ebx
jne 0x71e0bf
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x71e0ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9dfba8], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, ebx
pop ebp
je 0x71e0d5
push eax
call esi
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x71e0e8
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x71e0f3
push eax
call esi
mov eax, dword [esp + 0x2c]
jmp 0x71e176
mov ecx, dword [esp + 0xa94]
mov edx, dword [esp + 0xa90]
push ecx
mov ecx, dword [esp + 0xa90]
push edx
mov edx, dword [esp + 0xa90]
push ecx
mov ecx, dword [esp + 0xa90]
push edx
mov edx, dword [esp + 0xa8c]
push ecx
mov ecx, dword [esp + 0xa8c]
push esi
push edx
mov edx, dword [esp + 0xa90]
push ecx
mov ecx, dword [esp + 0xa8c]
push edx
push edi
push ecx
push eax
call fcn.0071f050
add esp, 0x30
mov dword [esp + 0x30], eax
jmp 0x71e09e
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa60], bl
call fcn.0082ab03
jmp 0x71e0a4
mov dword [0x9dfba8], 0x57
xor eax, eax
mov ecx, dword [esp + 0xa54]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa54
ret