Function at 0x407af6
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42012e
call fcn.00415d54
sub esp, 0x190
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x15]
mov ebx, 0x421620
mov esi, 0x421618
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.0040b5c6
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
call fcn.004077c1
pop ecx
pop ecx
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, edi
mov dword [ebp + 0xc], 0x421628
je 0x407b5c
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], edi
jne 0x407b65
xor eax, eax
jmp 0x407b9d
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.00415f30
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 0x407bca
lea ecx, [ebp - 0x10]
call fcn.00405115
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.00407a7c
cmp byte [ebp + 0xf], 0
je 0x407d1f
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 0x407c67
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.0040b5c6
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00407a7c
cmp dword [ebp - 0x10], 0
je 0x407c60
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x407d55
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040b49f
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x70]
push eax
mov byte [ebp - 4], 4
call fcn.00407a32
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00407a7c
mov eax, 0x425aa0
mov dword [ebp - 0x48], ebx
mov ecx, eax
mov dword [ebp - 0x28], esi
test ecx, ecx
mov edi, 0x42c474
jne 0x407cb0
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.0040b6ce
mov eax, 0x425a9c
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x98], ebx
test ecx, ecx
mov dword [ebp - 0x78], esi
jne 0x407cd9
mov eax, edi
lea ecx, [ebp - 0x16]
push 0
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.0040b6ce
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x70]
push eax
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 6
call fcn.0040b534
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 5
call fcn.00407a7c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00407a7c
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.0040b63b
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 1
call fcn.00407a7c
cmp dword [ebp - 0x10], edi
je 0x407d52
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