Function at 0x10049794
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073387
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x164
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1004a090
lea eax, [ebp + 0x10]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x110], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0xb8]
movzx eax, byte [eax]
test eax, eax
je 0x1004983c
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
movzx eax, byte [eax]
test eax, eax
je 0x10049837
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 0x1004a08e
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0xa4], eax
mov eax, dword [0x1064d3e4]
and eax, 1
jne 0x10049885
mov eax, dword [0x1064d3e4]
or eax, 1
mov dword [0x1064d3e4], eax
and dword [ebp - 4], 0
mov ecx, 0x1064d3c4
call fcn.10021847
push 0x1007390a
call fcn.10059c3b
pop ecx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], 0xddc85f70
push 1
lea ecx, [ebp - 0x58]
call fcn.10021783
mov dword [ebp - 4], 1
mov dword [ebp - 0x20], 0xfffffff6
mov dword [ebp - 0x74], 0x843334ad
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x10c], 0x582d056b
mov dword [ebp - 0x104], 0xffffffff
mov dword [ebp - 0x90], 0x135e
mov dword [ebp - 0xe8], 0x100088fc
cmp dword [ebp - 0x90], 0x172f
jle 0x1004998d
and dword [ebp - 0x40], 0
jmp 0x100498f7
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x49fd
jge 0x1004998d
and dword [ebp - 0x38], 0
jmp 0x10049911
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x6e8c
jge 0x10049988
and dword [ebp - 0x4c], 0
jmp 0x10049927
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x6d5e
jge 0x10049986
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x4c]
shl eax, cl
xor eax, dword [ebp - 0x40]
cdq
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], edx
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
lea ecx, [ebp - 0x15c]
call fcn.1000a4b3
pop ecx
pop ecx
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
call fcn.10021246
push eax
call fcn.10059c65
pop ecx
lea ecx, [ebp - 0x15c]
call fcn.1002123c
jmp 0x10049920
jmp 0x1004990a
jmp 0x100498f0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x90], 0x1291
jge 0x100499a9
push dword [ebp - 0xe8]
call fcn.10059c65
pop ecx
jmp 0x100499c5
mov dword [ebp - 4], 1
jmp 0x100499d5
mov dword [ebp - 0x44], 0
jmp 0x100499e5
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 1
jge 0x100499fe
push dword [ebp - 0x44]
lea ecx, [ebp - 0x58]
call fcn.10021821
mov dword [eax], 0x5461
jmp 0x100499de
mov dword [ebp - 0x34], 0
jmp 0x10049a0e
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffef
jge 0x10049e04
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 0x51978e60
mov dword [ebp - 0x48], 0
jmp 0x10049a36
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 2
jge 0x10049a49
mov eax, dword [ebp - 0x48]
mov dword [ebp + eax*4 - 0x2c], 0x8c3ad3b3
jmp 0x10049a2f
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x2c], 0
jmp 0x10049a6e
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x2c]
inc eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x2c], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x2c], 0
jg 0x10049dff
mov dword [ebp - 0x30], 0x79a20b28
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x2c], 0xeff3
jl 0x10049aa2
mov dword [ebp - 0xac], 1
jmp 0x10049aa9
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x1c], eax
imul eax, dword [ebp - 0x1c], 0xfffc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
jmp 0x10049acc
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x10049dfa
mov dword [ebp - 0x5c], 1
push 4
pop eax
shl eax, 0
push dword [ebp + eax - 0x2c]
lea ecx, [ebp - 0x58]
call fcn.10021821
mov esi, dword [ebp - 0x30]
push 4
pop eax
shl eax, 0
push dword [ebp + eax - 0x2c]
lea ecx, [ebp - 0x58]
call fcn.10021821
cmp esi, dword [eax]
jg 0x10049b11
mov dword [ebp - 0x68], 1
jmp 0x10049b15
and dword [ebp - 0x68], 0
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x2c], 0xffffffff
je 0x10049b2e
mov dword [ebp - 0xd4], 1
jmp 0x10049b35
and dword [ebp - 0xd4], 0
push 0
lea ecx, [ebp - 0x58]
call fcn.10021821
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], eax
jl 0x10049b53
mov dword [ebp - 0xb4], 1
jmp 0x10049b5a
and dword [ebp - 0xb4], 0
imul eax, dword [ebp - 0xb4], 0x6a3f
add eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x30]
jne 0x10049b75
mov dword [ebp - 0x60], 1
jmp 0x10049b79
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x60], eax
je 0x10049b8a
mov dword [ebp - 0x70], 1
jmp 0x10049b8e
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x74]
cmp eax, 1
je 0x10049bac
mov dword [ebp - 0xb0], 1
jmp 0x10049bb3
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0
jmp 0x10049bd2
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x10049df5
mov dword [ebp - 0x88], 0xf71350d
mov byte [ebp - 0x21], 0
push 0
push 0x6ff9
push 0x7f41
lea eax, [ebp - 0x21]
push eax
push 0
push 0x4bcf
push 0x297d
call fcn.1004a0f5
add esp, 0x1c
push 4
pop eax
shl eax, 0
mov esi, dword [ebp + eax - 0x2c]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x58]
call fcn.10021821
xor ecx, ecx
inc ecx
sub ecx, dword [eax]
cmp esi, ecx
jl 0x10049c35
mov dword [ebp - 0x78], 1
jmp 0x10049c39
and dword [ebp - 0x78], 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x58]
call fcn.10021821
mov ecx, dword [ebp - 0x78]
cmp ecx, dword [eax]
jg 0x10049c57
mov dword [ebp - 0xf4], 1
jmp 0x10049c5e
and dword [ebp - 0xf4], 0
push 4
pop eax
shl eax, 0
push dword [ebp + eax - 0x2c]
lea ecx, [ebp - 0x58]
call fcn.10021821
push dword [ebp - 0x18]
lea ecx, [ebp - 0x58]
call fcn.10021821
mov ecx, dword [ebp - 0x30]
cmp dword [eax], ecx
jl 0x10049c8e
mov dword [ebp - 0x98], 1
jmp 0x10049c95
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
add eax, 0x1957c4e3
je 0x10049cb2
push 5
pop eax
test eax, eax
je 0x10049cb2
mov dword [ebp - 0x80], 1
jmp 0x10049cb6
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x20]
jne 0x10049ccd
mov dword [ebp - 0xdc], 1
jmp 0x10049cd4
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x20], eax
je 0x10049ce8
mov dword [ebp - 0xfc], 1
jmp 0x10049cef
and dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x130], eax
push 4
pop eax
shl eax, 0
mov esi, dword [ebp + eax - 0x2c]
push 0
lea ecx, [ebp - 0x58]
call fcn.10021821
cmp esi, dword [eax]
jl 0x10049d1c
mov dword [ebp - 0xa8], 1
jmp 0x10049d23
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x5c], eax
mov esi, dword [ebp - 0x5c]
push 4
pop eax
shl eax, 0
push dword [ebp + eax - 0x2c]
lea ecx, [ebp - 0x58]
call fcn.10021821
imul esi, dword [eax]
cmp esi, 0xc7435724
jae 0x10049d64
mov dword [ebp - 0xa0], 1
jmp 0x10049d6b
and dword [ebp - 0xa0], 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x58]
call fcn.10021821
mov eax, dword [eax]
cmp eax, dword [ebp - 0xa0]
jl 0x10049d89
mov dword [ebp - 0x64], 1
jmp 0x10049d8d
and dword [ebp - 0x64], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp + eax - 0x2c]
cmp ecx, 0xbd42f903
jne 0x10049dae
mov dword [ebp - 0xe4], 1
jmp 0x10049db5
and dword [ebp - 0xe4], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x2c]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x140], eax
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x2c]
cmp dword [ebp - 0x5c], eax
je 0x10049de6
mov dword [ebp - 0x6c], 1
jmp 0x10049dea
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
jmp 0x10049bcb
jmp 0x10049ac5
jmp 0x10049a59
jmp 0x10049a07
push 0x153a
push 0x756e
push 1
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x6cc1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x169d
lea eax, [ebp - 0x34]
push eax
push 1
push 0x4341
call fcn.10045522
add esp, 0x30
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.10021805
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0x134]
push eax
mov ecx, 0x1064d3c4
call fcn.100218fe
push eax
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x13c]
push eax
mov ecx, 0x1064d3c4
call fcn.10021915
mov ecx, eax
call fcn.10021770
movzx eax, al
test eax, eax
je 0x10049edf
push 1
push 1
push 0x236d
push 0x4e21
push 0x5e19
push 1
push 0x522e
call fcn.100457da
add esp, 0x1c
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x108]
push eax
mov ecx, 0x1064d3c4
call fcn.1004dec1
mov ecx, dword [ebp - 0xa4]
mov al, byte [eax]
mov byte [ecx], al
jmp 0x1004a0c7
mov dword [ebp - 0x8c], 6
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x94], 1
mov dword [ebp - 0x9c], 0x6aeba4d3
mov dword [ebp - 0xf8], 0xb42b8ff
mov dword [ebp - 0x118], 3
push 3
lea ecx, [ebp - 0x12c]
call fcn.10021783
mov dword [ebp - 4], 4
mov dword [ebp - 0xbc], 0x5375bb79
push 0x75d1
push 0x2969
push 0x27d8
push 1
lea eax, [ebp - 0x12c]
push eax
push 1
push 0x461e
push 0x6418
lea eax, [ebp - 0x138]
push eax
call fcn.1004538e
add esp, 0x24
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push 0xaf8
lea eax, [ebp - 0x9c]
push eax
push 1
push 0x27ce
push 1
push 0x221b
lea eax, [ebp - 0x94]
push eax
call fcn.10045a23
add esp, 0x24
push 0x2237
push 1
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x94]
push eax
push 1
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xf8]
push eax
push 0x74ff
lea eax, [ebp - 0x12c]
push eax
push 0x2caf
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xbc]
push eax
push 0x6cf7
call fcn.10045dbd
add esp, 0x38
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.10021805
mov eax, dword [ebp - 0x3c]
push dword [eax]
lea eax, [ebp - 0x174]
push eax
call fcn.10043ef4
pop ecx
pop ecx
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0xc8]
call fcn.10021246
mov al, byte [eax]
mov byte [ebp - 0x11], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x174]
call fcn.1002170f
push 0x1064d3c4
push 0
push 0x2164
lea eax, [ebp - 0x11]
push eax
push 0x770f
push 0x7493
push 0x6063
push dword [ebp - 0x3c]
push 1
call fcn.10046185
add esp, 0x24
mov eax, dword [ebp - 0xa4]
mov cl, byte [ebp - 0x11]
mov byte [eax], cl
jmp 0x1004a0c7
jmp 0x1004a0c7
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe0], eax
push dword [ebp - 0xd0]
push 1
push dword [ebp - 0xd8]
push dword [ebp - 0xe0]
call fcn.10043a9f
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret