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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424ad9
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x42e058]
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.00412d4c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x334], 0x21c
push 0x80
push eax
mov dword [ebp - 0x330], 0xf
call fcn.00414964
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 0x42a44c
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 0x404c1e
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 0x404c1e
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 0x404c1e
mov edx, dword [ebp - 0x354]
lea eax, [ebp - 0x348]
mov ecx, dword [ebp - 0x358]
push eax
lea eax, [ebp - 0x334]
push eax
call fcn.004044fc
mov esi, eax
test esi, esi
js 0x404c18
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 0x404c18
mov edi, dword [ebp - 0x348]
jne 0x404907
mov eax, 0x100
lea ecx, [ebp - 0x350]
mov edx, eax
mov dword [ebp - 0x348], eax
call fcn.0040e27a
mov esi, eax
test esi, esi
js 0x40497e
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 0x4048d3
cmp eax, 0xea
jne 0x40486f
mov ecx, dword [ebp - 0x340]
lea eax, [ecx + ecx]
cmp dword [ebp - 0x348], eax
jae 0x404974
lea ebx, [ecx*2 + 0x32]
mov edx, ebx
mov dword [ebp - 0x348], ebx
lea ecx, [ebp - 0x350]
call fcn.0040e27a
mov esi, eax
test esi, esi
js 0x40497e
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 0x404c1e
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 0x404c1e
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 0x4047ea
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 0x404c1e
jne 0x404a90
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 0x404a3e
mov esi, 0x8000ffff
jmp 0x404c1e
mov ebx, dword [ebp - 0x350]
jmp 0x404c1e
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 0x404c1e
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 0x404a04
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 0x404a06
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 0x404989
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 0x404c1e
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 0x404c1e
jne 0x404c04
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 0x404bb6
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 0x404c1e
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 0x404c1e
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x404b7c
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 0x404b7e
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 0x404afd
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 0x404c1e
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 0x404c1e
mov edi, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x404c39
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 0x404c54
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 0x404c68
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 0x404c7d
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x338], 0
je 0x404c92
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x404cad
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.00411690
mov esp, ebp
pop ebp
ret 0xc