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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42434f
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.00412c31
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x334], 0x21c
push 0x80
push eax
mov dword [ebp - 0x330], 0xf
call fcn.00414347
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 0x42a49c
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 0x404bad
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 0x404bad
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 0x404bad
mov edx, dword [ebp - 0x354]
lea eax, [ebp - 0x348]
mov ecx, dword [ebp - 0x358]
push eax
lea eax, [ebp - 0x334]
push eax
call fcn.00404497
mov esi, eax
test esi, esi
js 0x404ba7
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 0x404ba7
mov edi, dword [ebp - 0x348]
jne 0x404896
mov eax, 0x100
lea ecx, [ebp - 0x350]
mov edx, eax
mov dword [ebp - 0x348], eax
call fcn.0040e3a7
mov esi, eax
test esi, esi
js 0x40490d
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 0x404862
cmp eax, 0xea
jne 0x4047fe
mov ecx, dword [ebp - 0x340]
lea eax, [ecx + ecx]
cmp dword [ebp - 0x348], eax
jae 0x404903
lea ebx, [ecx*2 + 0x32]
mov edx, ebx
mov dword [ebp - 0x348], ebx
lea ecx, [ebp - 0x350]
call fcn.0040e3a7
mov esi, eax
test esi, esi
js 0x40490d
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 0x404bad
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 0x404bad
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 0x404779
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 0x404bad
jne 0x404a1f
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 0x4049cd
mov esi, 0x8000ffff
jmp 0x404bad
mov ebx, dword [ebp - 0x350]
jmp 0x404bad
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 0x404bad
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 0x404993
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 0x404995
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 0x404918
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 0x404bad
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 0x404bad
jne 0x404b93
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 0x404b45
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 0x404bad
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 0x404bad
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x404b0b
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 0x404b0d
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 0x404a8c
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 0x404bad
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 0x404bad
mov edi, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x404bc8
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 edx, dword [ebp - 0x360]
test edx, edx
je 0x404be3
mov eax, dword [edx + 4]
add edx, 4
mov eax, dword [eax + 4]
add eax, edx
push eax
mov edx, dword [eax]
call dword [edx + 8]
test ebx, ebx
je 0x404bee
mov ecx, ebx
call fcn.004111cc
cmp dword [ebp - 0x344], 0
je 0x404c03
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x338], 0
je 0x404c18
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x404c33
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.004114dd
mov esp, ebp
pop ebp
ret 0xc