Function at 0x408560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46645c
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x483004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x288], ecx
mov edx, 1
mov ecx, edi
call fcn.0040ff70
cmp dword [eax + 8], 4
je 0x4085d7
mov edx, eax
mov ecx, edi
call fcn.00412a40
test eax, eax
jne 0x4085b9
xor esi, esi
jmp 0x4085de
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x44]
cmp eax, dword [ecx + 0x40]
jb 0x4085cb
mov ecx, edi
call fcn.00415dd0
mov edx, 1
mov ecx, edi
call fcn.0040ff70
mov esi, dword [eax]
add esi, 0x10
jne 0x408629
mov edx, 1
mov ecx, edi
call fcn.0040ff70
cmp eax, 0x471248
je 0x408602
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x408602
mov eax, dword [eax*4 + 0x471358]
jmp 0x408607
mov eax, str.no_value
push eax
push dword [0x471368]
push str._s_expected__got__s
push edi
call fcn.004103d0
push eax
mov edx, 1
mov ecx, edi
call fcn.00410da0
add esp, 0x14
mov edx, 2
mov ecx, edi
call fcn.0040ff70
cmp dword [eax + 8], 4
je 0x40866e
mov edx, eax
mov ecx, edi
call fcn.00412a40
test eax, eax
jne 0x408650
mov dword [ebp - 0x27c], eax
jmp 0x40867b
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x44]
cmp eax, dword [ecx + 0x40]
jb 0x408662
mov ecx, edi
call fcn.00415dd0
mov edx, 2
mov ecx, edi
call fcn.0040ff70
mov ebx, dword [eax]
add ebx, 0x10
mov dword [ebp - 0x27c], ebx
jne 0x4086c6
mov edx, 2
mov ecx, edi
call fcn.0040ff70
cmp eax, 0x471248
je 0x40869f
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x40869f
mov eax, dword [eax*4 + 0x471358]
jmp 0x4086a4
mov eax, str.no_value
push eax
push dword [0x471368]
push str._s_expected__got__s
push edi
call fcn.004103d0
push eax
mov edx, 2
mov ecx, edi
call fcn.00410da0
add esp, 0x14
mov edx, 3
mov ecx, edi
call fcn.0040ff70
cmp dword [eax + 8], 4
je 0x408707
mov edx, eax
mov ecx, edi
call fcn.00412a40
test eax, eax
jne 0x4086e9
xor ebx, ebx
jmp 0x40870e
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x44]
cmp eax, dword [ecx + 0x40]
jb 0x4086fb
mov ecx, edi
call fcn.00415dd0
mov edx, 3
mov ecx, edi
call fcn.0040ff70
mov ebx, dword [eax]
add ebx, 0x10
jne 0x408759
mov edx, 3
mov ecx, edi
call fcn.0040ff70
cmp eax, 0x471248
je 0x408732
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x408732
mov eax, dword [eax*4 + 0x471358]
jmp 0x408737
mov eax, str.no_value
push eax
push dword [0x471368]
push str._s_expected__got__s
push edi
call fcn.004103d0
push eax
mov edx, 3
mov ecx, edi
call fcn.00410da0
add esp, 0x14
mov ecx, esi
call fcn.00405840
push dword [ebp - 0x27c]
mov esi, eax
lea eax, [ebp - 0x278]
push eax
call fcn.00434e50
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push ebx
push eax
call fcn.00434e50
add esp, 0x10
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x4719ec
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00403220
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x284]
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
push ecx
cmovae eax, dword [ebp - 0x278]
xor ebx, ebx
push 0x20219
push ebx
push eax
push esi
mov dword [ebp - 0x27c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4088ad
push 0x208
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x280], 0x208
push eax
call fcn.004398f0
add esp, 0xc
lea ecx, [ebp - 0x280]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4088a1
mov eax, dword [ebp - 0x288]
test eax, eax
jne 0x40888c
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00402e10
push eax
lea ecx, [ebp - 0x230]
call fcn.00402d90
lea ecx, [ebp - 0x260]
call fcn.00402d50
mov ebx, 1
jmp 0x4088a1
mov ebx, 1
cmp eax, ebx
jne 0x4088a1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x27c], eax
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x288]
test eax, eax
jne 0x408a0e
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00435810
add esp, 8
mov byte [ebp - 4], 3
lea ebx, [ebp - 0x260]
mov ecx, dword [edi + 0x10]
cmp dword [ebp - 0x24c], 0x10
mov eax, dword [ebp - 0x250]
cmovae ebx, dword [ebp - 0x260]
mov dword [ebp - 0x280], eax
mov eax, dword [ecx + 0x44]
cmp eax, dword [ecx + 0x40]
jb 0x408915
mov ecx, edi
call fcn.00415dd0
mov eax, dword [ebp - 0x280]
mov edx, ebx
mov esi, dword [edi + 8]
dec eax
push eax
mov ecx, edi
call fcn.00419ae0
mov dword [esi], eax
add esp, 4
mov dword [esi + 8], 4
add dword [edi + 8], 0x10
mov eax, dword [ebp - 0x24c]
cmp eax, 0x10
jb 0x408957
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.0040ed50
mov esi, 1
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40897a
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00403390
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x4089b5
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00403390
mov ecx, dword [ebp - 0x264]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp ecx, 8
jb 0x4089f0
inc ecx
push ecx
push dword [ebp - 0x278]
lea ecx, [ebp - 0x278]
call fcn.00403390
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004369c2
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x408957
mov eax, dword [edi + 8]
mov esi, 2
movd xmm0, dword [ebp - 0x27c]
cvtdq2pd xmm0, xmm0
mov dword [eax], ebx
mov dword [eax + 8], 1
add dword [edi + 8], 0x10
mov eax, dword [edi + 8]
movsd qword [eax], xmm0
mov dword [eax + 8], 3
add dword [edi + 8], 0x10
jmp 0x40895c