Function at 0x4245c7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x64
mov eax, 0x4838ca
call fcn.004649f3
mov esi, edx
push 7
pop edx
xor ebx, ebx
mov dword [ebp - 0x30], edx
xor eax, eax
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x44]
call fcn.0042607c
pop ecx
test al, al
je 0x424809
mov edx, 0x20119
lea ecx, [ebp - 0x44]
call fcn.00425f67
mov edi, eax
mov dword [ebp - 0x60], edi
test edi, edi
jne 0x42463c
mov edx, 0x20219
lea ecx, [ebp - 0x44]
call fcn.00425f67
mov edi, eax
mov dword [ebp - 0x60], eax
test edi, edi
je 0x424809
xor edx, edx
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
mov bh, bl
push edx
push edx
push edx
push eax
push edi
mov dword [ebp - 0x64], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4247a1
cmp dword [ebp - 0x64], eax
je 0x4247a1
push dword [ebp - 0x64]
and dword [ebp - 0x68], eax
and dword [ebp - 0x70], eax
call fcn.00431519
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x64]
pop ecx
push edx
push eax
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x70]
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424798
cmp dword [ebp - 0x70], 1
jne 0x424701
mov eax, dword [ebp - 0x64]
mov edi, dword [esi + 0x10]
add eax, 0xfffffffe
shr eax, 1
cmp eax, edi
jne 0x424795
xor edx, edx
mov bh, 1
test edi, edi
je 0x424795
mov eax, dword [ebp - 0x6c]
movzx ecx, byte [eax + edx*2 + 1]
movzx eax, byte [eax + edx*2]
shl cx, 8
or cx, ax
cmp dword [esi + 0x14], 8
movzx ecx, cx
jb 0x4246eb
mov eax, dword [esi]
jmp 0x4246ed
mov eax, esi
cmp cx, word [eax + edx*2]
jne 0x424793
inc edx
cmp edx, edi
jb 0x4246cb
jmp 0x424795
cmp dword [ebp - 0x70], 4
jne 0x4247aa
cmp dword [ebp - 0x64], 4
jne 0x424798
mov ecx, dword [ebp - 0x6c]
mov bh, 1
movzx edi, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl edi, 8
add edi, eax
movzx eax, byte [ecx + 1]
shl edi, 8
add edi, eax
movzx eax, byte [ecx]
shl edi, 8
add edi, eax
cmp dword [esi + 0x10], 2
jbe 0x424768
push 0x4992b4
call fcn.004026a2
pop ecx
push eax
push 0
push 0x4992b4
mov ecx, esi
call fcn.00403690
test eax, eax
jne 0x424768
cmp dword [esi + 0x14], 8
jb 0x424764
mov esi, dword [esi]
push 0x10
jmp 0x424772
cmp dword [esi + 0x14], 8
jb 0x424770
mov esi, dword [esi]
push 0xa
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.004621cb
mov ecx, eax
add esp, 0xc
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x424793
xor edx, edx
cmp dx, word [eax]
jne 0x424793
cmp edi, ecx
je 0x424795
xor bh, bh
mov edi, dword [ebp - 0x60]
push dword [ebp - 0x6c]
call fcn.00431522
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42480b
cmp dword [ebp - 0x70], 3
jne 0x424798
mov eax, dword [esi + 0x10]
shr eax, 1
cmp dword [ebp - 0x64], eax
jne 0x424798
xor edi, edi
mov bh, 1
cmp dword [ebp - 0x64], edi
jbe 0x424795
push 2
lea eax, [edi + edi]
mov ecx, esi
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004033f1
cmp dword [eax + 0x14], 8
jb 0x4247dc
mov eax, dword [eax]
push 0x10
lea ecx, [ebp - 0x68]
push ecx
push eax
call fcn.004621b3
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov bl, al
push 0
push 1
call fcn.0040224f
mov eax, dword [ebp - 0x6c]
cmp byte [edi + eax], bl
jne 0x424793
inc edi
cmp edi, dword [ebp - 0x64]
jb 0x4247c3
jmp 0x424795
mov bh, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040224f
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.0040224f
mov al, bh
call fcn.004649a2
ret