Function at 0x407082
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41e946
call fcn.00414644
sub esp, 0x190
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
jge 0x40707e
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x15]
mov ebx, 0x41f5d4
mov esi, 0x41f5cc
push edi
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 1
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x50], esi
call fcn.0040aab9
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
call fcn.00406d4d
pop ecx
pop ecx
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, edi
mov dword [ebp + 0xc], 0x41f5dc
je 0x4070e8
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], edi
jne 0x4070f1
xor eax, eax
jmp 0x407129
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x20], eax
add eax, 3
and al, 0xfc
call fcn.00414820
mov eax, esp
push edi
push edi
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
and byte [eax], 0
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x407156
lea ecx, [ebp - 0x10]
call fcn.00404b01
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
sete byte [ebp + 0xf]
call fcn.00407008
cmp byte [ebp + 0xf], 0
je 0x4072ab
and byte [ebp - 0x19c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x19b]
and dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x104
push eax
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push str.Version
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4071f3
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040aab9
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00407008
cmp dword [ebp - 0x10], 0
je 0x4071ec
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4072e1
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040a992
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x70]
push eax
mov byte [ebp - 4], 4
call fcn.00406fbe
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00407008
mov eax, 0x423964
mov dword [ebp - 0x48], ebx
mov ecx, eax
mov dword [ebp - 0x28], esi
test ecx, ecx
mov edi, 0x428eec
jne 0x40723c
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.0040abc1
mov eax, 0x423960
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x98], ebx
test ecx, ecx
mov dword [ebp - 0x78], esi
jne 0x407265
mov eax, edi
lea ecx, [ebp - 0x16]
push 0
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.0040abc1
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x70]
push eax
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 6
call fcn.0040aa27
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 5
call fcn.00407008
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00407008
xor edi, edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x70]
push edi
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x20], esi
call fcn.0040ab2e
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 1
call fcn.00407008
cmp dword [ebp - 0x10], edi
je 0x4072de
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x1a8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret