Function at 0x100406e2
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006460b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x17c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x10040ad5
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xc4], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xec]
movzx eax, byte [eax]
test eax, eax
je 0x10040aab
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x1c], eax
push 0x14
push 0
push 0x3f9e
push 0x5774
call fcn.10027809
pop ecx
pop ecx
call eax
push eax
push 0x3f9e
push 0x537b
call fcn.10027809
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
push 1
call fcn.1003fd8b
add esp, 0x10
push 0x6612
push 0
push 0x65c7
push 1
lea eax, [ebp - 0x1c]
push eax
call fcn.1004051d
add esp, 0x14
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
and dword [eax + 8], 0
mov dword [ebp - 0x90], 0x63f0
mov dword [ebp - 0xf4], 0x1000b560
cmp dword [ebp - 0x90], 0x67d0
jle 0x100408e6
and dword [ebp - 0x58], 0
jmp 0x1004081f
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0x2dd8
jge 0x100408db
and dword [ebp - 0x48], 0
jmp 0x10040839
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x184f
jge 0x100408d6
and dword [ebp - 0x50], 0
jmp 0x10040853
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x4a96
jge 0x100408d1
and dword [ebp - 0x38], 0
jmp 0x10040869
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x79eb
jge 0x100408cc
mov eax, dword [ebp - 0x48]
imul eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x38]
sar eax, cl
and eax, dword [ebp - 0x58]
cdq
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], edx
push dword [ebp - 0x104]
push dword [ebp - 0x108]
lea ecx, [ebp - 0x174]
call fcn.1000dafa
pop ecx
pop ecx
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
call fcn.1001b097
push eax
call fcn.1004e316
pop ecx
lea ecx, [ebp - 0x174]
call fcn.1001b08d
jmp 0x10040862
jmp 0x1004084c
jmp 0x10040832
jmp 0x10040818
push 0x3e6
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x46d0
push 0x733e
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x132b
call fcn.1003ffed
add esp, 0x14
and dword [ebp - 4], 0
cmp dword [ebp - 0x90], 0x6089
jge 0x1004091f
push dword [ebp - 0xf4]
call fcn.1004e316
pop ecx
jmp 0x1004093b
or dword [ebp - 4], 0xffffffff
jmp 0x10040945
push 4
push 0x1000
mov eax, dword [ebp - 0x60]
push dword [eax + 0x50]
mov eax, dword [ebp - 0x30]
push dword [eax]
push 0x3f9e
push 0x4790
call fcn.10027809
pop ecx
pop ecx
call eax
push 4
push 0x1000
mov eax, dword [ebp - 0x60]
push dword [eax + 0x54]
mov eax, dword [ebp - 0x30]
push dword [eax]
push 0x3f9e
push 0x4790
call fcn.10027809
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x60]
add eax, dword [ecx + 0x54]
push eax
push dword [ebp - 0x68]
mov eax, dword [ebp - 0x6c]
push dword [eax]
call fcn.10027be9
add esp, 0xc
mov dword [ebp - 0x9c], 0x5fa2
mov dword [ebp - 0xfc], 0x1000b5b0
cmp dword [ebp - 0x9c], 0x6216
jle 0x10040a2a
and dword [ebp - 0x40], 0
jmp 0x100409de
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x6d05
jge 0x10040a2a
and dword [ebp - 0x4c], 0
jmp 0x100409f4
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x4bed
jge 0x10040a28
mov eax, dword [ebp - 0x40]
and eax, dword [ebp - 0x4c]
cdq
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], edx
push dword [ebp - 0x110]
push dword [ebp - 0x114]
mov ecx, 0x1060d6f8
call fcn.1001b0b7
jmp 0x100409ed
jmp 0x100409d7
push 1
lea eax, [ebp - 0x6c]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x7c6d
call fcn.10040277
add esp, 0x18
mov dword [ebp - 4], 2
cmp dword [ebp - 0x9c], 0x5bdf
jge 0x10040a6a
mov edx, dword [ebp - 0xfc]
mov ecx, 0x1060d6f8
call fcn.1001d5c2
jmp 0x10040a86
or dword [ebp - 4], 0xffffffff
jmp 0x10040a90
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 0x30]
push eax
push 1
push 0x2f8a
call fcn.1004051d
add esp, 0x14
jmp 0x10040ad0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1040
push 0x3d6
push 0x265a
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x100410f6
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xf8], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
movzx eax, byte [eax]
test eax, eax
je 0x10040ec6
push 3
lea ecx, [ebp - 0x2c]
call fcn.1001b2e8
mov dword [ebp - 4], 4
mov dword [ebp - 0xf0], 0xbab1f35
mov dword [ebp - 0x18], 0
jmp 0x10040b23
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jge 0x10040b36
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x14], 0xe2db
jmp 0x10040b1c
mov dword [ebp - 0x18], 0
jmp 0x10040b46
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x10040b5f
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call fcn.1001b386
mov dword [eax], 0xfffffff7
jmp 0x10040b3f
push 0
lea ecx, [ebp - 0x2c]
call fcn.1001b386
and dword [eax], 0
jmp 0x10040b8f
push 0
lea ecx, [ebp - 0x2c]
call fcn.1001b386
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc0]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.1001b386
cmp dword [eax], 0
jl 0x10040e9c
mov dword [ebp - 0x64], 0xc80ae7b1
mov dword [ebp - 0x54], 0
jmp 0x10040bb9
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 3
jge 0x10040bcf
mov eax, dword [ebp - 0x54]
mov dword [ebp + eax*4 - 0x144], 0xab721576
jmp 0x10040bb2
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
mov dword [ebp - 0x130], eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.1001b386
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x14]
mov dword [ebp - 0x138], eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.1001b386
mov eax, dword [eax]
cmp dword [ebp + eax*4 - 0x14], 0
je 0x10040c27
push 0
lea ecx, [ebp - 0x2c]
call fcn.1001b386
mov eax, dword [eax]
cmp dword [ebp + eax*4 - 0x14], 0
je 0x10040c27
mov dword [ebp - 0x118], 1
jmp 0x10040c2e
and dword [ebp - 0x118], 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.1001b386
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x14]
mov dword [ebp - 0x134], eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.1001b386
mov eax, dword [eax]
cmp dword [ebp + eax*4 - 0x14], 1
jle 0x10040c60
mov dword [ebp - 0x7c], 1
jmp 0x10040c64
and dword [ebp - 0x7c], 0
cmp dword [ebp - 0x7c], 0xd2cc
jl 0x10040c79
mov dword [ebp - 0xbc], 1
jmp 0x10040c80
and dword [ebp - 0xbc], 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.1001b386
mov ecx, dword [ebp - 0xbc]
cmp ecx, dword [eax]
jle 0x10040ca0
mov dword [ebp - 0x84], 1
jmp 0x10040ca7
and dword [ebp - 0x84], 0
cmp dword [ebp - 0x84], 0x2ef703c5
jge 0x10040cbf
mov dword [ebp - 0xa4], 1
jmp 0x10040cc6
and dword [ebp - 0xa4], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
cmp dword [ebp - 0xa4], eax
jge 0x10040ce4
mov dword [ebp - 0x8c], 1
jmp 0x10040ceb
and dword [ebp - 0x8c], 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.1001b386
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x14]
cmp eax, dword [ebp - 0x8c]
je 0x10040d0f
mov dword [ebp - 0xb4], 1
jmp 0x10040d16
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x64], eax
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x144], 1
xor eax, eax
inc eax
jne 0x10040d4b
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x14], 0
jne 0x10040d4b
and dword [ebp - 0x94], 0
jmp 0x10040d55
mov dword [ebp - 0x94], 1
cmp dword [ebp - 0x94], 0x5a26
jg 0x10040d6d
mov dword [ebp - 0xac], 1
jmp 0x10040d74
and dword [ebp - 0xac], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
cmp dword [ebp - 0xac], eax
je 0x10040d8f
mov dword [ebp - 0x74], 1
jmp 0x10040d93
and dword [ebp - 0x74], 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.1001b386
mov ecx, dword [ebp - 0x74]
cmp ecx, dword [eax]
jg 0x10040dad
mov dword [ebp - 0x78], 1
jmp 0x10040db1
and dword [ebp - 0x78], 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.1001b386
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x14]
cmp dword [ebp - 0x78], eax
jne 0x10040dcf
mov dword [ebp - 0x80], 1
jmp 0x10040dd3
and dword [ebp - 0x80], 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.1001b386
mov eax, dword [eax]
mov ecx, dword [ebp - 0x80]
sub ecx, dword [ebp + eax*4 - 0x14]
cmp ecx, 0x84b6
je 0x10040dfa
mov dword [ebp - 0x88], 1
jmp 0x10040e01
and dword [ebp - 0x88], 0
cmp dword [ebp - 0x88], 0xd1a0c8
jl 0x10040e16
mov dword [ebp - 0x70], 1
jmp 0x10040e1a
and dword [ebp - 0x70], 0
push 2
lea ecx, [ebp - 0x2c]
call fcn.1001b386
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x70]
jne 0x10040e3d
mov dword [ebp - 0x98], 1
jmp 0x10040e44
and dword [ebp - 0x98], 0
cmp dword [ebp - 0x98], 0xfffffffc
jg 0x10040e59
mov dword [ebp - 0xa0], 1
jmp 0x10040e60
and dword [ebp - 0xa0], 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.1001b386
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x14]
cmp eax, dword [ebp - 0xa0]
jg 0x10040e84
mov dword [ebp - 0xa8], 1
jmp 0x10040e8b
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xf0], eax
jmp 0x10040b6e
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x10040eb5
push 0
push 0x25f2
call dword [sym.imp.USER32.dll_ShowOwnedPopups]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001b36a
jmp 0x100410f6
mov dword [ebp - 0xb0], 0x1f16
mov dword [ebp - 0x124], 0x1000b600
cmp dword [ebp - 0xb0], 0x20e4
jle 0x10040f7b
push 0x316
push 0x187c
push 0
call dword [sym.imp.USER32.dll_CheckMenuItem]
and dword [ebp - 0x5c], 0
jmp 0x10040f09
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0x7985
jge 0x10040f7b
and dword [ebp - 0x34], 0
jmp 0x10040f1f
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x64c7
jge 0x10040f79
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x34]
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.1000dafa
pop ecx
pop ecx
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
call fcn.1001b097
push eax
call fcn.1004e316
pop ecx
lea ecx, [ebp - 0x15c]
call fcn.1001b08d
jmp 0x10040f18
jmp 0x10040f02
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 5
cmp dword [ebp - 0xb0], 0x1d51
jge 0x10040fa6
push dword [ebp - 0x124]
call fcn.1004e316
pop ecx
jmp 0x10040fc2
or dword [ebp - 4], 0xffffffff
jmp 0x10040fcc
mov dword [ebp - 0xb8], 0x5ed3
mov dword [ebp - 0xd8], 0x1000b680
cmp dword [ebp - 0xb8], 0x6111
jle 0x1004106b
and dword [ebp - 0x3c], 0
jmp 0x10040ff9
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x32ed
jge 0x1004106b
and dword [ebp - 0x44], 0
jmp 0x1004100f
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x1157
jge 0x10041069
mov eax, dword [ebp - 0x3c]
or eax, dword [ebp - 0x44]
cdq
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], edx
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
lea ecx, [ebp - 0x18c]
call fcn.1000dafa
pop ecx
pop ecx
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
call fcn.1001b097
push eax
call fcn.1004e316
pop ecx
lea ecx, [ebp - 0x18c]
call fcn.1001b08d
jmp 0x10041008
jmp 0x10040ff2
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
movzx eax, byte [eax]
test eax, eax
je 0x100410b1
push 0x1aaf
push 0
push 0x1398
push 0x1fea
push 0x1303
push 0
push 0x24ae
push 0x1349
push 0x6a9
call dword [sym.imp.USER32.dll_DrawIconEx]
mov dword [ebp - 4], 7
cmp dword [ebp - 0xb8], 0x5dab
jge 0x100410d0
push dword [ebp - 0xd8]
call fcn.1004e316
pop ecx
jmp 0x100410ec
or dword [ebp - 4], 0xffffffff
jmp 0x100410f6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret