Function at 0x40a072
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40ef9c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x20]
mov edi, 0x20019
push eax
push edi
push ebx
push 0x413fb4
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ebx
call esi
cmp eax, ebx
jne 0x40a0cd
lea ecx, [ebp - 0x1c]
call fcn.0040bd29
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
je 0x40a101
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040bd29
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040bd29
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040bd29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040bd29
jmp 0x40a1ab
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x413fc0
push ecx
call esi
cmp eax, ebx
jne 0x40a0cd
lea ecx, [ebp - 0x18]
call fcn.0040bd29
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x40a0cd
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x413fcc
push ecx
call esi
cmp eax, ebx
jne 0x40a0cd
lea ecx, [ebp - 0x14]
call fcn.0040bd29
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x40a0cd
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x413fd8
push ecx
call esi
cmp eax, ebx
jne 0x40a17a
lea ecx, [ebp - 0x10]
call fcn.0040bd29
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
je 0x40a1b5
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040bd29
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040bd29
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040bd29
cmp dword [ebp - 0x1c], ebx
je 0x40a1ab
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
jmp 0x40a2b1
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
je 0x40a1d7
lea eax, [ebp + 0xc]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push eax
push ebx
push 0x413fe0
push ecx
call esi
cmp dword [ebp + 0x10], ebx
je 0x40a1f5
lea eax, [ebp + 0x14]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push dword [ebp + 0x10]
push eax
push ebx
push 0x413ff0
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 0x18], ebx
je 0x40a213
lea eax, [ebp + 0x1c]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push dword [ebp + 0x18]
push eax
push ebx
push 0x414000
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 0x20], ebx
je 0x40a231
lea eax, [ebp + 0x24]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push dword [ebp + 0x20]
push eax
push ebx
push 0x414014
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 0x28], ebx
mov edi, 0x400
je 0x40a257
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x1c], edi
push eax
lea eax, [ebp + 8]
push dword [ebp + 0x28]
mov dword [ebp + 8], ebx
push eax
push ebx
push 0x414028
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 0x2c], ebx
je 0x40a278
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x1c], edi
push eax
lea eax, [ebp + 8]
push dword [ebp + 0x2c]
mov dword [ebp + 8], ebx
push eax
push ebx
push 0x414038
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a28b
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x40a298
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x40a2a5
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40a2af
push dword [ebp - 0x1c]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret