Function at 0x40a920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459ccc
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x486850]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push eax
push 0x468378
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
call fcn.00402900
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x468378
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
call fcn.00402900
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x2d8]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x40aa22
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x40aa22
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x2b4]
call fcn.0040a620
test eax, eax
jne 0x40aa22
push 1
push 0x468d00
lea ecx, [ebp - 0x24c]
call fcn.00402900
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x2a4]
call fcn.0040a620
test eax, eax
jne 0x40aa56
push 1
push 0x468d00
lea ecx, [ebp - 0x234]
call fcn.00402900
push 0x10
xor eax, eax
push str.SoftwareAVGAWL
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
call fcn.00402900
push 0x468d0c
lea edx, [ebp - 0x27c]
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 2
call fcn.0040a580
push 0x489574
mov edx, eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call fcn.00401e00
add esp, 8
cmp dword [ebp - 0x280], 8
jb 0x40aacf
push dword [ebp - 0x294]
call fcn.0043d3af
add esp, 4
xor eax, eax
cmp dword [ebp - 0x268], 8
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], 0
mov word [ebp - 0x294], ax
jb 0x40ab03
push dword [ebp - 0x27c]
call fcn.0043d3af
add esp, 4
cmp dword [ebp - 0x250], 8
mov eax, dword [ebp - 0x264]
jae 0x40ab18
lea eax, [ebp - 0x264]
push 0
lea ecx, [ebp - 0x2dc]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40accf
mov esi, dword [0x489588]
mov edx, dword [0x489574]
mov ecx, edx
cmp esi, 8
jae 0x40ab5a
mov ecx, 0x489574
lea edi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ab60
sub ecx, edi
sar ecx, 1
cmp esi, 8
jae 0x40ab79
mov edx, 0x489574
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x468d44
push dword [ebp - 0x2dc]
call edi
mov esi, dword [ebp - 0x220]
mov edx, dword [ebp - 0x234]
mov ecx, edx
cmp esi, 8
jae 0x40abb2
lea ecx, [ebp - 0x234]
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40abb5
sub ecx, ebx
sar ecx, 1
cmp esi, 8
jae 0x40abcf
lea edx, [ebp - 0x234]
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.Install
push dword [ebp - 0x2dc]
call edi
mov esi, dword [ebp - 0x238]
mov edx, dword [ebp - 0x24c]
mov ecx, edx
cmp esi, 8
jae 0x40ac02
lea ecx, [ebp - 0x24c]
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac05
sub ecx, ebx
sar ecx, 1
cmp esi, 8
jae 0x40ac1f
lea edx, [ebp - 0x24c]
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.Download
push dword [ebp - 0x2dc]
call edi
cmp dword [0x4895a0], 8
mov eax, dword [0x48958c]
jae 0x40ac4c
mov eax, 0x48958c
push eax
call fcn.0043e3be
add esp, 4
mov dword [ebp - 0x2e0], eax
push 4
lea eax, [ebp - 0x2e0]
push eax
push 4
push 0
push str.Flags
push dword [ebp - 0x2dc]
call edi
mov esi, dword [0x487ad4]
mov edx, dword [0x487ac0]
mov ecx, edx
cmp esi, 8
jae 0x40ac8d
mov ecx, 0x487ac0
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac90
sub ecx, ebx
sar ecx, 1
cmp esi, 8
jae 0x40aca9
mov edx, 0x487ac0
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x468d70
push dword [ebp - 0x2dc]
call edi
push dword [ebp - 0x2dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x250], 8
jb 0x40ace6
push dword [ebp - 0x264]
call fcn.0043d3af
add esp, 4
xor eax, eax
cmp dword [ebp - 0x220], 8
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x254], 0
mov word [ebp - 0x264], ax
jb 0x40ad1a
push dword [ebp - 0x234]
call fcn.0043d3af
add esp, 4
xor eax, eax
cmp dword [ebp - 0x238], 8
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
jb 0x40ad4e
push dword [ebp - 0x24c]
call fcn.0043d3af
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043d3b4
mov esp, ebp
pop ebp
ret