Function at 0x40fbd0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423e5b
push eax
mov eax, 0x1030
mov dword fs:[0], esp
call fcn.00422fa0
mov dl, byte [0x42f83c]
push ebx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], dl
mov byte [esp + 0x18], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.SOFTWAREKasperskyLabInstalledProducts
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x228]
mov dword [esp + 0x1c], ebx
stosb byte es:[edi], al
mov dword [esp + 0x10], 1
mov dword [esp + 0x18], 0x104
call fcn.00418b80
push ebx
lea ecx, [esp + 0x224]
mov dword [esp + 0x1044], ebx
mov dword [esp + 0x10], ebx
call fcn.00418c20
test eax, eax
je 0x40fe27
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__snprintf]
push esi
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x124]
push eax
push str.SOFTWAREKasperskyLabInstalledProducts
push 0x42a454
push 0x103
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], 0x104
mov byte [esp + 0x34], bl
call ebp
add esp, 0x14
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x130]
push str.Folder
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp eax, ebx
jne 0x40fe07
mov edi, str.kav.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x20]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40fe07
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x440]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x440]
test ecx, ecx
je 0x40fe07
mov ecx, 0x200
lea edi, [esp + 0x840]
lea edx, [esp + 0x20]
mov byte [esp + 0x440], bl
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x40fdb1
lea eax, [esp + 0x840]
push 0x800
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x840]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0x20]
lea eax, [esp + 0x840]
push edx
lea ecx, [esp + 0x844]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [esp + 0x840]
push 0x400
lea eax, [esp + 0x444]
push edx
push eax
jmp 0x40fdc3
lea ecx, [esp + 0x20]
push 0x400
lea edx, [esp + 0x444]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea eax, [esp + 0x440]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, ebx
je 0x40fe07
mov eax, dword [esp + 0x1050]
cmp eax, ebx
je 0x40fdff
mov ecx, dword [esp + 0x1054]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
call fcn.0041fe60
add esp, 0xc
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x228]
inc eax
push eax
mov dword [esp + 0x18], eax
call fcn.00418c20
test eax, eax
jne 0x40fc79
pop esi
pop ebp
lea ecx, [esp + 0x220]
mov dword [esp + 0x1040], 0xffffffff
call fcn.00418c00
mov ecx, dword [esp + 0x1038]
mov eax, dword [esp + 0x14]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x103c
ret 8