Function at 0x10049d93
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069b8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x1ec
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10049de3
push 0x616
push 0x6fcf
push 1
push 0x49d2
push 0x4a82
call fcn.1004aa2e
add esp, 0x14
jmp 0x1004aa1d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x100], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
movzx eax, byte [eax]
test eax, eax
je 0x1004aa15
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x128]
add ecx, dword [eax]
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x70], 0
jmp 0x10049e5c
mov eax, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 3
jge 0x10049e72
mov eax, dword [ebp - 0x70]
mov dword [ebp + eax*4 - 0x1cc], 0xcf5
jmp 0x10049e55
mov byte [ebp - 0x22], 0
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x10049e88
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov byte [ebp - 0x19], 0
push 1
push 0x5f22
push 1
push 0x3c3
lea eax, [ebp - 0x19]
push eax
push 1
push 0x7917
call fcn.1003291f
add esp, 0x1c
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
add eax, 8
mov dword [ebp - 0x64], eax
and dword [ebp - 0x88], 0
jmp 0x10049ed6
mov eax, dword [ebp - 0x88]
inc eax
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x64]
inc eax
inc eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
cmp dword [ebp - 0x88], eax
jae 0x1004a727
push 2
lea ecx, [ebp - 0x44]
call fcn.1001cd0b
and dword [ebp - 4], 0
mov dword [ebp - 0xb0], 0x5530c4e2
mov dword [ebp - 0x48], 0xfd77ccca
mov dword [ebp - 0xd4], 0x122d800
mov dword [ebp - 0xe4], 1
mov dword [ebp - 0x130], 0xfffffff6
push 0x410e
push 0x76dd
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x44]
push eax
push 1
push 0x41c1
call fcn.10032a33
add esp, 0x1c
mov dword [ebp - 0x30], 0
jmp 0x10049f5f
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 2
jge 0x10049f75
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0x1b0], 0x33631af6
jmp 0x10049f58
push 1
lea ecx, [ebp - 0x44]
call fcn.1001cda9
cmp dword [eax], 0
jne 0x1004a21e
push 1
lea ecx, [ebp - 0x44]
call fcn.1001cda9
push 1
lea ecx, [ebp - 0x44]
call fcn.1001cda9
mov dword [ebp - 0xb0], 0xa7f4
mov esi, dword [ebp - 0xb0]
push 0
lea ecx, [ebp - 0x44]
call fcn.1001cda9
cmp esi, dword [eax]
jl 0x10049fc6
mov dword [ebp - 0x94], 1
jmp 0x10049fcd
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x94]
add eax, 8
mov dword [ebp - 0x48], eax
mov esi, dword [ebp - 0x48]
push 1
lea ecx, [ebp - 0x44]
call fcn.1001cda9
cmp esi, dword [eax]
je 0x10049ff6
mov dword [ebp - 0xe8], 1
jmp 0x10049ffd
and dword [ebp - 0xe8], 0
cmp dword [ebp - 0xe8], 0xa023703a
jne 0x1004a021
push 1
lea ecx, [ebp - 0x44]
call fcn.1001cda9
cmp dword [eax], 0
jne 0x1004a021
and dword [ebp - 0xc4], 0
jmp 0x1004a02b
mov dword [ebp - 0xc4], 1
cmp dword [ebp - 0xc4], 0xffffffff
jl 0x1004a040
mov dword [ebp - 0x9c], 1
jmp 0x1004a047
and dword [ebp - 0x9c], 0
push 1
lea ecx, [ebp - 0x44]
call fcn.1001cda9
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [eax]
jle 0x1004a067
mov dword [ebp - 0xdc], 1
jmp 0x1004a06e
and dword [ebp - 0xdc], 0
cmp dword [ebp - 0xdc], 0x4e10
jne 0x1004a086
mov dword [ebp - 0xa4], 1
jmp 0x1004a08d
and dword [ebp - 0xa4], 0
push 1
lea ecx, [ebp - 0x44]
call fcn.1001cda9
mov esi, dword [ebp - 0xa4]
sub esi, dword [eax]
push 0
lea ecx, [ebp - 0x44]
call fcn.1001cda9
cmp esi, dword [eax]
jne 0x1004a0b9
mov dword [ebp - 0xcc], 1
jmp 0x1004a0c0
and dword [ebp - 0xcc], 0
imul eax, dword [ebp - 0xcc], 0xfffd
test eax, eax
je 0x1004a0e0
cmp dword [ebp - 0x48], 0
je 0x1004a0e0
mov dword [ebp - 0xac], 1
jmp 0x1004a0e7
and dword [ebp - 0xac], 0
push 1
lea ecx, [ebp - 0x44]
call fcn.1001cda9
mov ecx, dword [ebp - 0xac]
cmp ecx, dword [eax]
je 0x1004a107
mov dword [ebp - 0xec], 1
jmp 0x1004a10e
and dword [ebp - 0xec], 0
cmp dword [ebp - 0xec], 0xf3bd791
jle 0x1004a126
mov dword [ebp - 0xb4], 1
jmp 0x1004a12d
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0xe209
je 0x1004a151
mov dword [ebp - 0xbc], 1
jmp 0x1004a158
and dword [ebp - 0xbc], 0
cmp dword [ebp - 0xbc], 0xa276
jg 0x1004a16d
cmp dword [ebp - 0xe4], 0
je 0x1004a188
push 1
lea ecx, [ebp - 0x44]
call fcn.1001cda9
cmp dword [eax], 0
je 0x1004a188
mov dword [ebp - 0x90], 1
jmp 0x1004a18f
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0xe4]
cmp dword [ebp - 0x90], eax
jge 0x1004a1a9
mov dword [ebp - 0x108], 1
jmp 0x1004a1b0
and dword [ebp - 0x108], 0
push 1
lea ecx, [ebp - 0x44]
call fcn.1001cda9
push 1
lea ecx, [ebp - 0x44]
call fcn.1001cda9
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x1b0]
mov dword [ebp - 0x190], eax
mov esi, dword [ebp - 0x48]
sub esi, 0x169b41db
push 1
lea ecx, [ebp - 0x44]
call fcn.1001cda9
cmp dword [eax], esi
jle 0x1004a1fa
mov dword [ebp - 0x98], 1
jmp 0x1004a201
and dword [ebp - 0x98], 0
push 1
lea ecx, [ebp - 0x44]
call fcn.1001cda9
mov ecx, dword [ebp - 0x98]
cmp ecx, dword [eax]
je 0x1004a21e
and dword [ebp - 0xa0], 0
jmp 0x1004a228
mov dword [ebp - 0xa0], 1
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x1004a24d
push 0
push 0x26f8
call dword [sym.imp.USER32.dll_GetClientRect]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.1001cd8d
mov dword [ebp - 0x18c], 0xd6c05baf
mov dword [ebp - 0x188], 0xd6c05baf
mov dword [ebp - 0x184], 0xd6c05baf
mov dword [ebp - 0x180], 0xd6c05baf
lea ecx, [ebp - 0x7d]
call fcn.1001cdb8
push eax
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.1001cdbb
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x148]
call fcn.1001cd67
mov dword [ebp - 4], 1
mov dword [ebp - 0x174], 0
push 2
lea ecx, [ebp - 0x148]
call fcn.1001cda9
and dword [eax], 0
jmp 0x1004a2fa
push 2
lea ecx, [ebp - 0x148]
call fcn.1001cda9
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xa8]
mov dword [ecx], eax
push 2
lea ecx, [ebp - 0x148]
call fcn.1001cda9
cmp dword [eax], 0xffffffed
je 0x1004a4cd
mov dword [ebp - 0x38], 6
mov dword [ebp - 0xf8], 4
mov dword [ebp - 0x38], 0xfffffffe
jmp 0x1004a331
mov eax, dword [ebp - 0x38]
dec eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffef
jg 0x1004a4c8
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x114], 0x4039ee49
mov dword [ebp - 0x8c], 0x2da5
mov dword [ebp - 0x124], 0x1000be80
cmp dword [ebp - 0x8c], 0x2ef8
jle 0x1004a44a
and dword [ebp - 0x5c], 0
jmp 0x1004a380
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0x4e2e
jge 0x1004a43b
and dword [ebp - 0x78], 0
jmp 0x1004a39a
mov eax, dword [ebp - 0x78]
inc eax
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0x4224
jge 0x1004a436
and dword [ebp - 0x54], 0
jmp 0x1004a3b4
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x4885
jge 0x1004a431
and dword [ebp - 0x74], 0
jmp 0x1004a3ca
mov eax, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0x7a04
jge 0x1004a42c
mov eax, dword [ebp - 0x54]
xor eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x5c]
or ecx, dword [ebp - 0x78]
or eax, ecx
cdq
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], edx
push dword [ebp - 0x154]
push dword [ebp - 0x158]
lea ecx, [ebp - 0x1e4]
call fcn.1000d99a
pop ecx
pop ecx
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
call fcn.1001caba
push eax
call fcn.10053526
pop ecx
lea ecx, [ebp - 0x1e4]
call fcn.1001cab0
jmp 0x1004a3c3
jmp 0x1004a3ad
jmp 0x1004a393
jmp 0x1004a379
push 0
push 0
push 0x1ba9
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x174]
push eax
push 0
call fcn.10046477
add esp, 0x1c
mov byte [ebp - 4], 2
cmp dword [ebp - 0x8c], 0x2af6
jge 0x1004a497
push dword [ebp - 0x124]
call fcn.10053526
pop ecx
jmp 0x1004a4b3
mov dword [ebp - 4], 1
jmp 0x1004a4c3
jmp 0x1004a32a
jmp 0x1004a2d6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.1001cd8d
push 1
push 1
push 0
push 0x54f2
push 0x2256
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.10047e8e
add esp, 0x1c
push 1
push 1
lea eax, [ebp - 0x64]
push eax
push 0x4ec6
lea eax, [ebp - 0x10c]
push eax
call fcn.10032da5
add esp, 0x14
mov dword [ebp - 0x18], 0xc184c506
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x14], 0
jmp 0x1004a53c
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jge 0x1004a552
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0xf4], 5
jmp 0x1004a535
mov dword [ebp - 0x14], 0
jmp 0x1004a562
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jge 0x1004a578
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x1a8], 0x5ed7c6ae
jmp 0x1004a55b
mov dword [ebp - 0x18], 0
jmp 0x1004a588
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jg 0x1004a6df
mov dword [ebp - 0x20], 0x6b950ba1
mov dword [ebp - 0x20], 1
jmp 0x1004a5a9
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x1004a6da
mov dword [ebp - 0x2c], 0x65925ef2
mov dword [ebp - 0x150], 0x9481
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0xf4]
mov ecx, dword [ebp - 0x20]
mov dword [ebp + ecx*4 - 0xf4], eax
mov dword [ebp - 0x2c], 1
jmp 0x1004a5e8
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x1004a6d5
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x20]
push 4
pop ecx
shl ecx, 0
cmp dword [ebp + ecx - 0xf4], eax
je 0x1004a614
mov dword [ebp - 0xb8], 1
jmp 0x1004a61b
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
imul ecx, dword [ebp - 0xb8]
imul ecx, dword [ebp + eax*4 - 0xf4]
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0xf4], ecx
jne 0x1004a648
mov dword [ebp - 0x84], 1
jmp 0x1004a64f
and dword [ebp - 0x84], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x84]
mov dword [ebp + eax - 0x1a8], ecx
cmp dword [ebp - 0x84], 9
jne 0x1004a677
mov dword [ebp - 0xc0], 1
jmp 0x1004a67e
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x150]
cmp dword [ebp - 0xc0], eax
je 0x1004a698
mov dword [ebp - 0xc8], 1
jmp 0x1004a69f
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x21], 0
push 0x56c8
push 0x95d
push 0
push 0x2d2e
lea eax, [ebp - 0x21]
push eax
push 1
push 1
call fcn.1003a39b
add esp, 0x1c
jmp 0x1004a5e1
jmp 0x1004a5a2
jmp 0x1004a581
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 3
je 0x1004a6f8
jmp 0x1004a722
mov eax, dword [ebp - 0x15c]
add eax, dword [ebp - 0x10c]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x110]
add eax, dword [ecx]
mov ecx, dword [ebp - 0xd0]
mov dword [ecx], eax
jmp 0x10049ec1
mov dword [ebp - 0xd8], 0x1988
mov dword [ebp - 0x118], 0x1000bf18
cmp dword [ebp - 0xd8], 0x1d59
jle 0x1004a7ec
and dword [ebp - 0x50], 0
jmp 0x1004a758
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x2028
jge 0x1004a7df
and dword [ebp - 0x58], 0
jmp 0x1004a76e
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0x32a6
jge 0x1004a7da
and dword [ebp - 0x6c], 0
jmp 0x1004a784
mov eax, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0x5f2c
jge 0x1004a7d8
and dword [ebp - 0x4c], 0
jmp 0x1004a79a
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x2b0a
jge 0x1004a7d6
mov ecx, dword [ebp - 0x6c]
add ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x58]
sar eax, cl
cdq
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], edx
push dword [ebp - 0x160]
push dword [ebp - 0x164]
mov ecx, 0x10612c98
call fcn.1001cada
jmp 0x1004a793
jmp 0x1004a77d
jmp 0x1004a767
jmp 0x1004a751
push 0
push 0x25f3
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [ebp - 4], 4
cmp dword [ebp - 0xd8], 0x1919
jge 0x1004a80f
mov edx, dword [ebp - 0x118]
mov ecx, 0x10612c98
call fcn.1001f052
jmp 0x1004a82b
or dword [ebp - 4], 0xffffffff
jmp 0x1004a835
push 4
lea ecx, [ebp - 0x1a0]
call fcn.1001cd0b
mov dword [ebp - 4], 6
mov dword [ebp - 0x1b8], 2
mov dword [ebp - 0x120], 1
mov dword [ebp - 0x1b4], 0xf2c36544
lea eax, [ebp - 0x34]
push eax
push 1
lea eax, [ebp - 0x1a0]
push eax
push 0x562a
push 0x106b
push 1
push 0x6908
push 0x19a0
call fcn.10032e69
add esp, 0x20
mov dword [ebp - 0x34], 0
jmp 0x1004a8a2
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 1
jge 0x1004a8b8
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x194], 0xb1c2a2c7
jmp 0x1004a89b
push 0x3aa3
push 0
push 0x109b
push 0x3b5
push 0x4ba7
push 0x135b
lea eax, [ebp - 0x120]
push eax
call fcn.100460b4
add esp, 0x1c
mov dword [ebp - 0xe0], 0x3a9
mov dword [ebp - 0x104], 0x1000bf60
cmp dword [ebp - 0xe0], 0x5eb
jle 0x1004a9aa
and dword [ebp - 0x60], 0
jmp 0x1004a913
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x15cc
jge 0x1004a9aa
and dword [ebp - 0x68], 0
jmp 0x1004a92d
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0x7775
jge 0x1004a9a5
and dword [ebp - 0x7c], 0
jmp 0x1004a943
mov eax, dword [ebp - 0x7c]
inc eax
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0x6097
jge 0x1004a9a3
mov eax, dword [ebp - 0x60]
imul eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x7c]
sar eax, cl
cdq
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], edx
push dword [ebp - 0x16c]
push dword [ebp - 0x170]
lea ecx, [ebp - 0x1fc]
call fcn.1000d99a
pop ecx
pop ecx
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
call fcn.1001caba
push eax
call fcn.10053526
pop ecx
lea ecx, [ebp - 0x1fc]
call fcn.1001cab0
jmp 0x1004a93c
jmp 0x1004a926
jmp 0x1004a90c
mov byte [ebp - 4], 7
cmp dword [ebp - 0xe0], 0x1bb
jge 0x1004a9c6
push dword [ebp - 0x104]
call fcn.10053526
pop ecx
jmp 0x1004a9e2
mov dword [ebp - 4], 6
jmp 0x1004a9f2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a0]
call fcn.1001cd8d
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
add ecx, dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov dword [eax], ecx
jmp 0x1004aa1d
push 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret