Function at 0x412ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588118
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x5f50fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x198]
mov edi, dword [ebp + 0xc]
xor esi, esi
push eax
push 1
push esi
lea eax, [ecx + 0x18]
mov dword [ebp - 0x194], edi
push eax
push dword [ecx]
mov dword [ebp - 0x198], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412e46
push 0x40
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x1a4], 1
push eax
mov dword [ebp - 0x1a0], 0x20
call fcn.00568420
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x1a4]
push eax
push esi
push str.Version
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412e48
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x80], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412b96
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x80]
call fcn.00405e10
xor eax, eax
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x184], eax
xor ecx, ecx
mov dword [ebp - 0x188], esi
xorps xmm0, xmm0
mov dword [ebp - 0x190], ecx
lea ecx, [edi + 4]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [ebp - 0x18c], ecx
cmp dword [ebp - 0x6c], 8
lea esi, [ebp - 0x80]
mov edi, dword [ebp - 0x70]
cmovae esi, dword [ebp - 0x80]
mov dword [ebp - 0x19c], esi
mov dword [ebp - 0x1a8], edi
cmp eax, edi
jae 0x412c70
push 0x100
lea eax, [ebp - 0x180]
push 0
push eax
call fcn.00568420
add esp, 0xc
mov ecx, 0x599008
mov edx, 0x100
movzx eax, word [ecx]
cmp ax, dx
jae 0x412d3b
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x180], 1
cmp ecx, 0x59900e
jne 0x412c21
mov eax, dword [ebp - 0x184]
lea ecx, [esi + edi*2]
lea esi, [esi + eax*2]
cmp esi, ecx
jae 0x412c70
movzx eax, word [esi]
cmp ax, dx
jae 0x412c69
cmp byte [ebp + eax - 0x180], 0
jne 0x412d2e
add esi, 2
cmp esi, ecx
jb 0x412c53
or esi, 0xffffffff
mov edx, dword [ebp - 0x184]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp esi, 0xffffffff
je 0x412d95
cmp edi, edx
jb 0x412e78
sub edi, edx
lea eax, [ebp - 0x80]
mov ecx, esi
sub ecx, edx
cmp edi, ecx
cmovb ecx, edi
cmp dword [ebp - 0x6c], 8
push ecx
cmovae eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x68]
lea eax, [eax + edx*2]
push eax
call fcn.00405e10
cmp dword [ebp - 0x58], 0
je 0x412ce9
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push eax
call fcn.0056e337
mov ecx, dword [ebp - 0x18c]
add esp, 4
inc dword [ebp - 0x188]
mov dword [ecx], eax
lea eax, [esi + 1]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x184], eax
call fcn.00405d60
mov ecx, dword [ebp - 0x190]
add dword [ebp - 0x18c], 4
inc ecx
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x190], ecx
cmp ecx, 4
jl 0x412be3
mov esi, dword [ebp - 0x188]
mov edi, dword [ebp - 0x194]
jmp 0x412e07
sub esi, dword [ebp - 0x19c]
sar esi, 1
jmp 0x412c73
mov eax, dword [ebp - 0x184]
lea edi, [esi + edi*2]
lea esi, [esi + eax*2]
cmp esi, edi
jae 0x412d74
nop dword [eax + eax]
movzx edx, word [esi]
mov ecx, 3
mov eax, 0x599008
nop dword [eax]
cmp word [eax], dx
je 0x412d82
add eax, 2
sub ecx, 1
jne 0x412d60
add esi, 2
cmp esi, edi
jb 0x412d50
mov edi, dword [ebp - 0x1a8]
or esi, 0xffffffff
jmp 0x412c73
sub esi, dword [ebp - 0x19c]
mov edi, dword [ebp - 0x1a8]
sar esi, 1
jmp 0x412c73
cmp edi, edx
jb 0x412e78
sub edi, edx
lea eax, [ebp - 0x80]
or ecx, 0xffffffff
cmp edi, 0xffffffff
cmovb ecx, edi
cmp dword [ebp - 0x6c], 8
push ecx
cmovae eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x68]
lea eax, [eax + edx*2]
push eax
call fcn.00405e10
cmp dword [ebp - 0x58], 0
je 0x412df3
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push eax
call fcn.0056e337
mov ecx, dword [ebp - 0x190]
add esp, 4
mov edi, dword [ebp - 0x194]
mov esi, dword [ebp - 0x188]
inc esi
mov dword [edi + ecx*4 + 4], eax
jmp 0x412dff
mov esi, dword [ebp - 0x188]
mov edi, dword [ebp - 0x194]
lea ecx, [ebp - 0x68]
call fcn.00405d60
mov edx, dword [ebp - 0x6c]
mov dword [edi], esi
mov esi, 1
cmp edx, 8
jb 0x412e48
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412e3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412e7d
push edx
push ecx
call fcn.0056611c
add esp, 8
jmp 0x412e48
xor esi, esi
mov eax, dword [ebp - 0x198]
test eax, eax
je 0x412e59
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005663a7
mov esp, ebp
pop ebp
ret 8
call fcn.0040e4c0
call fcn.0056b2dc
int3