Function at 0x40e680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cefed
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x38
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], edx
mov esi, ecx
mov dword [ebp - 0x20], esi
mov edx, dword [ebx + 0xc]
lea eax, [ebp - 0x20]
mov ecx, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push 0
push 0
push 2
push edx
push ecx
push dword [eax]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x4c], edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40e70a
mov dword [edi], eax
xor ecx, ecx
mov dword [edi + 4], 0x507d40
mov eax, dword [edi + 4]
jmp 0x40e71f
mov ecx, dword [ebp - 0x20]
mov eax, 0x507cf0
mov dword [edi], 0
mov dword [edi + 4], 0x507cf0
mov eax, dword [eax + 4]
cmp eax, dword [0x507cf4]
jne 0x40e8d5
cmp dword [edi], 0
jne 0x40e8d5
xor eax, eax
test ecx, ecx
je 0x40e8d7
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
shr ecx, 1
mov dword [ebp - 4], eax
mov byte [ebp - 4], 1
jne 0x40e767
mov dword [ebp - 0x28], ecx
mov word [ebp + ecx*2 - 0x38], ax
jmp 0x40e772
push 0
push ecx
lea ecx, [ebp - 0x38]
call fcn.004032d0
cmp dword [ebp - 0x24], 8
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 0x28]
cmovae ecx, dword [ebp - 0x38]
add eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x3c]
push ecx
push 0
push 2
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40e7b3
mov dword [edi], eax
xor ecx, ecx
mov dword [edi + 4], 0x507d40
mov eax, dword [edi + 4]
jmp 0x40e7c8
mov ecx, dword [ebp - 0x20]
mov eax, 0x507cf0
mov dword [edi], 0
mov dword [edi + 4], 0x507cf0
mov eax, dword [eax + 4]
cmp eax, dword [0x507cf4]
jne 0x40e837
cmp dword [edi], 0
jne 0x40e837
mov eax, dword [ebp - 0x28]
shr ecx, 1
dec ecx
cmp ecx, eax
ja 0x40e7f8
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], ecx
cmovae eax, dword [ebp - 0x38]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x40e805
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x38]
call fcn.004032d0
lea ecx, [ebp - 0x38]
call fcn.0040a470
movups xmm0, xmmword [ebp - 0x38]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [esi + 0x10], xmm0
jmp 0x40e8ee
mov edx, dword [ebp - 0x24]
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp edx, 8
jb 0x40e8ee
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e884
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e90e
push edx
push ecx
call fcn.004a6287
add esp, 8
jmp 0x40e8ee
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004ab23f
int3