Function at 0x4250e0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x210], ebx
push esi
push edi
test edx, edx
jne 0x4252ca
xor esi, esi
mov dword [ebp - 0x218], 0x104
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x214], esi
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x4252aa
lea esp, [esp]
cmp word [ebp - 0x20c], 0x2e
je 0x42526a
lea esi, [ebp - 0x20c]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x425157
sub esi, ecx
sar esi, 1
lea eax, [esi + 0x14]
cmp eax, 0x104
ja 0x425264
mov ecx, 0x104
lea eax, [ebp - 0x20c]
nop
cmp word [eax], 0
je 0x42518e
add eax, 2
sub ecx, 1
jne 0x425180
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x7ff8ffa9
add eax, 0x80070057
test ecx, ecx
je 0x4251ab
mov edx, 0x104
sub edx, ecx
jmp 0x4251ad
xor edx, edx
test eax, eax
js 0x425207
mov ecx, 0x104
lea eax, [ebp - 0x20c]
lea eax, [eax + edx*2]
sub ecx, edx
je 0x4251f7
add edx, 0x7ffffefa
mov ebx, 0x4038b4
add edx, ecx
sub ebx, eax
test edx, edx
je 0x4251ed
movzx edi, word [ebx + eax]
test di, di
je 0x4251ed
mov word [eax], di
dec edx
add eax, 2
sub ecx, 1
jne 0x4251d2
jmp 0x4251f1
test ecx, ecx
jne 0x4251fc
mov ebx, dword [ebp - 0x210]
sub eax, 2
jmp 0x425202
mov ebx, dword [ebp - 0x210]
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x20c]
mov ecx, ebx
call fcn.00425a7a
add esi, esi
mov edi, eax
cmp esi, 0x208
jae 0x4252bb
xor eax, eax
mov word [ebp + esi - 0x20c], ax
test edi, edi
je 0x42525d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425237
sub ecx, edx
sar ecx, 1
je 0x42525d
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x4037dc
call fcn.0040c37c
add esp, 0xc
mov ecx, edi
call fcn.0040f480
mov esi, dword [ebp - 0x214]
cmp dword [0x42d54c], 0
jne 0x4252c0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x104
push eax
lea eax, [ebp - 0x20c]
inc esi
push eax
push esi
push ebx
mov dword [ebp - 0x214], esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x425140
lea esi, [eax - 0x103]
neg esi
sbb esi, esi
and esi, eax
jmp 0x42540d
call fcn.00416e2a
mov eax, 1
jmp 0x42540f
cmp word [edx], 0x2e
jne 0x4252ea
push edx
push 1
push 0x400023a5
call fcn.00414802
add esp, 0xc
mov eax, 0x7b
jmp 0x42540f
mov ecx, edx
call fcn.0040ce09
mov ecx, eax
call fcn.0040ce50
mov edi, eax
test edi, edi
je 0x4252c0
mov edx, 0x20
mov ecx, edi
call fcn.004111d9
test eax, eax
je 0x425313
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x425320
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425320
sub ecx, edx
sar ecx, 1
push edi
lea eax, [ecx + 0x14]
cmp eax, 0x104
jbe 0x42535a
push 1
push 0x400023db
call fcn.00414802
add esp, 0xc
mov ecx, edi
call fcn.0040f480
mov eax, 0x7b
jmp 0x42540f
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.00410820
push 0x4038b4
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.00410770
lea eax, [ebp - 0x220]
push eax
push 0x2000000
push 0
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x4253b3
push edi
push 1
push 0x400023a5
call fcn.00414802
add esp, 0xc
jmp 0x425406
lea edx, [ebp - 0x20c]
mov ecx, ebx
call fcn.00425a7a
mov ebx, eax
test ebx, ebx
je 0x4253ef
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x4253d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4253d0
sub ecx, edx
sar ecx, 1
je 0x4253ef
push ebx
push edi
push 0x4037dc
call fcn.0040c37c
jmp 0x4253fc
push edi
push 1
push 0x400023a5
call fcn.00414802
add esp, 0xc
mov ecx, ebx
call fcn.0040f480
mov ecx, edi
call fcn.0040f480
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ce0
mov esp, ebp
pop ebp
ret