Function at 0x40c5e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x54735c]
xor eax, ebp
mov dword [ebp - 4], 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 - 0x30], edi
mov dword [ebp - 0x34], ebx
jb 0x40c60d
mov edx, dword [edx]
lea eax, [ebp - 0x2c]
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 0x40c63e
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret 0x14
mov dword [ebx], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
jb 0x40c660
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push 0
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x40c685
test eax, eax
jne 0x40c7e4
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f3397
mov ecx, dword [ebp - 0x24]
add esp, 4
mov ebx, eax
test ecx, ecx
je 0x40c6ba
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 - 0x30]
cmp dword [esi + 0x14], 8
jb 0x40c6c2
mov esi, dword [esi]
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
push 0
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c7d7
cmp dword [ebp - 0x28], 1
jne 0x40c70d
mov edx, ebx
lea ecx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40c6f0
sub edx, ecx
mov ecx, edi
sar edx, 1
push edx
push ebx
call fcn.00403ab0
jmp 0x40c7cb
mov eax, dword [ebp - 0x28]
cmp eax, 7
je 0x40c71e
cmp eax, 2
jne 0x40c7cb
xor eax, eax
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], 7
shr eax, 1
push eax
push ebx
call fcn.00403ab0
lea eax, [ebp - 0x1c]
cmp edi, eax
je 0x40c795
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x40c782
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40c778
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c803
mov eax, edx
push ecx
push eax
call fcn.004f2ead
add esp, 8
movups xmm0, xmmword [ebp - 0x1c]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [edi + 0x10], xmm0
jmp 0x40c7cb
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x40c7cb
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c7c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c803
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0x1d], 1
mov dword [ecx], eax
test ebx, ebx
je 0x40c7e4
push ebx
call fcn.004f33a0
add esp, 4
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004f313b
mov esp, ebp
pop ebp
ret 0x14
call fcn.004f855c
int3