Function at 0x1003070d
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100876fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003077d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x1003075e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 4
jge 0x10030778
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x48]
call fcn.100185ee
or dword [eax], 0xffffffff
jmp 0x10030753
jmp 0x1003099d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x5c], 0x648261f9
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x100307b6
push 0x580c
push 0x3afd
push 0
call fcn.1002f187
add esp, 0xc
mov byte [ebp - 0xe], 0
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x100307e7
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x129c
push 0x81f
push 0x15be
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0x7fc6
lea eax, [ebp - 0x24]
push eax
push 0x22af
push 0x183f
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.10032bff
add esp, 0x18
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
jne 0x1003099d
mov dword [ebp - 0x2c], 0xfffffff8
mov dword [ebp - 0x60], 0xffffffff
mov dword [ebp - 0x64], 0xa3062a4b
mov dword [ebp - 0x1c], 0
push 0
call fcn.1002d43d
pop ecx
xor eax, eax
inc eax
sub eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x1c]
jne 0x1003084c
mov dword [ebp - 0x4c], 1
jmp 0x10030850
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x2c], 7
imul eax, dword [ebp - 0x1c], 0x67f6
cmp dword [ebp - 0x2c], eax
je 0x1003086c
mov dword [ebp - 0x30], 1
jmp 0x10030870
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x30], eax
jne 0x10030881
mov dword [ebp - 0x34], 1
jmp 0x10030885
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x24]
and eax, 0x40
je 0x1003096f
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x38], 0x94643cdf
push 4
lea ecx, [ebp - 0x70]
call fcn.1001855e
and dword [ebp - 4], 0
mov dword [ebp - 0x58], 0x7f59ec13
mov dword [ebp - 0x20], 0
jmp 0x100308cd
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
jge 0x100308e6
push dword [ebp - 0x20]
lea ecx, [ebp - 0x70]
call fcn.100185ee
mov dword [eax], 0xfffd
jmp 0x100308c6
push 0x1ff4
push 0x1e20
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
call fcn.1002d0fa
add esp, 0x14
mov dword [ebp - 0x14], 0
jmp 0x10030912
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jg 0x10030954
mov dword [ebp - 0x50], 0x7071658a
mov dword [ebp - 0x54], 0x42c3b03c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x11ee
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0x4f46
call fcn.10031d45
add esp, 0x24
jmp 0x1003090b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.100185e9
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + 0x20]
mov dword [ecx], eax
jmp 0x1003099d
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x24]
and eax, 0x80
je 0x1003099d
push 0x783b
push 0
push 0x35b8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x767
call fcn.1002f461
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret