Function at 0x4126b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46889c
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x4a5590]
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
mov dword [ebp - 0x2e4], edx
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push 0x47abfc
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
call fcn.0040a110
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x47abfc
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
call fcn.0040a110
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 0x4127bd
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x4127bd
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x2b4]
call fcn.004123b0
test eax, eax
jne 0x4127bd
push 1
push 0x47b7b8
lea ecx, [ebp - 0x24c]
call fcn.0040a110
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x2a4]
call fcn.004123b0
test eax, eax
jne 0x4127f1
push 1
push 0x47b7b8
lea ecx, [ebp - 0x234]
call fcn.0040a110
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.0040a110
push 0x47b7c4
lea edx, [ebp - 0x27c]
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 2
call fcn.00412310
push esi
mov edx, eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call fcn.00409ad0
add esp, 8
cmp dword [ebp - 0x280], 8
jb 0x412866
push dword [ebp - 0x294]
call fcn.0044d639
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 0x41289a
push dword [ebp - 0x27c]
call fcn.0044d639
add esp, 4
cmp dword [ebp - 0x250], 8
mov eax, dword [ebp - 0x264]
jae 0x4128af
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 0x412a6c
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x4128e5
mov ecx, dword [esi]
jmp 0x4128e7
mov ecx, esi
lea ebx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4128f0
sub ecx, ebx
sar ecx, 1
cmp edx, 8
jb 0x412906
mov esi, dword [esi]
lea eax, [ecx*2 + 2]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push 0x47b7fc
push dword [ebp - 0x2dc]
call esi
mov ebx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x234]
mov ecx, edx
cmp ebx, 8
jae 0x41293f
lea ecx, [ebp - 0x234]
lea eax, [ecx + 2]
mov dword [ebp - 0x2e0], eax
jmp 0x412950
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412950
sub ecx, dword [ebp - 0x2e0]
sar ecx, 1
cmp ebx, 8
jae 0x41296e
lea edx, [ebp - 0x234]
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x47b804
push dword [ebp - 0x2dc]
call esi
mov ebx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x24c]
mov ecx, edx
cmp ebx, 8
jae 0x4129a1
lea ecx, [ebp - 0x24c]
lea eax, [ecx + 2]
mov dword [ebp - 0x2e0], eax
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4129b0
sub ecx, dword [ebp - 0x2e0]
sar ecx, 1
cmp ebx, 8
jae 0x4129ce
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 esi
mov eax, dword [ebp - 0x2e4]
cmp dword [eax + 0x14], 8
jb 0x4129f6
mov eax, dword [eax]
push eax
call fcn.0044e08a
add esp, 4
mov dword [ebp - 0x2e8], eax
push 4
lea eax, [ebp - 0x2e8]
push eax
push 4
push 0
push str.Flags
push dword [ebp - 0x2dc]
call esi
mov edx, dword [edi + 0x14]
cmp edx, 8
jb 0x412a2b
mov ecx, dword [edi]
jmp 0x412a2d
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412a30
sub ecx, ebx
sar ecx, 1
cmp edx, 8
jb 0x412a46
mov edi, dword [edi]
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push 0x47b828
push dword [ebp - 0x2dc]
call esi
push dword [ebp - 0x2dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x250], 8
jb 0x412a83
push dword [ebp - 0x264]
call fcn.0044d639
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 0x412ab7
push dword [ebp - 0x234]
call fcn.0044d639
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 0x412aeb
push dword [ebp - 0x24c]
call fcn.0044d639
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.0044c32d
mov esp, ebp
pop ebp
ret