Function at 0x4ae210
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dad4a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x689140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x50], edi
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
xor ecx, ecx
mov dword [edi], vtable.asw::settings::AvastStorePaths.0
movups xmmword [edi + 4], xmm0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 7
mov word [edi + 4], cx
mov dword [ebp - 4], ecx
mov byte [edi + 0x5c], cl
lea esi, [edi + 0x60]
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
movups xmmword [esi + 0xc], xmm0
push 2
movq qword [esi + 0x1c], xmm0
mov dword [esi + 0x24], ecx
push esi
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
call fcn.00597f4e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi + 0x30], xmm0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 7
mov word [esi + 0x30], ax
movups xmmword [esi + 0x48], xmm0
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 7
mov word [esi + 0x48], ax
movups xmmword [esi + 0x60], xmm0
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], 7
mov word [esi + 0x60], ax
lea esi, [edi + 0xd8]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
movups xmmword [esi + 0xc], xmm0
push 2
movq qword [esi + 0x1c], xmm0
mov dword [esi + 0x24], eax
push esi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
call fcn.00597f4e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi + 0x30], xmm0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 7
mov word [esi + 0x30], ax
movups xmmword [esi + 0x48], xmm0
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 7
mov word [esi + 0x48], ax
add edi, 0x138
mov dword [ebp - 0x34], edi
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x38]
add esi, 0x148
mov dword [ebp - 0x3c], esi
push 0x44
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.005988b3
add esp, 0x14
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [esi + 8], 0
mov esi, dword [ebp - 0x38]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi + 0x154], xmm0
mov dword [esi + 0x164], 0
mov dword [esi + 0x168], 7
mov word [esi + 0x154], ax
movups xmmword [esi + 0x16c], xmm0
mov dword [esi + 0x17c], eax
mov dword [esi + 0x180], 7
mov word [esi + 0x16c], ax
mov dword [esi + 0x184], eax
mov dword [esi + 0x188], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x18c], eax
mov dword [esi + 0x190], 0
mov dword [esi + 0x194], 0
mov byte [ebp - 4], 8
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6eeb68]
cmp eax, dword [ecx + 4]
jle 0x4ae4ab
push 0x6eeb68
call fcn.00598b38
add esp, 4
cmp dword [0x6eeb68], 0xffffffff
jne 0x4ae4ab
mov byte [ebp - 4], 9
call fcn.00442150
mov ecx, str.settings.ini
mov edx, 0x62a218
xorps xmm0, xmm0
cmp dword [eax + 0x18], 1
movups xmmword [0x6eeb6c], xmm0
cmovne edx, ecx
mov dword [0x6eeb7c], 0
mov eax, edx
mov dword [0x6eeb80], 0
lea ecx, [eax + 2]
mov dword [ebp - 0x3c], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ae471
sub eax, dword [ebp - 0x3c]
mov ecx, 0x6eeb6c
sar eax, 1
push eax
push edx
call fcn.00428c10
push 0x5f0b70
call fcn.00598855
add esp, 4
mov byte [ebp - 4], 8
push 0x6eeb68
call fcn.00598ae7
add esp, 4
lea ecx, [esi + 4]
cmp ecx, 0x6eeb6c
je 0x4ae4d5
cmp dword [0x6eeb80], 7
mov eax, 0x6eeb6c
push dword [0x6eeb7c]
cmova eax, dword [0x6eeb6c]
push eax
call fcn.004287b0
mov eax, dword [esi + 0x18c]
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x4ae547
mov esi, dword [esi + 8]
add eax, 0x20
push eax
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call dword [0x5f2510]
call esi
add esp, 8
mov ecx, dword [eax]
mov dword [eax], 0
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x188]
mov dword [ebp - 0x3c], edx
mov dword [eax + 0x188], ecx
test edx, edx
je 0x4ae52b
mov eax, dword [edx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x5f2510]
mov ecx, dword [ebp - 0x3c]
call esi
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x4ae547
mov eax, dword [esi]
push 1
mov edi, dword [eax]
mov ecx, edi
call dword [0x5f2510]
mov ecx, esi
call edi
mov edi, dword [ebp - 0x34]
lea esi, [edi + 0xc]
push esi
call fcn.005ca071
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 1
mov byte [ebp - 4], 0xa
sub esp, 8
mov ecx, dword [edi + 4]
mov dword [ebp - 0x40], str.config
mov dword [ebp - 0x3c], 6
mov dword [ebp - 0x34], 2
cmp ecx, dword [edi + 8]
je 0x4ae5b6
mov eax, esp
sub esp, 8
mov dword [eax], 0x629350
mov dword [eax + 4], 0
mov eax, esp
push 6
push str.config
push 2
mov dword [eax], 0x629350
mov dword [eax + 4], 0
call fcn.0049e550
add dword [edi + 4], 0x40
jmp 0x4ae5c6
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x34]
push eax
push ecx
mov ecx, edi
call fcn.004b23d0
push esi
call fcn.005ca08d
add esp, 4
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xb
call fcn.004b4120
mov esi, dword [0x6ee870]
push esi
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xc
call fcn.004b4300
push esi
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0xd0]
push eax
mov ecx, esi
call fcn.004b0910
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 8
call fcn.00445660
lea ecx, [ebp - 0x9c]
call fcn.00445660
lea ecx, [ebp - 0xb8]
call fcn.00428f60
lea ecx, [ebp - 0xd0]
call fcn.00428f60
push dword [0x633dc8]
mov ecx, dword [esi + 0x18c]
push dword [0x633dc4]
add ecx, 0x20
push dword [0x62eb08]
push dword [0x62eb04]
call fcn.004bb1b0
push dword [0x633dac]
mov ecx, dword [esi + 0x18c]
push dword [0x633da8]
add ecx, 0x20
push dword [0x62eb10]
push dword [0x62eb0c]
call fcn.004bb1b0
cmp dword [0x689cc4], 7
mov eax, str.avast5
mov edx, dword [esi + 0x18c]
xorps xmm0, xmm0
cmova eax, dword [str.avast5]
mov ecx, dword [0x635290]
mov edi, dword [str.avcfg]
mov esi, dword [0x62eb08]
mov dword [ebp - 0x34], eax
mov eax, dword [0x689cc0]
mov dword [ebp - 0x48], eax
mov eax, dword [0x63528c]
mov dword [ebp - 0x28], eax
lea eax, [edx + 0x144]
mov dword [ebp - 0x44], eax
add eax, 0x20
push eax
mov dword [ebp - 0x24], ecx
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x3c], eax
call fcn.005ca071
mov eax, dword [ebp - 0x44]
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 1
mov byte [ebp - 4], 0xd
xorps xmm0, xmm0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push esi
push edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x2c], esi
call fcn.00428c10
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004bc4a0
lea ecx, [ebp - 0x68]
mov esi, dword [eax]
mov byte [ebp - 4], 0xd
call fcn.00428f60
push dword [ebp - 0x48]
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0
push dword [ebp - 0x34]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x80], xmm0
call fcn.00428c10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [esi + 0x20]
call fcn.004bc900
lea ecx, [ebp - 0x80]
call fcn.00428f60
push dword [ebp - 0x3c]
call fcn.005ca08d
mov eax, dword [ebp - 0x38]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059860b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4