Function at 0x10021104
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100628cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xcc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x100211c4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa8], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
movzx eax, byte [eax]
test eax, eax
je 0x10021165
push 0
push 0xaa7
push 0
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
jmp 0x100211bf
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x1002119f
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], 2
jge 0x100211bf
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x90]
call fcn.1002fe2f
mov dword [eax], 0xa9ac70c3
jmp 0x10021194
jmp 0x100214e0
mov dword [ebp - 0x64], 0x6cd6
mov dword [ebp - 0x94], 0x10008e74
cmp dword [ebp - 0x64], 0x705c
jle 0x100212b3
push 0
call dword [sym.imp.USER32.dll_SetKeyboardState]
and dword [ebp - 0x24], 0
jmp 0x100211f7
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x3134
jge 0x100212b3
and dword [ebp - 0x1c], 0
jmp 0x10021211
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2bc7
jge 0x100212ae
and dword [ebp - 0x2c], 0
jmp 0x1002122b
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x3b44
jge 0x100212a9
and dword [ebp - 0x20], 0
jmp 0x10021241
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x1b5e
jge 0x100212a4
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
imul ecx, dword [ebp - 0x20]
sar eax, cl
cdq
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], edx
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
lea ecx, [ebp - 0xdc]
call fcn.1000d8f0
pop ecx
pop ecx
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
call fcn.1002fc5c
push eax
call fcn.1004cdd6
pop ecx
lea ecx, [ebp - 0xdc]
call fcn.1002fc52
jmp 0x1002123a
jmp 0x10021224
jmp 0x1002120a
jmp 0x100211f0
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x8c], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x64], 0x6a7d
jge 0x100212d5
push dword [ebp - 0x94]
call fcn.1004cdd6
pop ecx
jmp 0x100212f1
or dword [ebp - 4], 0xffffffff
jmp 0x100212fb
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x8c]
movzx eax, byte [eax]
test eax, eax
je 0x1002133c
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x10021337
push 0
push 0xdc4
call dword [sym.imp.USER32.dll_GetSystemMenu]
jmp 0x100214e0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x40], 0xfffffffb
mov dword [ebp - 0x5c], 0xfffffffd
mov dword [ebp - 0x34], 0x714ba09a
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x28], 0
jmp 0x10021372
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 4
jge 0x10021388
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0xc4], 0xe280bfe7
jmp 0x1002136b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x14]
add eax, 8
jne 0x100213b1
cmp dword [ebp - 0x14], 0
je 0x100213b1
mov dword [ebp - 0x78], 1
jmp 0x100213b5
and dword [ebp - 0x78], 0
cmp dword [ebp - 0x14], 0
je 0x100213ca
cmp dword [ebp - 0x14], 0
je 0x100213ca
mov dword [ebp - 0x50], 1
jmp 0x100213ce
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xb4], eax
push 4
pop eax
test eax, eax
je 0x100213f3
cmp dword [ebp - 0x14], 0
je 0x100213f3
mov dword [ebp - 0x60], 1
jmp 0x100213f7
and dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 1
ja 0x10021406
mov dword [ebp - 0x48], 1
jmp 0x1002140a
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 5
jne 0x10021419
mov dword [ebp - 0x30], 1
jmp 0x1002141d
and dword [ebp - 0x30], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp + eax - 0xc4], ecx
cmp dword [ebp - 0x30], 0
jne 0x1002143c
mov dword [ebp - 0x58], 1
jmp 0x10021440
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x14]
cmp eax, 0xfff8
je 0x10021456
mov dword [ebp - 0x38], 1
jmp 0x1002145a
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0xffff
jbe 0x1002146c
mov dword [ebp - 0x3c], 1
jmp 0x10021470
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x14]
je 0x10021484
mov dword [ebp - 0x44], 1
jmp 0x10021488
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x44], eax
je 0x10021499
mov dword [ebp - 0x80], 1
jmp 0x1002149d
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
je 0x100214ae
mov dword [ebp - 0x4c], 1
jmp 0x100214b2
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x4c], eax
jne 0x100214c3
mov dword [ebp - 0x54], 1
jmp 0x100214c7
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x34]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret