Function at 0x408300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4483b5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x45701c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x459818]
cmp eax, dword [ecx + 4]
jg 0x4085df
cmp dword [0x457980], 0
jne 0x408501
lea eax, [ebp + 8]
mov edx, str.SOFTWARE_
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040be10
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 2
xor eax, eax
mov dword [ebp - 0x2c], 0
push 0x452370
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.0040b020
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
push edx
cmovae eax, dword [ebp - 0x5c]
push 0
push 0
push 2
push ecx
push eax
push 0x80000002
mov dword [ebp - 0x14], 0
call edi
test eax, eax
jne 0x408472
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
shr eax, 1
add eax, 0xfffffffe
jne 0x40840a
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov word [ebp + eax*2 - 0x44], cx
jmp 0x408414
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b170
cmp dword [ebp - 0x30], 8
lea edi, [ebp - 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea edx, [ebp - 0x44]
cmovae edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x5c]
push edx
cmovae ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x48], 8
push 0
cmovae eax, dword [ebp - 0x5c]
push 2
push ecx
push eax
push 0x80000002
call edi
test eax, eax
jne 0x40846a
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
mov ecx, 0x457970
push eax
call fcn.0040b020
lea ecx, [ebp - 0x44]
call fcn.004044d0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4084b0
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4084a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408615
push edx
push ecx
call fcn.0041382e
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x408501
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4084f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408615
push edx
push ecx
call fcn.0041382e
add esp, 8
mov ecx, 0x457970
call fcn.00408100
mov dword [esi], 0
mov eax, 0x457970
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [0x457984], 8
mov ecx, dword [0x457980]
cmovae eax, dword [0x457970]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x60], eax
cmp ecx, 8
jae 0x408550
movups xmm0, xmmword [eax]
mov edi, 7
movups xmmword [esi], xmm0
jmp 0x408586
mov edi, ecx
mov eax, 0x7ffffffe
or edi, 7
cmp edi, eax
cmova edi, eax
lea eax, [edi + 1]
push eax
call fcn.00404cc0
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [esi], ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x60]
push ecx
call fcn.00414ed0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edi
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4085c2
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4085b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40861a
push edx
push ecx
call fcn.0041382e
add esp, 8
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.00413245
mov esp, ebp
pop ebp
ret
push 0x459818
call fcn.00413386
add esp, 4
cmp dword [0x459818], 0xffffffff
jne 0x408352
push 0x448c20
call fcn.00413819
push 0x459818
call fcn.0041333c
add esp, 8
jmp 0x408352
call fcn.0041df19
call fcn.0041df19
int3