Function at 0x10022a70
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005a603
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x10076658]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x10076658]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
lea edi, [esp + 0x34]
call fcn.1001edf0
push eax
xor ebx, ebx
mov edx, 0x10069b2c
lea eax, [esp + 0x54]
mov dword [esp + 0x234], ebx
call fcn.1001f0c0
add esp, 4
push eax
mov eax, 0x10069b2c
lea ecx, [esp + 0x8c]
mov byte [esp + 0x234], 1
call fcn.10003910
add esp, 4
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x10022b09
mov eax, dword [esp + 0x50]
push eax
call fcn.1004076b
add esp, 4
mov edi, 7
xor ecx, ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], cx
mov byte [esp + 0x230], 4
cmp dword [esp + 0x48], esi
jb 0x10022b38
mov edx, dword [esp + 0x34]
push edx
call fcn.1004076b
add esp, 4
xor eax, eax
lea esi, [esp + 0xa4]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], ax
call fcn.1003ea00
mov byte [esp + 0x230], 5
xor ecx, ecx
push ebx
mov eax, 0x10064464
lea esi, [esp + 0x54]
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], cx
call fcn.10003430
mov byte [esp + 0x230], 6
xor edx, edx
push ebx
mov eax, 0x10064464
lea esi, [esp + 0x1c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
call fcn.10003430
mov byte [esp + 0x230], 7
xor eax, eax
mov word [esp + 0x34], ax
push ebx
mov eax, 0x10064464
lea esi, [esp + 0x38]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
call fcn.10003430
lea eax, [esp + 0x6c]
mov byte [esp + 0x230], 8
call fcn.1001eef0
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
push ecx
lea edx, [esp + 0x94]
push edx
mov edx, 2
push eax
lea ecx, [edx + 0xe]
lea edi, [esp + 0xb8]
mov byte [esp + 0x244], 9
call fcn.1003eba0
test al, al
mov edi, 8
sete byte [esp + 0x13]
cmp dword [esp + 0x80], edi
jb 0x10022c2a
mov eax, dword [esp + 0x6c]
push eax
call fcn.1004076b
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], cx
cmp dword [esp + 0x48], edi
jb 0x10022c54
mov edx, dword [esp + 0x34]
push edx
call fcn.1004076b
add esp, 4
xor eax, eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], ax
cmp dword [esp + 0x2c], edi
jb 0x10022c76
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1004076b
add esp, 4
xor edx, edx
mov byte [esp + 0x230], 5
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], dx
cmp dword [esp + 0x64], edi
jb 0x10022ca0
mov eax, dword [esp + 0x50]
push eax
call fcn.1004076b
add esp, 4
cmp byte [esp + 0x13], bl
je 0x10022cd2
lea esi, [esp + 0xa4]
call fcn.1003eac0
cmp dword [esp + 0x9c], edi
jb 0x10022ccb
mov ecx, dword [esp + 0x88]
push ecx
call fcn.1004076b
add esp, 4
xor al, al
jmp 0x10022dc2
mov eax, dword [esp + 0x1fc]
cmp eax, ebx
je 0x10022cf1
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea eax, [esp + 0x6c]
call fcn.1001ef20
cmp dword [eax + 0x14], edi
jb 0x10022d07
mov edx, dword [eax]
mov dword [esp + 0x14], edx
jmp 0x10022d0b
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1fc]
cmp eax, ebx
je 0x10022d24
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp dword [esp + 0x80], edi
jb 0x10022d3a
mov edx, dword [esp + 0x6c]
push edx
call fcn.1004076b
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], esi
mov word [esp + 0x18], ax
push ebx
mov eax, 0x10064464
lea esi, [esp + 0x1c]
mov dword [esp + 0x2c], ebx
call fcn.10003430
lea ecx, [esp + 0xa4]
push ecx
mov ecx, esi
mov byte [esp + 0x234], 0xa
call fcn.1003f120
mov byte [esp + 0x13], al
cmp dword [esp + 0x2c], edi
jb 0x10022d86
mov edx, dword [esp + 0x18]
push edx
call fcn.1004076b
add esp, 4
xor eax, eax
lea esi, [esp + 0xa4]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], ax
call fcn.1003eac0
cmp dword [esp + 0x9c], edi
jb 0x10022dbe
mov ecx, dword [esp + 0x88]
push ecx
call fcn.1004076b
add esp, 4
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.10040061
mov esp, ebp
pop ebp
ret