Function at 0x10022870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
lea ecx, [ebp - 0x24]
mov edx, 0x10170e00
push 0x12
call fcn.10023060
add esp, 4
cmp dword [ebp - 0x24], 0x80000000
jne 0x100228ab
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0
jmp 0x100228bb
mov eax, dword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
movsd qword [ebp - 0x34], xmm0
lea ebx, [ebp - 0x24]
mov edx, 0x10170e00
mov ecx, ebx
push 0x12
call fcn.10023060
add esp, 4
mov edi, dword [ebp - 0x24]
cmp edi, 0x80000000
je 0x100228e2
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
jmp 0x100228e9
xor eax, eax
mov esi, 1
push eax
push esi
push ebx
call fcn.100e7d10
add esp, 0xc
cmp byte [ebp - 0x24], 0
sete al
cmp dword [ebp - 0x20], 0x55f0
setae bl
and bl, al
test edi, 0x7fffffff
jne 0x10022920
mov edi, 0xb
test bl, bl
lea esi, [ebp - 0x24]
je 0x1002293c
jmp 0x10022a94
push 1
push edi
push esi
call fcn.1000d080
add esp, 0xc
mov edi, 0xb
test bl, bl
lea esi, [ebp - 0x24]
jne 0x10022a94
lea eax, [0x10170ddf]
mov dword [ebp - 0x20], 0x10170db3
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], 0
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.10018b90
add esp, 8
lea eax, [0x10170e2b]
mov dword [ebp - 0x20], 0x10170e12
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.10018b90
add esp, 8
mov edi, dword [ebp - 0x54]
call fcn.1003bd60
mov dword [ebp - 0x24], eax
push esi
push 0x20019
push 0
push edi
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x100229e7
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x100229c9
add eax, eax
push 2
push eax
push dword [ebp - 0x40]
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x10022a92
add eax, eax
push 2
push eax
push edi
call fcn.1000d080
add esp, 0xc
jmp 0x10022a92
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x28]
push eax
push ecx
push esi
push 0
mov dword [ebp - 0x48], edx
push edx
mov esi, ebx
push ebx
call sub.advapi32.dll_RegQueryValueExW
mov ebx, eax
test eax, eax
mov dword [ebp - 0x4c], edi
je 0x10022a54
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
push eax
call fcn.10047f90
add esp, 4
test edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x24], 1
je 0x10022a52
lea eax, [ebp - 0x1c]
push eax
call fcn.10047d70
add esp, 4
jmp 0x10022a57
mov edi, dword [ebp - 0x28]
push esi
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x10022a74
add eax, eax
push 2
push eax
push dword [ebp - 0x48]
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x10022a8b
add eax, eax
push 2
push eax
push dword [ebp - 0x4c]
call fcn.1000d080
add esp, 0xc
test ebx, ebx
lea esi, [ebp - 0x24]
je 0x10022a94
xor edi, edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], 0x10170e30
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], fcn.100ec7c0
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], 0x10020f20
mov dword [ebp - 0x18], 2
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.100d19e0
add esp, 8
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10022af5
push 1
push eax
push dword [ebp - 0x30]
call fcn.1000d080
add esp, 0xc
mov eax, esi
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret