Function at 0x425768
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42d0b4]
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 0x425918
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 0x425907
push 0x2e
pop eax
cmp word [ebp - 0x20c], ax
je 0x4258d4
lea edi, [ebp - 0x20c]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, bx
jne 0x4257de
sub edi, ecx
sar edi, 1
lea eax, [edi + 0x14]
cmp eax, esi
ja 0x4258ce
mov edx, esi
lea eax, [ebp - 0x20c]
cmp word [eax], bx
je 0x42580d
add eax, 2
sub edx, 1
jne 0x425800
mov eax, esi
mov ecx, edx
sub eax, edx
neg ecx
sbb ecx, ecx
and ecx, eax
test edx, edx
je 0x425865
mov edx, esi
lea eax, [ebp - 0x20c]
lea eax, [eax + ecx*2]
sub edx, ecx
je 0x42585d
mov ebx, 0x403b9c
mov ecx, 0x7ffffffe
sub ebx, eax
test ecx, ecx
je 0x425851
movzx esi, word [ebx + eax]
test si, si
je 0x425851
mov word [eax], si
add eax, 2
dec ecx
sub edx, 1
jne 0x425838
mov esi, 0x104
push 0
pop ebx
test edx, edx
jne 0x425860
sub eax, 2
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.004260d3
add edi, edi
mov edx, eax
mov dword [ebp - 0x21c], edx
cmp edi, 0x208
jae 0x425902
xor eax, eax
mov word [ebp + edi - 0x20c], ax
test edx, edx
je 0x4258c7
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x42589b
sub ecx, edi
sar ecx, 1
je 0x4258c7
push edx
lea eax, [ebp - 0x20c]
push eax
push 0x403aac
call fcn.00409890
mov edx, dword [ebp - 0x21c]
add esp, 0xc
mov ecx, edx
call fcn.0040dba0
mov edi, dword [ebp - 0x210]
cmp dword [0x43158c], 0
jne 0x42594a
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 0x4257b0
call fcn.00416c18
lea esi, [eax - 0x103]
neg esi
sbb esi, esi
and esi, eax
jmp 0x425a63
cmp word [edx], 0x2e
jne 0x425936
push edx
push 1
push 0x400023a5
call fcn.00407834
add esp, 0xc
push 0x7b
pop eax
jmp 0x425a65
mov ecx, edx
call fcn.0040aa9f
mov ecx, eax
call fcn.0040abd0
mov edi, eax
test edi, edi
jne 0x425952
xor eax, eax
inc eax
jmp 0x425a65
push 0x20
pop edx
mov ecx, edi
call fcn.00410145
test eax, eax
je 0x425965
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 0x42596c
sub ecx, edx
mov esi, 0x104
sar ecx, 1
push edi
lea eax, [ecx + 0x14]
cmp eax, esi
jbe 0x42599f
push 1
push 0x400023db
call fcn.00407834
add esp, 0xc
push 0x7b
pop esi
jmp 0x425a5c
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.0040f2e0
push 0x403b9c
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.0040fb80
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 0x4259f6
push edi
push 1
push 0x400023a5
call fcn.00407834
add esp, 0xc
jmp 0x425a5c
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.004260d3
mov edx, eax
mov dword [ebp - 0x214], edx
test edx, edx
je 0x425a41
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x21c], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x425a1e
sub ecx, dword [ebp - 0x21c]
sar ecx, 1
je 0x425a41
push edx
push edi
push 0x403aac
call fcn.00409890
jmp 0x425a4e
push edi
push 1
push 0x400023a5
call fcn.00407834
mov ecx, dword [ebp - 0x214]
add esp, 0xc
call fcn.0040dba0
mov ecx, edi
call fcn.0040dba0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ad0
leave
ret