Function at 0x409c60
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 0x4a849d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x38
mov eax, dword [0x4d9164]
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 eax, edx
mov dword [ebp - 0x44], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x20]
mov edi, dword [ebx + 0x10]
push edx
push 0
push 0
push 2
push str.settings
push ecx
push dword [eax]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x48], edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x409ce7
mov dword [edi], eax
xor ecx, ecx
mov dword [edi + 4], 0x4d9c28
mov eax, dword [edi + 4]
jmp 0x409cfc
mov ecx, dword [ebp - 0x20]
mov eax, 0x4d9bd0
mov dword [edi], 0
mov dword [edi + 4], 0x4d9bd0
mov eax, dword [eax + 4]
cmp eax, dword [0x4d9bd4]
jne 0x409eb4
cmp dword [edi], 0
jne 0x409eb4
xor eax, eax
test ecx, ecx
je 0x409eb6
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 0x409d44
mov dword [ebp - 0x28], ecx
mov word [ebp + ecx*2 - 0x38], ax
jmp 0x409d4f
push 0
push ecx
lea ecx, [ebp - 0x38]
call fcn.00421ef0
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 - 0x44]
push ecx
push 0
push 2
push str.settings
push dword [ebp - 0x40]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x409d92
mov dword [edi], eax
xor ecx, ecx
mov dword [edi + 4], 0x4d9c28
mov eax, dword [edi + 4]
jmp 0x409da7
mov ecx, dword [ebp - 0x20]
mov eax, 0x4d9bd0
mov dword [edi], 0
mov dword [edi + 4], 0x4d9bd0
mov eax, dword [eax + 4]
cmp eax, dword [0x4d9bd4]
jne 0x409e16
cmp dword [edi], 0
jne 0x409e16
mov eax, dword [ebp - 0x28]
shr ecx, 1
dec ecx
cmp ecx, eax
ja 0x409dd7
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 0x409de4
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x38]
call fcn.00421ef0
lea ecx, [ebp - 0x38]
call fcn.0041e540
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 0x409ecd
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 0x409ecd
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409e63
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409eed
push edx
push ecx
call fcn.00481131
add esp, 8
jmp 0x409ecd
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.004810ea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004861f9
int3