Function at 0x47ade6
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x47b019
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xe8], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x108], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x47afee
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
movzx eax, byte [eax]
test eax, eax
je 0x47afce
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
cmp dword [eax], 0
je 0x47af35
or eax, 0xffffffff
je 0x47af35
mov dword [ebp - 0x50], 1
jmp 0x47af39
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
imul eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x94]
mov dword [ecx], eax
mov eax, dword [ebp - 0x94]
cmp dword [eax], 0
jae 0x47af5e
mov dword [ebp - 0x68], 1
jmp 0x47af62
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x68]
jl 0x47af75
mov dword [ebp - 0x40], 1
jmp 0x47af79
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x40]
jne 0x47af8f
mov dword [ebp - 0x80], 1
jmp 0x47af93
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x80], eax
jl 0x47afa6
mov dword [ebp - 0x48], 1
jmp 0x47afaa
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x48], eax
jge 0x47afbd
mov dword [ebp - 0x70], 1
jmp 0x47afc1
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x70]
mov dword [eax], ecx
jmp 0x47afec
push 0
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_RegQueryInfoKeyW]
jmp 0x47b014
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], eax
push dword [ebp - 0xac]
push 0x1b07
push 0x611c
push 0
call fcn.0047bcfe
add esp, 0x10
jmp 0x47b431
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xf4], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0xfc], eax
mov dword [ebp - 4], 0xa48bbca6
mov dword [ebp - 0xc], 0xffffffff
push 3
lea ecx, [ebp - 0x2c]
call fcn.00450d2f
mov dword [ebp - 0x14], 0
jmp 0x47b05c
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x47b075
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.00450e1d
mov dword [eax], 3
jmp 0x47b055
mov dword [ebp - 4], 0
jmp 0x47b085
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xf
jle 0x47b0a2
mov dword [ebp - 0xb4], 0xdc4b
cmp dword [ebp - 0xb4], 0
je 0x47b0a0
jmp 0x47b0a2
jmp 0x47b07e
cmp dword [ebp - 4], 0
jne 0x47b187
cmp dword [ebp - 4], 0
je 0x47b114
cmp dword [ebp - 4], 0
jne 0x47b0c4
cmp dword [ebp - 4], 0
jne 0x47b0c4
and dword [ebp - 0x30], 0
jmp 0x47b0cb
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x30], eax
jl 0x47b0df
mov dword [ebp - 0x90], 1
jmp 0x47b0e6
and dword [ebp - 0x90], 0
cmp dword [ebp - 0x90], 0
jl 0x47b0f8
mov dword [ebp - 0x58], 1
jmp 0x47b0fc
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x47b10e
cmp dword [ebp - 0xc], 0
je 0x47b114
and dword [ebp - 0x78], 0
jmp 0x47b11b
mov dword [ebp - 0x78], 1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x78]
jge 0x47b12c
mov dword [ebp - 0x60], 1
jmp 0x47b130
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x60], eax
jne 0x47b144
mov dword [ebp - 0x88], 1
jmp 0x47b14b
and dword [ebp - 0x88], 0
cmp dword [ebp - 0x88], 0x30b91ee4
jne 0x47b169
mov eax, 0xf15cc7c4
test eax, eax
je 0x47b169
mov dword [ebp - 0x34], 1
jmp 0x47b16d
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 4]
je 0x47b187
cmp dword [ebp - 0xc], 0
jne 0x47b187
and dword [ebp - 0xbc], 0
jmp 0x47b191
mov dword [ebp - 0xbc], 1
mov eax, 0xcabe
sub eax, dword [ebp - 4]
sub eax, dword [ebp - 4]
cmp eax, 1
jl 0x47b1aa
mov dword [ebp - 0x3c], 1
jmp 0x47b1ae
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x3c], eax
je 0x47b1c2
mov dword [ebp - 0xc4], 1
jmp 0x47b1c9
and dword [ebp - 0xc4], 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00450e1d
push 0
lea ecx, [ebp - 0x2c]
call fcn.00450e1d
cmp dword [eax], 0
jne 0x47b1ee
cmp dword [ebp - 0xc], 0
jne 0x47b1ee
and dword [ebp - 0x44], 0
jmp 0x47b1f5
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x44]
sub eax, 0x2fa9ed9c
je 0x47b3d8
mov dword [ebp - 0x20], 0xffff
mov dword [ebp - 8], 1
mov dword [ebp - 0x1c], 0xfafeceb2
mov dword [ebp - 0x64], 0xfffd
mov dword [ebp - 0xcc], 1
mov dword [ebp - 0xd4], 0xfffffffe
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x47b24c
push 0
push 0x60c
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x20], eax
jg 0x47b26f
mov dword [ebp - 0x4c], 1
jmp 0x47b273
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
jae 0x47b28c
mov dword [ebp - 0x54], 0xc3f1
mov eax, dword [ebp - 0x54]
dec eax
mov dword [ebp - 0x54], eax
jmp 0x47b3d6
mov dword [ebp - 0x120], 0xc19c50ed
mov byte [ebp - 0xe], 0
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x47b2ae
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 8], 0
jmp 0x47b2be
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jg 0x47b3d6
push dword [ebp - 8]
lea ecx, [ebp - 0x2c]
call fcn.00450e1d
mov ecx, dword [ebp - 4]
cmp dword [eax], ecx
jge 0x47b2e3
mov dword [ebp - 0x5c], 1
jmp 0x47b2e7
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 4], eax
jle 0x47b2fe
mov dword [ebp - 0x6c], 1
jmp 0x47b302
and dword [ebp - 0x6c], 0
mov dword [ebp - 0x1c], 0x1672
imul eax, dword [ebp - 0x1c], 0xfffffffb
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x11c], eax
push dword [ebp - 8]
lea ecx, [ebp - 0x2c]
call fcn.00450e1d
cmp dword [ebp - 0xcc], 0
je 0x47b345
push 1
lea ecx, [ebp - 0x2c]
call fcn.00450e1d
cmp dword [eax], 0
je 0x47b345
mov dword [ebp - 0x74], 1
jmp 0x47b349
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x74]
jg 0x47b35a
mov dword [ebp - 0x7c], 1
jmp 0x47b35e
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x7c], eax
jl 0x47b372
mov dword [ebp - 0x84], 1
jmp 0x47b379
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xd4], eax
push dword [ebp - 8]
lea ecx, [ebp - 0x2c]
call fcn.00450e1d
push dword [ebp - 8]
lea ecx, [ebp - 0x2c]
call fcn.00450e1d
push dword [ebp - 8]
lea ecx, [ebp - 0x2c]
call fcn.00450e1d
mov eax, 0x1bd9
test eax, eax
jne 0x47b3be
cmp dword [ebp - 0xc], 0
jne 0x47b3be
and dword [ebp - 0x8c], 0
jmp 0x47b3c8
mov dword [ebp - 0x8c], 1
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x1c], eax
jmp 0x47b2b7
jmp 0x47b3f8
mov dword [ebp - 0xdc], 0xfff9
mov dword [ebp - 0xe4], 0xadbe56f6
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe4], eax
lea ecx, [ebp - 0x2c]
call fcn.00450e01
push 0x35a2
push dword [ebp - 0xec]
push dword [ebp - 0xf4]
push 1
push 0x163c
mov eax, dword [ebp - 0xfc]
movzx eax, byte [eax]
push eax
push 0
push 0x179e
call fcn.00487f37
add esp, 0x20
mov esp, ebp
pop ebp
ret