Function at 0x516143
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x615370]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x14
mov eax, 0x5b10f4
call fcn.0058ea9b
mov eax, dword [ebp + 0x41c]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x1c], ebx
test byte [0x624fac], 1
mov dword [ebp - 0x10], eax
jne 0x5161a3
or dword [0x624fac], 1
mov ecx, 0x624fa8
call fcn.00406560
push 0x5c5a09
call fcn.00588d7c
pop ecx
mov eax, dword [0x624fa8]
cmp dword [eax - 0xc], ebx
jne 0x5163a6
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.0058e300
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x516222
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.Path
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp]
mov edi, 0x624fa8
call fcn.00406be0
mov eax, dword [0x624fa8]
cmp dword [eax - 0xc], ebx
jne 0x5163a6
push 0x208
lea eax, [ebp + 0x208]
push ebx
push eax
call fcn.0058e300
add esp, 0xc
push 0x104
lea eax, [ebp + 0x208]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp + 0x208]
push eax
call edi
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, ebx
je 0x5163a6
mov edx, str.SoftMgr
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x5162a9
cmp si, bx
je 0x5162a5
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x5162a9
add ecx, 4
add edx, 4
cmp si, bx
jne 0x516283
xor ecx, ecx
jmp 0x5162ae
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x5162d0
lea eax, [ebp + 0x208]
push eax
call edi
lea edx, [ebp + 0x208]
mov edi, 0x624fa8
call fcn.00406be0
jmp 0x5163a6
mov ebx, str.Total_Security
mov edx, ebx
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x5162ff
test si, si
je 0x5162fb
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x5162ff
add ecx, 4
add edx, 4
test si, si
jne 0x5162d9
xor ecx, ecx
jmp 0x516304
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x516394
mov ecx, 0x5df1e0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x516337
test dx, dx
je 0x516333
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x516337
add eax, 4
add ecx, 4
test dx, dx
jne 0x516311
xor eax, eax
jmp 0x51633c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea eax, [ebp + 0x208]
push eax
jne 0x516354
call edi
lea eax, [ebp + 0x208]
push eax
call edi
jmp 0x516394
call edi
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x51638b
test dx, dx
je 0x516387
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x51638b
add eax, 4
add ecx, 4
test dx, dx
jne 0x516365
xor eax, eax
jmp 0x516390
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5163a4
lea edx, [ebp + 0x208]
mov edi, 0x624fa8
call fcn.00406be0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x5163d5
lea eax, [ebp - 0x10]
push eax
call fcn.00406c20
mov edi, dword [ebp - 0x14]
push 0x624fa8
lea esi, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00521df6
pop ecx
mov ecx, esi
call fcn.004066e0
mov eax, edi
jmp 0x5163ec
mov eax, dword [0x624fa8]
add eax, 0xfffffff0
call fcn.00406580
mov ecx, eax
mov eax, dword [ebp - 0x14]
add ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.005886fc
add ebp, 0x414
leave
ret