Function at 0x42bced
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x84
mov eax, 0x48967a
call fcn.0046af73
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.00413b07
lea ecx, [ebp - 0x90]
call fcn.0042ccb4
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x44]
mov ecx, esi
call fcn.0042c9cb
add esp, 0x1c
test al, al
je 0x42bf56
mov edx, 0x20119
lea ecx, [ebp - 0x44]
call fcn.0042c8b6
mov esi, eax
mov dword [ebp - 0x6c], esi
test esi, esi
je 0x42bf56
xor edx, edx
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
push eax
cmovae ecx, dword [ebp - 0x2c]
push edx
push edx
push edx
push ecx
push esi
mov dword [ebp - 0x64], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42bf4f
cmp dword [ebp - 0x64], eax
je 0x42bf4f
push dword [ebp - 0x64]
and dword [ebp - 0x70], eax
and dword [ebp - 0x68], eax
call fcn.00437b80
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 - 0x68]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42bf45
cmp dword [ebp - 0x68], 1
jne 0x42beae
push 0x4a1a28
lea ecx, [ebp - 0x5c]
mov bl, 1
call fcn.0040d781
mov edi, dword [ebp - 0x60]
xor esi, esi
mov byte [ebp - 4], 3
cmp dword [ebp - 0x64], esi
jbe 0x42be23
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.00428304
add esi, 2
cmp esi, dword [ebp - 0x64]
jb 0x42bdfd
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.00413b07
lea ecx, [ebp - 0x84]
call fcn.0042ccb4
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 0x42be8f
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 0x42be83
mov edi, dword [ebp - 0x78]
mov eax, dword [ecx]
cmp eax, dword [edi + ecx]
mov edi, dword [ebp - 0x60]
jae 0x42be8d
mov eax, dword [ebp - 0x74]
inc esi
add ecx, 4
cmp esi, edx
jb 0x42be6f
jmp 0x42be8f
xor bl, bl
lea ecx, [ebp - 0x84]
call fcn.0042cdd7
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.0040d9e7
mov esi, dword [ebp - 0x6c]
jmp 0x42bf48
cmp dword [ebp - 0x68], 4
jne 0x42bf81
cmp dword [ebp - 0x64], 4
jne 0x42bf45
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 0x42bf15
push 0x4a53c4
call fcn.0040ca1c
pop ecx
push eax
push 0
push 0x4a53c4
mov ecx, edi
call fcn.0041462f
test eax, eax
jne 0x42bf15
cmp dword [edi + 0x14], 8
jb 0x42bf11
mov edi, dword [edi]
push 0x10
jmp 0x42bf1f
cmp dword [edi + 0x14], 8
jb 0x42bf1d
mov edi, dword [edi]
push 0xa
lea eax, [ebp - 0x70]
push eax
push edi
call fcn.0046874b
mov ecx, eax
add esp, 0xc
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x42bf40
xor edx, edx
cmp dx, word [eax]
jne 0x42bf40
cmp esi, ecx
jb 0x42bf42
xor bl, bl
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x60]
push edi
call fcn.00437b89
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x90]
call fcn.0042cdd7
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040d9e7
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.0040d9e7
mov al, bl
call fcn.0046af22
ret
xor eax, eax
movzx ebx, bl
cmp dword [ebp - 0x68], 3
cmove ebx, eax
jmp 0x42bf45