Function at 0x420970
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4261d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x210], edi
test edx, edx
jne 0x420ac2
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], esi
push eax
push esi
push edi
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x420aaf
push 0x2e
pop eax
cmp word [ebp - 0x20c], ax
je 0x420a75
lea edi, [ebp - 0x20c]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x4209e7
sub edi, ecx
mov edx, 0x104
sar edi, 1
lea eax, [edi + 0x14]
cmp eax, edx
ja 0x420a6f
push 0x41c428
lea ecx, [ebp - 0x20c]
call fcn.00402c8a
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.0042125b
add edi, edi
mov ebx, eax
cmp edi, 0x208
jae 0x420aa2
xor eax, eax
mov word [ebp + edi - 0x20c], ax
test ebx, ebx
je 0x420a68
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x420a42
sub ecx, edx
sar ecx, 1
je 0x420a68
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x41c3dc
call fcn.00406992
add esp, 0xc
mov ecx, ebx
call fcn.0040128b
mov edi, dword [ebp - 0x210]
cmp dword [0x426124], esi
jne 0x420aa7
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x218]
push esi
push esi
push esi
push esi
push ecx
lea ecx, [ebp - 0x20c]
inc eax
push ecx
mov dword [ebp - 0x214], eax
push eax
jmp 0x4209b3
call fcn.0041c651
xor eax, eax
inc eax
jmp 0x420c07
cmp ebx, 0x103
jne 0x420c05
mov ebx, esi
jmp 0x420c05
cmp word [edx], 0x2e
jne 0x420ae0
push edx
push 1
push 0x400023a5
call fcn.0040bd02
add esp, 0xc
push 0x7b
pop eax
jmp 0x420c07
mov ecx, edx
call fcn.004024cb
mov ecx, eax
call fcn.00402508
mov edi, eax
test edi, edi
je 0x420aa7
push 0x20
pop edx
mov ecx, edi
call fcn.00402580
test eax, eax
je 0x420b07
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x420b0e
sub ecx, edx
mov ebx, 0x104
sar ecx, 1
push edi
lea eax, [ecx + 0x14]
cmp eax, ebx
jbe 0x420b41
push 1
push 0x400023db
call fcn.0040bd02
add esp, 0xc
push 0x7b
pop ebx
jmp 0x420bfe
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.00401da3
push 0x41c428
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.00402c8a
lea eax, [ebp - 0x220]
push eax
push 0x2000000
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
je 0x420b98
push edi
push 1
push 0x400023a5
call fcn.0040bd02
add esp, 0xc
jmp 0x420bfe
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.0042125b
mov edx, eax
mov dword [ebp - 0x210], edx
test edx, edx
je 0x420be3
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x214], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x420bc0
sub ecx, dword [ebp - 0x214]
sar ecx, 1
je 0x420be3
push edx
push edi
push 0x41c3dc
call fcn.00406992
jmp 0x420bf0
push edi
push 1
push 0x400023a5
call fcn.0040bd02
mov ecx, dword [ebp - 0x210]
add esp, 0xc
call fcn.0040128b
mov ecx, edi
call fcn.0040128b
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401200
mov esp, ebp
pop ebp
ret