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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x493afc]
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.00404db0
add esp, 4
lea ecx, [ebp - 0x240]
push ecx
push str.SECURITY
call fcn.00404d20
add esp, 8
test eax, eax
jne 0x40583e
or eax, 0xffffffff
jmp 0x405a49
lea edx, [ebp - 0x240]
push edx
call fcn.00404e20
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405882
mov eax, dword [ebp + 8]
push eax
call fcn.004055c0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405882
lea ecx, [ebp - 0x240]
push ecx
call fcn.00404db0
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x405a49
push 0x94
push 0
lea edx, [ebp - 0x128]
push edx
call fcn.0045ba40
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 0x405973
push 0x46eea8
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 0x46ed5b
lea ecx, [ebp - 0x90]
push ecx
push 0x80000002
call fcn.00405c20
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
sub eax, 1
mov dword [ebp - 4], eax
push 0x46eec8
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x46eed4
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 0x46ed67
lea edx, [ebp - 0x90]
push edx
push 0x80000002
call fcn.00405c20
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x405a19
push 0x46eef4
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 0x46ed6d
lea eax, [ebp - 0x90]
push eax
push 0x80000002
call fcn.00405c20
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 0x46ed6e
lea ecx, [ebp - 0x90]
push ecx
push 0x80000002
call fcn.00405c20
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.00404db0
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0045b6bb
mov esp, ebp
pop ebp
ret