Function at 0x40459a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425b66
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x42f058]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34c], edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x358], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x354], eax
mov eax, dword [ebp + 0x10]
push 0x21c
mov dword [ebp - 0x364], eax
push ecx
mov dword [eax], ecx
lea eax, [ebp - 0x334]
push eax
mov dword [ebp - 0x348], edi
mov dword [ebp - 0x338], ecx
mov dword [ebp - 0x344], ecx
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x360], ecx
mov dword [ebp - 0x35c], ecx
call fcn.00412d6c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x334], 0x21c
push 0x80
push eax
mov dword [ebp - 0x330], 0xf
call fcn.00414a70
add esp, 0x1c
mov dword [ebp - 0x340], 4
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x22c]
push eax
push ebx
push ebx
push 0x42b61c
push dword [ebp - 0x34c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x404c18
lea eax, [ebp - 0x340]
mov dword [ebp - 0x340], 4
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
push ebx
push str.DefaultDrive
push dword [ebp - 0x34c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x404c18
lea eax, [ebp - 0x340]
mov dword [ebp - 0x340], 4
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push ebx
push str.Priority
push dword [ebp - 0x34c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x404c18
mov edx, dword [ebp - 0x354]
lea eax, [ebp - 0x348]
mov ecx, dword [ebp - 0x358]
push eax
lea eax, [ebp - 0x334]
push eax
call fcn.004044f6
mov esi, eax
test esi, esi
js 0x404c12
lea eax, [ebp - 0x338]
push eax
push 0x20019
push ebx
push str.Properties
push dword [ebp - 0x34c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
xor eax, eax
inc eax
cmp esi, 0x80070002
cmove esi, eax
test esi, esi
js 0x404c12
mov edi, dword [ebp - 0x348]
jne 0x404901
mov eax, 0x100
lea ecx, [ebp - 0x350]
mov edx, eax
mov dword [ebp - 0x348], eax
call fcn.0040e261
mov esi, eax
test esi, esi
js 0x404978
mov ebx, dword [ebp - 0x350]
lea eax, [ebp - 0x340]
push eax
push ebx
xor ecx, ecx
mov dword [ebp - 0x340], 0x200
push ecx
push ecx
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x354], ecx
push eax
lea eax, [ebp - 0x114]
push eax
push ecx
jmp 0x4048cd
cmp eax, 0xea
jne 0x404869
mov ecx, dword [ebp - 0x340]
lea eax, [ecx + ecx]
cmp dword [ebp - 0x348], eax
jae 0x40496e
lea ebx, [ecx*2 + 0x32]
mov edx, ebx
mov dword [ebp - 0x348], ebx
lea ecx, [ebp - 0x350]
call fcn.0040e261
mov esi, eax
test esi, esi
js 0x404978
lea eax, [ebx + ebx]
mov dword [ebp - 0x33c], 0x80
mov ebx, dword [ebp - 0x350]
mov dword [ebp - 0x340], eax
lea eax, [ebp - 0x340]
push eax
push ebx
push 0
push 0
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x354]
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x404c18
mov eax, dword [edi]
lea ecx, [ebp - 0x114]
push ebx
push ecx
push edi
call dword [eax + 0x1c]
mov esi, eax
test esi, esi
js 0x404c18
mov esi, dword [ebp - 0x354]
mov eax, dword [ebp - 0x348]
inc esi
add eax, eax
mov dword [ebp - 0x354], esi
mov dword [ebp - 0x340], eax
lea eax, [ebp - 0x340]
push eax
push ebx
push 0
push 0
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 0x338]
mov dword [ebp - 0x33c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x4047e4
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x338], 0
lea eax, [ebp - 0x338]
push eax
push 0x20019
push 0
push str.Sources
push dword [ebp - 0x34c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
push 1
cmovle esi, eax
cmp esi, 0x80070002
pop eax
cmove esi, eax
test esi, esi
js 0x404c18
jne 0x404a8a
xor esi, esi
lea eax, [ebp - 0x36c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x348], esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
jmp 0x404a38
mov esi, 0x8000ffff
jmp 0x404c18
mov ebx, dword [ebp - 0x350]
jmp 0x404c18
lea eax, [ebp - 0x344]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x404c18
mov eax, dword [edi]
lea ecx, [ebp - 0x360]
push ecx
push dword [ebp - 0x358]
lea ecx, [ebp - 0x114]
push dword [ebp - 0x344]
push ecx
push edi
call dword [eax + 0x48]
mov ecx, dword [ebp - 0x360]
test ecx, ecx
je 0x4049fe
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 4]
add eax, ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor esi, esi
mov dword [ebp - 0x360], esi
jmp 0x404a00
xor esi, esi
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x348]
lea ecx, [ebp - 0x36c]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x33c]
mov dword [ebp - 0x344], esi
push ecx
lea ecx, [ebp - 0x114]
inc eax
push ecx
mov dword [ebp - 0x348], eax
push eax
push dword [ebp - 0x338]
mov dword [ebp - 0x33c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
test ecx, ecx
je 0x404983
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
xor esi, esi
cmp eax, 0x80070103
cmovne esi, eax
test esi, esi
js 0x404c18
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x338], 0
lea eax, [ebp - 0x338]
push eax
push 0x20019
push 0
push str.Resources
push dword [ebp - 0x34c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
push 1
cmovle esi, eax
cmp esi, 0x80070002
pop eax
cmove esi, eax
test esi, esi
js 0x404c18
jne 0x404bfe
xor esi, esi
lea eax, [ebp - 0x36c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x358], esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
jmp 0x404bb0
lea eax, [ebp - 0x344]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x404c18
mov eax, dword [edi]
lea ecx, [ebp - 0x35c]
push ecx
push dword [ebp - 0x344]
lea ecx, [ebp - 0x114]
push ecx
push edi
call dword [eax + 0x2c]
mov esi, eax
test esi, esi
js 0x404c18
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x404b76
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 4]
add eax, ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor esi, esi
mov dword [ebp - 0x35c], esi
jmp 0x404b78
xor esi, esi
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x358]
lea ecx, [ebp - 0x36c]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x33c]
mov dword [ebp - 0x344], esi
push ecx
lea ecx, [ebp - 0x114]
inc eax
push ecx
mov dword [ebp - 0x358], eax
push eax
push dword [ebp - 0x338]
mov dword [ebp - 0x33c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
test ecx, ecx
je 0x404af7
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
xor esi, esi
cmp eax, 0x80070103
cmovne esi, eax
test esi, esi
js 0x404c18
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x338], 0
mov eax, dword [edi]
push edi
call dword [eax + 0x74]
mov eax, dword [ebp - 0x364]
mov dword [eax], edi
xor edi, edi
xor esi, esi
jmp 0x404c18
mov edi, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x404c33
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 4]
add eax, ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x360]
test ecx, ecx
je 0x404c4e
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 4]
add eax, ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test ebx, ebx
je 0x404c62
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x344], 0
je 0x404c77
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x338], 0
je 0x404c8c
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x404ca7
mov eax, dword [edi]
push edi
call dword [eax + 0x7c]
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
add eax, 4
add eax, edi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004116a3
mov esp, ebp
pop ebp
ret 0xc