Function at 0x1002ca4f
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b6d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push esi
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x1002cabc
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb0], eax
push dword [ebp - 0xb0]
push 0x1b62
push dword [ebp - 0xa8]
push 0x1316
push 1
push dword [ebp - 0xf4]
call fcn.1002d0dc
add esp, 0x18
jmp 0x1002d0cd
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc0], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x18], 0x85f70ad6
mov dword [ebp - 0x10], 1
push 3
lea ecx, [ebp - 0xdc]
call fcn.1000dfce
and dword [ebp - 4], 0
mov dword [ebp - 0x54], 0xfffffffd
mov dword [ebp - 0xa0], 0xb53c
mov dword [ebp - 0x34], 0
jmp 0x1002cb32
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
jge 0x1002cb4e
push dword [ebp - 0x34]
lea ecx, [ebp - 0xdc]
call fcn.1000e00f
mov dword [eax], 2
jmp 0x1002cb2b
mov dword [ebp - 0x18], 0
jmp 0x1002cb5e
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xfffffffc
jle 0x1002ccf2
mov dword [ebp - 0x38], 0xfffd
mov dword [ebp - 0x30], 0x7d6364d6
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov eax, 0xcde9
test eax, eax
je 0x1002cbf1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x10], 0x9646
jge 0x1002cba3
mov dword [ebp - 0x84], 1
jmp 0x1002cbaa
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x84], eax
jle 0x1002cbbe
mov dword [ebp - 0x48], 1
jmp 0x1002cbc2
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x48]
je 0x1002cbd6
mov dword [ebp - 0x88], 1
jmp 0x1002cbdd
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x88], eax
jne 0x1002cbf1
mov dword [ebp - 0x50], 1
jmp 0x1002cbf5
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0x1b40
jg 0x1002cc07
mov dword [ebp - 0x78], 1
jmp 0x1002cc0b
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x78]
jl 0x1002cc1c
mov dword [ebp - 0x58], 1
jmp 0x1002cc20
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x58], eax
jle 0x1002cc34
mov dword [ebp - 0x98], 1
jmp 0x1002cc3b
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x98]
jne 0x1002cc52
cmp dword [ebp - 0x30], 0
jne 0x1002cc52
and dword [ebp - 0x60], 0
jmp 0x1002cc59
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x60], eax
jge 0x1002cc6a
mov dword [ebp - 0x80], 1
jmp 0x1002cc6e
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x80]
sub eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x10]
jne 0x1002cca9
mov dword [ebp - 0x10], 2
jmp 0x1002cc89
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x1002cca7
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x1002cca5
push 0
push 0
call dword [sym.imp.GDI32.dll_RectInRegion]
jmp 0x1002cc82
jmp 0x1002cced
mov dword [ebp - 0x28], 0
jmp 0x1002ccb9
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jge 0x1002cccc
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0x68], 0x9843334a
jmp 0x1002ccb2
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x68], 0
je 0x1002ccdb
jmp 0x1002ccf2
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x68], 0
je 0x1002cced
jmp 0x1002cb57
jmp 0x1002cb57
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x10], 0
je 0x1002cd10
cmp dword [ebp - 0x18], 0
jne 0x1002cd2b
push 2
lea ecx, [ebp - 0xdc]
call fcn.1000e00f
cmp dword [eax], 0
jne 0x1002cd2b
and dword [ebp - 0x90], 0
jmp 0x1002cd35
mov dword [ebp - 0x90], 1
mov eax, dword [ebp - 0x10]
neg eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x90]
imul ecx, ecx, 0x9b8a
add ecx, 0x12ed4033
cmp eax, ecx
jl 0x1002cd5c
mov dword [ebp - 0x70], 1
jmp 0x1002cd60
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1002cd7b
mov eax, 0x1dce
test eax, eax
jne 0x1002cd7b
and dword [ebp - 0x44], 0
jmp 0x1002cd82
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x44], eax
je 0x1002cd93
mov dword [ebp - 0x4c], 1
jmp 0x1002cd97
and dword [ebp - 0x4c], 0
push 0
lea ecx, [ebp - 0xdc]
call fcn.1000e00f
mov ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x4c]
mov eax, dword [eax]
sub eax, ecx
test eax, eax
jle 0x1002cdbf
cmp dword [ebp - 0x54], 0
jne 0x1002cdbf
and dword [ebp - 0x5c], 0
jmp 0x1002cdc6
mov dword [ebp - 0x5c], 1
push 0
lea ecx, [ebp - 0xdc]
call fcn.1000e00f
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [eax]
jge 0x1002cde3
mov dword [ebp - 0x64], 1
jmp 0x1002cde7
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xa0], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.1000e00a
mov eax, dword [ebp - 0xcc]
movzx eax, byte [eax]
test eax, eax
je 0x1002d06d
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x20], 0x9a54e587
push 3
lea ecx, [ebp - 0x104]
call fcn.1000dfce
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], 0
jmp 0x1002ce66
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 3
jge 0x1002ce82
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x104]
call fcn.1000e00f
mov dword [eax], 0xfff8
jmp 0x1002ce5f
mov dword [ebp - 0x14], 0xa
jmp 0x1002ce92
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xfffffff0
jne 0x1002cf97
mov dword [ebp - 0x3c], 0x47d2038e
mov dword [ebp - 0x6c], 0xfffffffb
mov dword [ebp - 0x8c], 0xdfbc43cc
cmp dword [ebp - 0x6c], 2
jl 0x1002cecc
cmp dword [ebp - 0x6c], 0
je 0x1002cecc
mov dword [ebp - 0xe8], 1
jmp 0x1002ced3
and dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x14]
neg eax
je 0x1002cefc
xor eax, eax
je 0x1002cefc
mov dword [ebp - 0xc8], 1
jmp 0x1002cf03
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x14], 0x736d
jne 0x1002cf30
mov dword [ebp - 0x74], 1
jmp 0x1002cf34
and dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 0xef7d2668
ja 0x1002cf46
mov dword [ebp - 0x7c], 1
jmp 0x1002cf4a
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x7c], eax
jg 0x1002cf5b
mov dword [ebp - 0x40], 1
jmp 0x1002cf5f
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x14], eax
jne 0x1002cf7f
mov dword [ebp - 0x94], 1
jmp 0x1002cf86
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x94]
sub eax, 0xb
mov dword [ebp - 0x20], eax
jmp 0x1002ce8b
mov dword [ebp - 0x14], 0
jmp 0x1002cfa7
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 9
jge 0x1002d00c
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1002cfde
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x8b8
push 0x228b
push 0x25fc
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov dword [ebp - 0x20], 0
jmp 0x1002cfee
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jge 0x1002d00a
push dword [ebp - 0x20]
lea ecx, [ebp - 0x104]
call fcn.1000e00f
mov dword [eax], 0x9209
jmp 0x1002cfe7
jmp 0x1002cfa0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x104]
call fcn.1000e00a
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
push dword [eax]
mov ecx, dword [ebp - 0x9c]
call fcn.1000e00f
mov esi, eax
mov eax, dword [ebp - 0xe4]
push dword [eax]
mov ecx, dword [ebp - 0x9c]
call fcn.1000e00f
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x1002d0cd
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
jmp 0x1002d0b0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax], 2
jge 0x1002d0cd
mov eax, dword [ebp - 0x24]
push dword [eax]
mov ecx, dword [ebp - 0xc4]
call fcn.1000e00f
or dword [eax], 0xffffffff
jmp 0x1002d0a5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret