Function at 0x4058d0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x49421c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x240]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.SAM__u.dmp
mov ecx, dword [ebp - 8]
lea edx, [ebp + ecx - 0x240]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
call fcn.00404ec0
add esp, 4
lea ecx, [ebp - 0x240]
push ecx
push str.SECURITY
call fcn.00404e30
add esp, 8
test eax, eax
jne 0x40594e
or eax, 0xffffffff
jmp 0x405b59
lea edx, [ebp - 0x240]
push edx
call fcn.00404f30
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405992
mov eax, dword [ebp + 8]
push eax
call fcn.004056d0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405992
lea ecx, [ebp - 0x240]
push ecx
call fcn.00404ec0
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x405b59
push 0x94
push 0
lea edx, [ebp - 0x128]
push edx
call fcn.0045bb20
add esp, 0xc
mov dword [ebp - 0x128], 0x94
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x124], 6
jb 0x405a83
push 0x46eec4
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.PolicyPolEKList
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0xac
mov eax, dword [ebp + 0xc]
add eax, 0x4c
push eax
push 0
push 0x46ed77
lea ecx, [ebp - 0x90]
push ecx
push 0x80000002
call fcn.00405d30
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
sub eax, 1
mov dword [ebp - 4], eax
push 0x46eee4
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x46eef0
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x9c
mov ecx, dword [ebp + 0x10]
add ecx, 0x54
push ecx
push 0
push 0x46ed83
lea edx, [ebp - 0x90]
push edx
push 0x80000002
call fcn.00405d30
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x405b29
push 0x46ef10
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.PolicyPolSecretEncryptionKey
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x4c
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0x46ed89
lea eax, [ebp - 0x90]
push eax
push 0x80000002
call fcn.00405d30
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
sub eax, 1
mov dword [ebp - 4], eax
push str.QUARKS_SAM
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.PolicySecretsNL_KMCurrVal
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x54
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0x46ed8a
lea ecx, [ebp - 0x90]
push ecx
push 0x80000002
call fcn.00405d30
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
sub eax, 1
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x124]
mov dword [edx + 0xf8], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x124]
mov dword [ecx + 0xf0], edx
lea eax, [ebp - 0x240]
push eax
call fcn.00404ec0
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0045b79b
mov esp, ebp
pop ebp
ret