Function at 0x40ef00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x53307c]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
cmp dword [edx + 0x14], 8
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
jb 0x40ef2d
mov edx, dword [edx]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x18]
or eax, 0x20019
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ef5e
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049e964
mov esp, ebp
pop ebp
ret 0x14
mov dword [ebx], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jb 0x40ef80
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x40efa5
test eax, eax
jne 0x40f104
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049f224
mov ecx, dword [ebp - 0x28]
add esp, 4
mov ebx, eax
test ecx, ecx
je 0x40efda
xor eax, eax
mov edi, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x34]
cmp dword [esi + 0x14], 8
jb 0x40efe2
mov esi, dword [esi]
lea eax, [ebp - 0x28]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f0f7
cmp dword [ebp - 0x2c], 1
jne 0x40f02d
mov edx, ebx
lea ecx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40f010
sub edx, ecx
mov ecx, edi
sar edx, 1
push edx
push ebx
call fcn.00405140
jmp 0x40f0eb
mov eax, dword [ebp - 0x2c]
cmp eax, 7
je 0x40f03e
cmp eax, 2
jne 0x40f0eb
xor eax, eax
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0xc], 7
shr eax, 1
push eax
push ebx
call fcn.00405140
lea eax, [ebp - 0x20]
cmp edi, eax
je 0x40f0b5
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x40f0a2
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40f098
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f123
mov eax, edx
push ecx
push eax
call fcn.0049e956
add esp, 8
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x10]
movq qword [edi + 0x10], xmm0
jmp 0x40f0eb
mov edx, dword [ebp - 0xc]
cmp edx, 8
jb 0x40f0eb
mov ecx, dword [ebp - 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f0e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f123
push edx
push ecx
call fcn.0049e956
add esp, 8
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x21], 1
mov dword [ecx], eax
test ebx, ebx
je 0x40f104
push ebx
call fcn.0049f22d
add esp, 4
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x21]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0049e964
mov esp, ebp
pop ebp
ret 0x14
call fcn.004e9a8c
int3