Function at 0x4215f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
lea esi, [ebp - 0x24]
mov edx, 0x571a48
mov ecx, esi
push 0x12
call fcn.00421e60
add esp, 4
cmp dword [ebp - 0x24], 0x80000000
jne 0x42162d
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
jmp 0x42163d
mov eax, dword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x24]
mov dword [ebp - 0x28], eax
movsd qword [ebp - 0x30], xmm0
call fcn.0041fb20
mov ebx, 0xb
test al, al
jne 0x4217a9
lea eax, [0x571a27]
mov dword [ebp - 0x20], 0x5719fb
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], 0
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00418970
add esp, 8
lea eax, [0x571a73]
mov dword [ebp - 0x20], 0x571a5a
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], 0
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00418970
add esp, 8
mov edi, dword [ebp - 0x50]
call fcn.00444d40
mov dword [ebp - 0x24], eax
push esi
push 0x20019
push 0
push edi
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4216fa
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4216dc
add eax, eax
push 2
push eax
push dword [ebp - 0x40]
call main
add esp, 0xc
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4217a7
add eax, eax
push 2
push eax
push edi
call main
add esp, 0xc
jmp 0x4217a7
mov dword [ebp - 0x5c], edi
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x60], 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x48]
push eax
push ecx
push esi
push 0
mov dword [ebp - 0x58], edx
push edx
mov dword [ebp - 0x34], edi
push edi
call sub.advapi32.dll_RegQueryValueExW
mov edi, eax
test eax, eax
je 0x421768
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
push eax
call fcn.0044ef00
add esp, 4
test edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x24], 1
je 0x42176d
lea eax, [ebp - 0x1c]
push eax
call fcn.0044ecd0
add esp, 4
jmp 0x42176d
mov ebx, dword [ebp - 0x48]
jmp 0x42176d
push dword [ebp - 0x34]
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x42178c
add eax, eax
push 2
push eax
push dword [ebp - 0x58]
call main
add esp, 0xc
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4217a3
add eax, eax
push 2
push eax
push dword [ebp - 0x5c]
call main
add esp, 0xc
test edi, edi
je 0x4217a9
xor ebx, ebx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x24], 0x571a78
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x40], fcn.004ea270
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x38], 0x41fb00
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 2
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.004cf490
add esp, 8
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x64]
movsd xmm0, qword [ebp - 0x6c]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x30]
movsd qword [esi], xmm0
test eax, eax
je 0x42181c
push 1
push eax
push dword [ebp - 0x2c]
call main
add esp, 0xc
mov eax, esi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret