Function at 0x4250b7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x84
mov eax, 0x4839d2
call fcn.004649f3
mov edi, edx
mov esi, ecx
push 7
pop ecx
xor ebx, ebx
mov dword [ebp - 0x30], ecx
xor eax, eax
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push edi
call fcn.00409783
lea ecx, [ebp - 0x90]
call fcn.00426365
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x44]
mov ecx, esi
call fcn.0042607c
add esp, 0x1c
test al, al
je 0x425337
mov edx, 0x20119
lea ecx, [ebp - 0x44]
call fcn.00425f67
mov esi, eax
mov dword [ebp - 0x68], esi
test esi, esi
jne 0x42514f
mov edx, 0x20219
lea ecx, [ebp - 0x44]
call fcn.00425f67
mov esi, eax
mov dword [ebp - 0x68], eax
test esi, esi
je 0x425337
xor edx, edx
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push edx
push edx
push edx
push eax
push esi
mov dword [ebp - 0x64], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x425330
cmp dword [ebp - 0x64], eax
je 0x425330
push dword [ebp - 0x64]
and dword [ebp - 0x70], eax
and dword [ebp - 0x6c], eax
call fcn.00431519
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x64]
pop ecx
push edx
push eax
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x6c]
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x425326
cmp dword [ebp - 0x6c], 1
jne 0x42528f
push 0x497a98
lea ecx, [ebp - 0x5c]
mov bl, 1
call fcn.00403358
mov edi, dword [ebp - 0x60]
xor esi, esi
mov byte [ebp - 4], 3
cmp dword [ebp - 0x64], esi
jbe 0x425204
movzx ecx, byte [esi + edi + 1]
movzx eax, byte [esi + edi]
shl cx, 8
or cx, ax
movzx eax, cx
lea ecx, [ebp - 0x5c]
push eax
push 1
call fcn.00421ade
add esi, 2
cmp esi, dword [ebp - 0x64]
jb 0x4251de
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.00409783
lea ecx, [ebp - 0x84]
call fcn.00426365
mov edx, dword [ebp - 0x8c]
add esp, 0x18
mov ecx, dword [ebp - 0x90]
xor esi, esi
sub edx, ecx
sar edx, 2
test edx, edx
je 0x425270
mov eax, dword [ebp - 0x80]
mov edi, dword [ebp - 0x84]
sub eax, edi
sar eax, 2
sub edi, ecx
mov dword [ebp - 0x78], edi
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x74], eax
cmp esi, eax
jae 0x425264
mov edi, dword [ebp - 0x78]
mov eax, dword [ecx]
cmp eax, dword [edi + ecx]
mov edi, dword [ebp - 0x60]
ja 0x42526e
mov eax, dword [ebp - 0x74]
inc esi
add ecx, 4
cmp esi, edx
jb 0x425250
jmp 0x425270
xor bl, bl
lea ecx, [ebp - 0x84]
call fcn.00422f49
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.0040224f
mov esi, dword [ebp - 0x68]
jmp 0x425329
cmp dword [ebp - 0x6c], 4
jne 0x425362
cmp dword [ebp - 0x64], 4
jne 0x425326
mov ecx, dword [ebp - 0x60]
mov bl, 1
movzx esi, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl esi, 8
add esi, eax
movzx eax, byte [ecx + 1]
shl esi, 8
add esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
cmp dword [edi + 0x10], 2
jbe 0x4252f6
push 0x4992b4
call fcn.004026a2
pop ecx
push eax
push 0
push 0x4992b4
mov ecx, edi
call fcn.00403690
test eax, eax
jne 0x4252f6
cmp dword [edi + 0x14], 8
jb 0x4252f2
mov edi, dword [edi]
push 0x10
jmp 0x425300
cmp dword [edi + 0x14], 8
jb 0x4252fe
mov edi, dword [edi]
push 0xa
lea eax, [ebp - 0x70]
push eax
push edi
call fcn.004621cb
mov ecx, eax
add esp, 0xc
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x425321
xor edx, edx
cmp dx, word [eax]
jne 0x425321
cmp esi, ecx
jae 0x425323
xor bl, bl
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x60]
push edi
call fcn.00431522
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x90]
call fcn.00422f49
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040224f
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.0040224f
mov al, bl
call fcn.004649a2
ret
xor eax, eax
movzx ebx, bl
cmp dword [ebp - 0x6c], 3
cmove ebx, eax
jmp 0x425326