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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d72ba
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x517074]
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 [0x51cadc]
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.00413f90
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x465ef0
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 0x466011
movzx ecx, byte [0x51e680]
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 0x466041
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 0x466005
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 0x46602e
xor ecx, ecx
cmp dword [ebp - 0x258], 2
mov word [ebp + eax - 0x220], cx
jne 0x466005
lea eax, [ebp - 0x220]
push 0x25
push eax
call fcn.004a4cfd
add esp, 8
test eax, eax
je 0x466005
mov bl, 1
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x466041
xor eax, eax
mov word [ebp - 0x1a], ax
test bl, bl
je 0x466033
mov edx, edi
lea ecx, [ebp - 0x220]
call fcn.00465b50
jmp 0x466041
call fcn.0048be52
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.00413ac0
mov dword [ebp - 4], 0x75
cmp dword [ebp - 0x228], 8
jb 0x466073
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.00414120
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 0x4660de
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.00414120
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.0048bc9e
mov esp, ebp
pop ebp
ret