Function at 0x40459f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424e95
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.004130e9
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x334], 0x21c
push 0x80
push eax
mov dword [ebp - 0x330], 0xf
call fcn.00414d54
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 0x42b49c
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 0x404c1d
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 0x404c1d
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 0x404c1d
mov edx, dword [ebp - 0x354]
lea eax, [ebp - 0x348]
mov ecx, dword [ebp - 0x358]
push eax
lea eax, [ebp - 0x334]
push eax
call fcn.00404507
mov esi, eax
test esi, esi
js 0x404c17
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 0x404c17
mov edi, dword [ebp - 0x348]
jne 0x404906
mov eax, 0x100
lea ecx, [ebp - 0x350]
mov edx, eax
mov dword [ebp - 0x348], eax
call fcn.0040e658
mov esi, eax
test esi, esi
js 0x40497d
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 0x4048d2
cmp eax, 0xea
jne 0x40486e
mov ecx, dword [ebp - 0x340]
lea eax, [ecx + ecx]
cmp dword [ebp - 0x348], eax
jae 0x404973
lea ebx, [ecx*2 + 0x32]
mov edx, ebx
mov dword [ebp - 0x348], ebx
lea ecx, [ebp - 0x350]
call fcn.0040e658
mov esi, eax
test esi, esi
js 0x40497d
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 0x404c1d
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 0x404c1d
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 0x4047e9
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 0x404c1d
jne 0x404a8f
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 0x404a3d
mov esi, 0x8000ffff
jmp 0x404c1d
mov ebx, dword [ebp - 0x350]
jmp 0x404c1d
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 0x404c1d
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 0x404a03
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 0x404a05
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]
test eax, eax
je 0x404988
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
xor eax, eax
cmp esi, 0x80070103
cmove esi, eax
test esi, esi
js 0x404c1d
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 0x404c1d
jne 0x404c03
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 0x404bb5
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 0x404c1d
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 0x404c1d
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x404b7b
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 0x404b7d
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]
test eax, eax
je 0x404afc
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
xor eax, eax
cmp esi, 0x80070103
cmove esi, eax
test esi, esi
js 0x404c1d
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 0x404c1d
mov edi, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x404c38
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 0x404c53
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 0x404c67
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 0x404c7c
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x338], 0
je 0x404c91
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x404cac
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.0041195e
mov esp, ebp
pop ebp
ret 0xc