Function at 0x415270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d770
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x495574]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 9
push 0
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4152e7
push eax
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4152fb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x80]
call fcn.0043bb76
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
lea eax, [eax*2 + 2]
push eax
call fcn.0043bcf7
lea ecx, [ebp - 0x6c]
call fcn.0043bb76
push 0xffffffffffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x14]
call fcn.0043bcf7
mov edi, dword [ebp - 0x7c]
lea ecx, [ebp - 0x58]
mov esi, dword [ebp - 0x68]
call fcn.00438075
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00438075
push 0xffffffffffffffff
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
push dword [ebp - 0x2c]
call fcn.004383c7
push 0xffffffffffffffff
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.004383c7
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov dword [ebp - 0x18], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ecx*2 + 2]
push eax
push ebx
push edi
call fcn.0044e9c0
push dword [ebp - 0x14]
push ebx
push esi
call fcn.0044e9c0
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4154a6
cmp dword [ebp - 0x18], 1
jne 0x41544a
test ebx, ebx
js 0x41561f
cmp ebx, dword [ebp - 0x50]
jge 0x41561f
mov eax, dword [ebp - 0x54]
lea eax, [eax + ebx*4]
mov dword [ebp - 0x30], eax
test edi, edi
jne 0x4153ee
xor ecx, ecx
jmp 0x415405
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4153f3
mov eax, dword [ebp - 0x30]
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, eax
call fcn.004041d0
cmp ebx, dword [ebp - 0x3c]
jge 0x41561f
mov eax, dword [ebp - 0x40]
lea eax, [eax + ebx*4]
mov dword [ebp - 0x30], eax
test esi, esi
jne 0x415428
xor eax, eax
jmp 0x41543f
mov eax, esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415430
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x30]
push eax
push esi
call fcn.004041d0
inc ebx
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x28]
mov dword [ebp - 0x18], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ecx*2 + 2]
push eax
push 0
push edi
call fcn.0044e9c0
push dword [ebp - 0x14]
push 0
push esi
call fcn.0044e9c0
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4153c6
push dword [ebp - 0x10]
cmp eax, 0x103
jne 0x4155e3
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
call fcn.004383c7
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
call fcn.004383c7
xor edi, edi
test ebx, ebx
jle 0x4155df
nop word [eax + eax]
test edi, edi
js 0x41561f
cmp edi, dword [ebp - 0x50]
jge 0x41561f
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 8]
jge 0x41561f
mov edx, dword [eax + 4]
lea esi, [edi*4]
mov eax, dword [ebp - 0x54]
add edx, esi
mov dword [ebp - 0x24], edx
mov eax, dword [esi + eax]
mov dword [ebp - 0x20], eax
lea ecx, [eax - 0x10]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx]
sub ecx, 0x10
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x28], ecx
je 0x41556b
cmp dword [ecx + 0xc], 0
jl 0x415560
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x41555d
push dword [ebp - 0x28]
call fcn.00403cc0
mov ecx, dword [ebp - 0x30]
add esp, 4
mov esi, eax
call fcn.00404850
mov ecx, dword [ebp - 0x24]
lea eax, [esi + 0x10]
lea esi, [edi*4]
mov dword [ecx], eax
jmp 0x41556b
mov eax, dword [ebp - 0x20]
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.004041d0
cmp edi, dword [ebp - 0x3c]
jge 0x41561f
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax + 8]
jge 0x41561f
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x40]
add edx, esi
mov dword [ebp - 0x24], edx
mov esi, dword [esi + eax]
mov ecx, dword [edx]
sub ecx, 0x10
mov dword [ebp - 0x28], ecx
lea eax, [esi - 0x10]
mov dword [ebp - 0x30], eax
cmp eax, ecx
je 0x4155d6
cmp dword [ecx + 0xc], 0
jl 0x4155cb
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4155cb
push dword [ebp - 0x30]
call fcn.00403cc0
mov ecx, dword [ebp - 0x28]
add esp, 4
mov esi, eax
call fcn.00404850
mov ecx, dword [ebp - 0x24]
lea eax, [esi + 0x10]
mov dword [ecx], eax
jmp 0x4155d6
push dword [esi - 0xc]
mov ecx, edx
push esi
call fcn.004041d0
inc edi
cmp edi, ebx
jl 0x4154e0
mov bl, 1
jmp 0x4155eb
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
lea ecx, [ebp - 0x44]
call fcn.0043808c
lea ecx, [ebp - 0x58]
call fcn.0043808c
lea ecx, [ebp - 0x6c]
call fcn.0043bb8d
lea ecx, [ebp - 0x80]
call fcn.0043bb8d
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00437e01
int3