Function at 0x46017b
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
movzx eax, byte [ebp + 0x44]
test eax, eax
je 0x4604e1
lea eax, [ebp + 0x28]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x48]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0xa4], eax
lea eax, [ebp + 0x3c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x7c]
movzx eax, byte [eax]
test eax, eax
je 0x46045d
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xac]
movzx eax, byte [eax]
test eax, eax
je 0x4602d9
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
test eax, eax
je 0x4602d4
push 0
push 0x5c5a
push 0x21cd
push 0x3aab
push 0
push 0xc73
push 0x502e
push 0x6c71
push 0x6d6
push 0
push 0x3c4f
push 0x1231
call fcn.0045d432
add esp, 0x30
jmp 0x460458
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x460374
mov dword [ebp - 0x28], 1
jmp 0x460378
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x42e11914
jl 0x4603a7
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
jne 0x4603a7
and dword [ebp - 0x10], 0
jmp 0x4603ae
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp dword [ebp - 0x10], eax
jle 0x4603c1
mov dword [ebp - 0x2c], 1
jmp 0x4603c5
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x88]
mov eax, dword [eax]
cmp dword [ebp - 0x2c], eax
jne 0x4603eb
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x4603eb
mov eax, dword [ebp - 0x90]
cmp dword [eax], 0
jne 0x4603eb
and dword [ebp - 0x14], 0
jmp 0x4603f2
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
imul eax, dword [ebp - 0x14]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x46041a
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
je 0x46041a
mov dword [ebp - 0x30], 1
jmp 0x46041e
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jl 0x46043d
mov eax, dword [ebp - 0x98]
cmp dword [eax], 0
je 0x46043d
mov dword [ebp - 0xa0], 1
jmp 0x460444
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0xf0c3da55
jmp 0x4604df
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
movzx eax, byte [eax]
test eax, eax
je 0x4604a0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x4604df
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0xfffffffa
jmp 0x4604cb
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xfffffff0
jge 0x4604df
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x4604dd
jmp 0x4604df
jmp 0x4604c0
jmp 0x460535
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xd8], eax
lea eax, [ebp + 0x38]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
movzx eax, byte [eax]
test eax, eax
je 0x46050a
push 0
call fcn.0046697c
pop ecx
jmp 0x460535
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xe0], eax
push 0x225
push 0x51da
push dword [ebp - 0xe0]
push 0x3aa8
push 0
call fcn.00473343
add esp, 0x14
mov esp, ebp
pop ebp
ret