Function at 0x412680
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46882c
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 0x47ac50
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
call fcn.0040a100
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x47ac50
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
call fcn.0040a100
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 0x41278d
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x41278d
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x2b4]
call fcn.00412380
test eax, eax
jne 0x41278d
push 1
push 0x47b7f0
lea ecx, [ebp - 0x24c]
call fcn.0040a100
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x2a4]
call fcn.00412380
test eax, eax
jne 0x4127c1
push 1
push 0x47b7f0
lea ecx, [ebp - 0x234]
call fcn.0040a100
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.0040a100
push 0x47b7fc
lea edx, [ebp - 0x27c]
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 2
call fcn.004122e0
push esi
mov edx, eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call fcn.00409ac0
add esp, 8
cmp dword [ebp - 0x280], 8
jb 0x412836
push dword [ebp - 0x294]
call fcn.0044d5f9
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 0x41286a
push dword [ebp - 0x27c]
call fcn.0044d5f9
add esp, 4
cmp dword [ebp - 0x250], 8
mov eax, dword [ebp - 0x264]
jae 0x41287f
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 0x412a3c
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x4128b5
mov ecx, dword [esi]
jmp 0x4128b7
mov ecx, esi
lea ebx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4128c0
sub ecx, ebx
sar ecx, 1
cmp edx, 8
jb 0x4128d6
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 0x47b834
push dword [ebp - 0x2dc]
call esi
mov ebx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x234]
mov ecx, edx
cmp ebx, 8
jae 0x41290f
lea ecx, [ebp - 0x234]
lea eax, [ecx + 2]
mov dword [ebp - 0x2e0], eax
jmp 0x412920
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412920
sub ecx, dword [ebp - 0x2e0]
sar ecx, 1
cmp ebx, 8
jae 0x41293e
lea edx, [ebp - 0x234]
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x47b83c
push dword [ebp - 0x2dc]
call esi
mov ebx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x24c]
mov ecx, edx
cmp ebx, 8
jae 0x412971
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 0x412980
sub ecx, dword [ebp - 0x2e0]
sar ecx, 1
cmp ebx, 8
jae 0x41299e
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 0x4129c6
mov eax, dword [eax]
push eax
call fcn.0044e04a
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 0x4129fb
mov ecx, dword [edi]
jmp 0x4129fd
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412a00
sub ecx, ebx
sar ecx, 1
cmp edx, 8
jb 0x412a16
mov edi, dword [edi]
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push 0x47b860
push dword [ebp - 0x2dc]
call esi
push dword [ebp - 0x2dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x250], 8
jb 0x412a53
push dword [ebp - 0x264]
call fcn.0044d5f9
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 0x412a87
push dword [ebp - 0x234]
call fcn.0044d5f9
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 0x412abb
push dword [ebp - 0x24c]
call fcn.0044d5f9
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.0044c2ed
mov esp, ebp
pop ebp
ret