Function at 0x10028916
Capabilities:
Copy file
Delete file
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
push ebx
push esi
push edi
mov esi, ecx
push 1
pop ecx
cmp dword [esi + 0x3e4], ecx
jle 0x10028958
mov eax, dword [ebp + 8]
cmp eax, 7
je 0x1002893c
cmp eax, 8
jne 0x10028945
cmp dword [esi + 0x3ec], 0
jne case.0x10028975.0
mov dword [esi + 0x3e8], ecx
mov dword [esi + 0x3ec], eax
xor eax, eax
jmp 0x10028a3b
xor ebx, ebx
xor edi, edi
cmp dword [ebp + 8], 8
mov dword [esi + 0x3ec], ebx
mov dword [esi + 0x3e8], ebx
ja case.default.0x10028975
mov eax, dword [ebp + 8]
jmp dword [eax*4 + 0x1002943f]
push 1
pop edi
mov ecx, dword [esi + 0x1a0]
lea eax, [esi + 0x1a0]
cmp ecx, 0x100444a0
je 0x1002899b
cmp ecx, 0x10044380
jne case.0x10028975.7
lea ecx, [esi + 0x80]
mov dword [eax], ecx
mov dword [0x10042ff4], 1
lea ecx, [esi + 0x80]
cmp dword [esi + 0x1a0], ecx
jne case.0x10028975.0
cmp dword [esi + 0x41c], ebx
je case.0x10028975.0
cmp dword [esi + 0x110], ebx
je case.0x10028975.0
cmp dword [ebp + 8], 7
je 0x10028a42
cmp dword [ebp + 8], 8
je 0x10028a42
call fcn.10030ce9
push eax
lea eax, [ebp - 0x40]
push ebx
push eax
mov ecx, esi
call fcn.1002a246
mov ecx, eax
call fcn.100324de
lea ecx, [ebp - 0x1bc]
push 0x12c
push ecx
push ebx
push 1
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esi + 0x3b0]
call fcn.10021ec0
lea ecx, [ebp - 0x40]
mov edi, eax
call fcn.100324e1
cmp edi, ebx
jne 0x10028a42
cmp dword [ebp + 8], 2
je case.0x10028975.0
mov dword [esi + 0x1a0], 0x100445c0
push ebx
mov ecx, esi
call fcn.100244dd
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
or dword [ebp - 8], 0xffffffff
cmp dword [ebp + 8], 7
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ebx
je 0x10028ab2
cmp dword [ebp + 8], 8
je 0x10028ab2
push ebx
lea eax, [ebp - 0x1bc]
push ebx
push eax
lea ecx, [ebp - 0x6c]
mov dword [esi + 0x1a4], ebx
call fcn.10036fa4
push ebx
mov edi, str.general
push str.revision
push edi
lea ecx, [ebp - 0x6c]
call fcn.10037190
push ebx
push str.maxage
push edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 8], eax
call fcn.10037190
push ebx
push str.hmrevision
push edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x20], eax
call fcn.10037190
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0xc], eax
call fcn.10037171
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov edi, 0x1003c868
je 0x10028bb7
cmp dword [esi + 0x438], ebx
je 0x10028bb7
lea ecx, [esi + 0x420]
push 0xffffffffffffffff
mov dword [ebp - 4], ecx
call fcn.10032028
cmp dword [ebp + 8], 7
je 0x10029257
cmp dword [ebp + 8], 8
je 0x10029257
mov eax, dword [ebp - 8]
cmp dword [esi + 0x158], eax
je 0x10029257
push ebx
push str.ConfigRevision
push edi
call fcn.1001fec0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 0x10], eax
call fcn.1003206e
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
jne 0x10028b36
mov ecx, esi
call fcn.1002974d
test eax, eax
jne 0x10028bb7
mov ecx, dword [ebp - 4]
push ebx
call fcn.10031fbd
test eax, eax
je 0x10028bb7
lea eax, [ebp - 0x4dc]
push 0x12c
push eax
call fcn.100285fc
pop ecx
test eax, eax
pop ecx
je 0x10028baf
lea eax, [ebp - 0x4dc]
push ebx
push eax
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10028baf
push dword [ebp - 8]
push str.ConfigRevision
push edi
call fcn.1001ff45
add esp, 0xc
test eax, eax
je 0x10028ba2
mov eax, dword [esi + 0x110]
push ebx
push eax
push str.ConfigRevisionURL
push edi
call fcn.100200bc
add esp, 0x10
test eax, eax
jne 0x10028baf
lea eax, [ebp - 0x4dc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
call fcn.10031ffe
lea eax, [ebp - 0x608]
push 0x12c
push eax
mov dword [ebp - 0x10], ebx
call fcn.100286cd
pop ecx
mov dword [ebp - 4], eax
pop ecx
lea ecx, [esi + 0x404]
push 0xffffffffffffffff
call fcn.10032028
cmp dword [ebp - 4], ebx
je 0x10028bf3
lea eax, [ebp - 0x608]
push eax
call fcn.10020c5e
test eax, eax
pop ecx
jne 0x10028c13
lea eax, [ebp - 0x608]
push 0x12c
push eax
call fcn.10028724
pop ecx
test eax, eax
pop ecx
je 0x10028c13
push 1
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
je 0x10028c2c
lea eax, [ebp - 0x608]
push eax
call fcn.10020c5e
test eax, eax
pop ecx
jne 0x10028c2c
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x608]
and eax, ecx
lea ecx, [ebp - 0x90]
push eax
lea eax, [ebp - 0x1bc]
push eax
call fcn.10036fa4
lea ecx, [esi + 0x404]
call fcn.1003206e
cmp dword [ebp - 0x14], ebx
je 0x10028c6c
lea ecx, [esi + 0x420]
call fcn.1003206e
cmp dword [esi + 0x438], ebx
jne 0x10028c80
push ebx
lea ecx, [esi + 0x80]
call fcn.10030fb2
cmp dword [ebp + 0x10], ebx
mov byte [ebp - 0x1bc], bl
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], ebx
jne 0x10028cad
cmp dword [ebp + 0x14], ebx
je 0x10028cf7
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.100276d4
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 0x14], eax
je 0x10028cf7
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x1bc]
push 0x12c
push ecx
mov eax, dword [eax]
push dword [ebp + 0x10]
call dword [eax + 0xc]
test eax, eax
jge 0x10028cce
mov byte [ebp - 0x1bc], bl
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x1c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
jge 0x10028ce6
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x14], ebx
je 0x10028cf7
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp + 0x10], ebx
lea eax, [ebp - 0x1bc]
lea ecx, [esi + 0x80]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.10031016
test eax, eax
je 0x100292e6
cmp dword [esi + 0x80], ebx
jle 0x100292e6
cmp dword [ebp + 8], 7
mov dword [ebp - 8], ebx
je 0x100290a7
cmp dword [ebp + 8], 8
je 0x100290a7
push 0x10044a50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x10044d24], bl
jne 0x10028da4
mov eax, dword [esi + 0x150]
cmp eax, ebx
je 0x10028da4
push ebx
push eax
push str.ConfigDateStamp
push edi
call fcn.100200bc
add esp, 0x10
test eax, eax
je 0x10028da4
push 0x32
push 0x10044d24
push str.ConfigDateStamp
push edi
call fcn.1001ffa4
add esp, 0x10
test eax, eax
je 0x10028da1
push dword [esi + 0x150]
push 0x10044d24
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
mov dword [ebp - 8], 1
je 0x10028da4
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jle 0x10028dca
cmp dword [0x10044acc], eax
je 0x10028dca
push eax
push str.HTMLMenuRevision
push edi
call fcn.1001ff45
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [0x10044acc], eax
push 0x10044a50
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x18c]
mov edi, dword [esi + 0x188]
push 0x2000
lea ecx, [esi + 0x80]
mov dword [ebp + 0x14], eax
call fcn.10031923
push eax
push 0x1000
lea ecx, [esi + 0x80]
call fcn.10031923
push eax
push edi
push dword [ebp + 0x14]
call fcn.10023500
mov eax, dword [esi + 0x184]
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x10], ebx
je 0x10028e38
cmp byte [eax], bl
je 0x10028e38
mov eax, dword [esi + 0x180]
cmp eax, ebx
je 0x10028e38
cmp byte [eax], bl
mov dword [ebp + 0x14], 1
jne 0x10028e3b
mov dword [ebp + 0x14], ebx
lea eax, [ebp - 0x3b0]
push 0x1f4
push eax
push str.MenuExtLabel
mov edi, SysReAllocString
push 0x1003c958
push edi
call fcn.10020037
add esp, 0x14
test eax, eax
je 0x10028ef6
cmp byte [ebp - 0x3b0], bl
je 0x10028ef6
cmp dword [ebp + 0x14], ebx
je 0x10028e8f
push dword [esi + 0x184]
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10028ef6
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x2e
cmp eax, 0x12c
jae 0x10028ef6
lea eax, [ebp - 0x4dc]
push str.SoftwareMicrosoftInternet_ExplorerMenuExt_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x4dc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x4dc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
push ebx
push str.MenuExtLabel
push 0x1003c958
push edi
call fcn.10020145
add esp, 0x14
mov dword [ebp - 0x10], 1
cmp dword [ebp + 0x14], ebx
je 0x10029046
push dword [esi + 0x184]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x2e
cmp eax, 0x1f4
jae 0x10029046
lea eax, [ebp - 0x3b0]
push str.SoftwareMicrosoftInternet_ExplorerMenuExt_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [esi + 0x184]
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
lea eax, [ebp - 0x3b0]
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10029046
lea eax, [ebp - 0xc]
mov byte [ebp - 0x3b0], bl
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
push ebx
push 0x10043974
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10028fbb
cmp dword [ebp - 0xc], 0x1f4
jae 0x10028fbb
lea eax, [ebp - 0xc]
inc dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x10043974
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10028fbb
mov byte [ebp - 0x3b0], bl
push dword [esi + 0x180]
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1002901e
mov eax, dword [esi + 0x180]
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push ebx
push 0x10043974
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10029017
lea eax, [ebp + 0x17]
push 1
push eax
push 3
push ebx
push str.Contexts
push dword [ebp - 4]
mov byte [ebp + 0x17], 0x10
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], ebx
je 0x10029046
push ebx
push dword [esi + 0x184]
push str.MenuExtLabel
push 0x1003c958
push edi
call fcn.10020145
add esp, 0x14
cmp dword [ebp - 0x18], ebx
jne 0x10029089
push ebx
mov edi, 0x1003c868
push dword [esi + 0x190]
push 0x1003ca10
push edi
call fcn.100200bc
push ebx
push dword [esi + 0x194]
push 0x1003ca18
push edi
call fcn.100200bc
push ebx
push dword [esi + 0x19c]
push 0x1003ca98
push edi
call fcn.100200bc
add esp, 0x30
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jle 0x10029096
mov dword [esi + 0x15c], eax
cmp dword [ebp + 0xc], ebx
je 0x100290a2
mov ecx, esi
call fcn.10029463
mov edi, 0x1003c868
lea ecx, [esi + 0x80]
call fcn.10031930
cmp dword [0x10044af4], eax
je 0x10029122
lea ecx, [esi + 0x80]
call fcn.10031930
push eax
push str.Flags
push edi
call fcn.1001ff45
add esp, 0xc
lea ecx, [esi + 0x80]
call fcn.10031930
not eax
shr eax, 7
and eax, 1
push eax
push str.ColorButtons
push edi
call fcn.1001fec0
add esp, 0xc
mov dword [esi + 0x378], eax
push 0x10044ab0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esi + 0x80]
call fcn.10031930
push 0x10044ab0
mov dword [0x10044ac8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esi + 0x80]
call fcn.10031937
cmp dword [0x10044af0], eax
je 0x1002917a
lea ecx, [esi + 0x80]
call fcn.10031937
push eax
push 0x1003c880
push edi
call fcn.1001ff45
add esp, 0xc
cmp dword [0x10044af0], ebx
jne 0x1002917a
mov edi, 0x10044ab0
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esi + 0x80]
call fcn.10031937
push edi
mov dword [0x10044af0], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x14]
lea edi, [esi + 0x80]
push eax
mov ecx, edi
call fcn.1003193e
test eax, eax
je 0x100291b6
cmp dword [ebp - 0x1c], ebx
je 0x100291b6
cmp dword [0x10042ff4], ebx
jne 0x100291a1
cmp dword [ebp - 0x14], ebx
je 0x100291b6
cmp dword [ebp - 0x14], ebx
mov eax, 0x10044380
jne 0x100291b0
mov eax, 0x100444a0
mov dword [esi + 0x1a0], eax
cmp dword [ebp - 8], ebx
je 0x100291fc
mov ecx, edi
call fcn.10030ce9
push eax
lea eax, [ebp - 0x30]
push ebx
push eax
mov ecx, esi
call fcn.1002a246
mov ecx, eax
call fcn.100324de
lea ecx, [ebp - 0x1bc]
push 0x12c
push ecx
push ebx
push 9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x3b0]
call fcn.10021ec0
lea ecx, [ebp - 0x30]
call fcn.100324e1
cmp dword [ebp - 0x18], ebx
je 0x1002920a
cmp dword [ebp - 8], ebx
je 0x100293a9
mov eax, dword [esi + 0x134]
cmp eax, ebx
je 0x100293a9
push eax
lea eax, [ebp - 0x38]
push ebx
push eax
mov ecx, esi
call fcn.1002a246
mov ecx, eax
call fcn.100324de
lea ecx, [ebp - 0x1bc]
push 0x12c
push ecx
push ebx
push 9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x3b0]
call fcn.10021ec0
lea ecx, [ebp - 0x38]
call fcn.100324e1
jmp 0x100293a9
mov ecx, esi
mov dword [ebp - 0x18], 1
call fcn.1002974d
test eax, eax
je 0x1002928c
lea eax, [ebp - 0x1bc]
push 0x12c
push eax
call fcn.100285fc
pop ecx
test eax, eax
pop ecx
je 0x1002928c
mov dword [ebp - 0x14], 1
jmp 0x10028bb7
cmp dword [ebp + 8], 7
je 0x100292b7
cmp dword [ebp + 8], 8
je 0x100292b7
mov ecx, dword [ebp - 4]
call fcn.1003206e
push ebx
lea ecx, [esi + 0x80]
mov byte [ebp - 0x1bc], bl
call fcn.10030fb2
jmp 0x10028bb7
mov ecx, dword [ebp - 4]
call fcn.1003206e
push ebx
push ebx
mov esi, 0x1003c868
push str.NextConfigRequest
push esi
call fcn.100200bc
push ebx
push ebx
push str.LastConfigRequest
push esi
call fcn.100200bc
add esp, 0x20
jmp case.0x10028975.0
push ebx
lea ecx, [esi + 0x80]
call fcn.10030fb2
push ebx
push ebx
push str.NextConfigRequest
push edi
call fcn.100200bc
push ebx
push ebx
push str.LastConfigRequest
push edi
call fcn.100200bc
add esp, 0x20
mov dword [esi + 0x1a0], 0x10044260
cmp dword [0x10044d1c], ebx
jne 0x100293a9
cmp dword [ebp - 0x18], ebx
mov dword [0x10044d1c], 1
je 0x1002935c
lea ecx, [esi + 0x420]
push 0xffffffffffffffff
call fcn.10031fbd
push ebx
push ebx
push str.ConfigRevision
push edi
call fcn.100200bc
add esp, 0x10
lea ecx, [esi + 0x420]
call fcn.10031ffe
lea ecx, [esi + 0x80]
call fcn.10030ce9
push eax
lea eax, [ebp - 0x48]
push ebx
push eax
mov ecx, esi
call fcn.1002a246
mov ecx, eax
call fcn.100324de
lea ecx, [ebp - 0x1bc]
push 0x12c
push ecx
push ebx
push 1
lea ecx, [esi + 0x3b0]
pop edi
push edi
push 0xffffffffffffffff
push edi
push eax
call fcn.10021ec0
lea ecx, [ebp - 0x48]
call fcn.100324e1
mov dword [esi + 0x1a4], edi
cmp dword [ebp + 8], 7
jne 0x100293b7
lea ecx, [ebp - 0x90]
jmp 0x100293d1
mov eax, dword [esi]
lea ecx, [esi + 0xbc]
push ecx
mov ecx, esi
call dword [eax + 0x34]
cmp dword [ebp + 8], 2
lea ecx, [ebp - 0x90]
jne 0x100293db
call fcn.10037171
jmp 0x10028a38
call fcn.10037171
jmp case.default.0x10028975
cmp dword [esi + 0x1a4], ebx
lea eax, [esi + 0x1a4]
je case.0x10028975.0
lea ecx, [esi + 0x80]
mov dword [esi + 0x1a0], ecx
jmp 0x10029431
lea ecx, [esi + 0x1a0]
lea eax, [esi + 0x80]
cmp dword [ecx], eax
jne case.0x10028975.0
cmp dword [esi + 0x1a4], ebx
lea eax, [esi + 0x1a4]
je case.0x10028975.0
mov dword [ecx], 0x10044260
mov dword [eax], ebx
jmp case.default.0x10028975
push 1
jmp 0x10028a31