Function at 0x45adf0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcada
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x525b24]
xor esi, esi
xor bl, bl
mov dword [ebp - 4], esi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x240], esi
mov byte [ebp - 4], bl
mov dword [ebp - 0x240], 7
mov byte [ebp - 4], bl
lea eax, [ebp - 0x254]
cmp dword [ebp - 0x240], 8
mov dword [ebp - 0x244], esi
cmovae eax, dword [ebp - 0x254]
mov byte [ebp - 4], 0x1a
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x228], 7
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x228], 8
mov dword [ebp - 0x22c], ecx
cmovae eax, dword [ebp - 0x23c]
mov dword [ebp - 4], 0x34
mov word [eax], cx
lea ecx, [ebp - 0x23c]
push 0x13
push str.SoftwareMicrosoft_
mov dword [ebp - 4], 0xffffffff
call fcn.00415460
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x45aef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 4], 0x6b
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x45b011
movzx ecx, word [0x527710]
neg ecx
sbb ecx, ecx
mov dword [ebp - 4], 0x6f
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x228], 8
lea edx, [ebp - 0x25c]
push edx
cmovae eax, dword [ebp - 0x23c]
and ecx, 0x100
or ecx, 1
mov dword [ebp - 4], 0xffffffff
push ecx
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x45b041
mov dword [ebp - 0x224], 0x208
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0x72
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
push ecx
cmovae eax, dword [ebp - 0x254]
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 0xffffffff
push ecx
push esi
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x45b005
mov eax, dword [ebp - 0x224]
mov ecx, 0x103
shr eax, 1
cmp eax, 0x104
cmove eax, ecx
mov dword [ebp - 0x224], eax
add eax, eax
cmp eax, 0x208
jae 0x45b02e
xor ecx, ecx
cmp dword [ebp - 0x258], 2
mov word [ebp + eax - 0x220], cx
jne 0x45b005
lea eax, [ebp - 0x220]
push 0x25
push eax
call fcn.004ac3d3
add esp, 8
test eax, eax
je 0x45b005
mov bl, 1
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x45b041
xor eax, eax
mov word [ebp - 0x1a], ax
test bl, bl
je 0x45b033
mov edx, edi
lea ecx, [ebp - 0x220]
call fcn.0045ab40
jmp 0x45b041
call fcn.00493c6a
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.00414f90
mov dword [ebp - 4], 0x75
cmp dword [ebp - 0x228], 8
jb 0x45b073
mov byte [ebp - 4], 0x75
mov ecx, dword [ebp - 0x23c]
mov byte [ebp - 4], 0x75
mov eax, dword [ebp - 0x228]
inc eax
push eax
push ecx
lea ecx, [ebp - 0x23c]
call fcn.004155f0
mov byte [ebp - 4], 0x75
mov dword [ebp - 0x228], 7
mov byte [ebp - 4], 0x75
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x228], 8
mov dword [ebp - 0x22c], 0
cmovae eax, dword [ebp - 0x23c]
xor ecx, ecx
mov byte [ebp - 4], 0x8f
mov word [eax], cx
mov dword [ebp - 4], 0x90
cmp dword [ebp - 0x240], 8
jb 0x45b0de
mov byte [ebp - 4], 0x90
mov ecx, dword [ebp - 0x254]
mov byte [ebp - 4], 0x90
mov eax, dword [ebp - 0x240]
inc eax
push eax
push ecx
lea ecx, [ebp - 0x254]
call fcn.004155f0
mov byte [ebp - 4], 0x90
mov dword [ebp - 0x240], 7
mov byte [ebp - 4], 0x90
lea eax, [ebp - 0x254]
cmp dword [ebp - 0x240], 8
mov dword [ebp - 0x244], 0
cmovae eax, dword [ebp - 0x254]
mov byte [ebp - 4], 0xaa
xor ecx, ecx
mov word [eax], cx
mov eax, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret