Function at 0x425948
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42e0b4]
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 0x425af8
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], ebx
push eax
mov esi, 0x104
push ebx
push edi
mov dword [ebp - 0x218], esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x425ae7
push 0x2e
pop eax
cmp word [ebp - 0x20c], ax
je 0x425ab4
lea edi, [ebp - 0x20c]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, bx
jne 0x4259be
sub edi, ecx
sar edi, 1
lea eax, [edi + 0x14]
cmp eax, esi
ja 0x425aae
mov edx, esi
lea eax, [ebp - 0x20c]
cmp word [eax], bx
je 0x4259ed
add eax, 2
sub edx, 1
jne 0x4259e0
mov eax, esi
mov ecx, edx
sub eax, edx
neg ecx
sbb ecx, ecx
and ecx, eax
test edx, edx
je 0x425a45
mov edx, esi
lea eax, [ebp - 0x20c]
lea eax, [eax + ecx*2]
sub edx, ecx
je 0x425a3d
mov ebx, 0x403c5c
mov ecx, 0x7ffffffe
sub ebx, eax
test ecx, ecx
je 0x425a31
movzx esi, word [ebx + eax]
test si, si
je 0x425a31
mov word [eax], si
add eax, 2
dec ecx
sub edx, 1
jne 0x425a18
mov esi, 0x104
push 0
pop ebx
test edx, edx
jne 0x425a40
sub eax, 2
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.004262b3
add edi, edi
mov edx, eax
mov dword [ebp - 0x21c], edx
cmp edi, 0x208
jae 0x425ae2
xor eax, eax
mov word [ebp + edi - 0x20c], ax
test edx, edx
je 0x425aa7
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x425a7b
sub ecx, edi
sar ecx, 1
je 0x425aa7
push edx
lea eax, [ebp - 0x20c]
push eax
push 0x403b6c
call fcn.00409950
mov edx, dword [ebp - 0x21c]
add esp, 0xc
mov ecx, edx
call fcn.0040dc60
mov edi, dword [ebp - 0x210]
cmp dword [0x43259c], 0
jne 0x425b2a
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x218]
push ebx
push ebx
push ebx
push ebx
push ecx
lea ecx, [ebp - 0x20c]
inc eax
push ecx
mov dword [ebp - 0x214], eax
push eax
jmp 0x425990
call fcn.00416c78
lea esi, [eax - 0x103]
neg esi
sbb esi, esi
and esi, eax
jmp 0x425c43
cmp word [edx], 0x2e
jne 0x425b16
push edx
push 1
push 0x400023a5
call fcn.004078e4
add esp, 0xc
push 0x7b
pop eax
jmp 0x425c45
mov ecx, edx
call fcn.0040ab7f
mov ecx, eax
call fcn.0040acb0
mov edi, eax
test edi, edi
jne 0x425b32
xor eax, eax
inc eax
jmp 0x425c45
push 0x20
pop edx
mov ecx, edi
call fcn.004101f5
test eax, eax
je 0x425b45
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x425b4c
sub ecx, edx
mov esi, 0x104
sar ecx, 1
push edi
lea eax, [ecx + 0x14]
cmp eax, esi
jbe 0x425b7f
push 1
push 0x400023db
call fcn.004078e4
add esp, 0xc
push 0x7b
pop esi
jmp 0x425c3c
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.0040f3a0
push 0x403c5c
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.0040fc40
lea eax, [ebp - 0x224]
push eax
push 0x2000000
push ebx
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 esi, eax
test esi, esi
je 0x425bd6
push edi
push 1
push 0x400023a5
call fcn.004078e4
add esp, 0xc
jmp 0x425c3c
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.004262b3
mov edx, eax
mov dword [ebp - 0x214], edx
test edx, edx
je 0x425c21
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x21c], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x425bfe
sub ecx, dword [ebp - 0x21c]
sar ecx, 1
je 0x425c21
push edx
push edi
push 0x403b6c
call fcn.00409950
jmp 0x425c2e
push edi
push 1
push 0x400023a5
call fcn.004078e4
mov ecx, dword [ebp - 0x214]
add esp, 0xc
call fcn.0040dc60
mov ecx, edi
call fcn.0040dc60
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b30
leave
ret