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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424bfa
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x42e05c]
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 0x214
mov dword [ebp - 0x364], eax
push ecx
mov dword [eax], ecx
lea eax, [ebp - 0x32c]
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.00412599
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x334], 0x21c
push 0x80
push eax
mov dword [ebp - 0x330], 0xf
call fcn.00414840
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 0x404bb4
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 0x404bb4
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 0x404bb4
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 0x404bae
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 0x404bae
mov edi, dword [ebp - 0x348]
jne 0x40489d
mov eax, 0x100
lea ecx, [ebp - 0x350]
mov edx, eax
mov dword [ebp - 0x348], eax
call fcn.0040e0eb
mov esi, eax
test esi, esi
js 0x404914
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 0x404869
cmp eax, 0xea
jne 0x404805
mov ecx, dword [ebp - 0x340]
lea eax, [ecx + ecx]
cmp dword [ebp - 0x348], eax
jae 0x40490a
lea ebx, [ecx*2 + 0x32]
mov edx, ebx
mov dword [ebp - 0x348], ebx
lea ecx, [ebp - 0x350]
call fcn.0040e0eb
mov esi, eax
test esi, esi
js 0x404914
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 0x404bb4
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 0x404bb4
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 0x404780
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 0x404bb4
jne 0x404a26
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 0x4049d4
mov esi, 0x8000ffff
jmp 0x404bb4
mov ebx, dword [ebp - 0x350]
jmp 0x404bb4
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 0x404bb4
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 0x40499a
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 0x40499c
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 0x40491f
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 0x404bb4
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 0x404bb4
jne 0x404b9a
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 0x404b4c
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 0x404bb4
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 0x404bb4
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x404b12
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 0x404b14
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 0x404a93
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 0x404bb4
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 0x404bb4
mov edi, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x404bcf
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 0x404bea
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 0x404bf5
mov ecx, ebx
call fcn.00411025
cmp dword [ebp - 0x344], 0
je 0x404c0a
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x338], 0
je 0x404c1f
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x404c3a
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.00411433
leave
ret 0xc