Function at 0x40a775
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40ef0a
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 0x412e88
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ebx
call esi
cmp eax, ebx
jne 0x40a7d0
lea ecx, [ebp - 0x1c]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
je 0x40a804
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040c520
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040c520
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040c520
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040c520
jmp 0x40a8ae
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x412e94
push ecx
call esi
cmp eax, ebx
jne 0x40a7d0
lea ecx, [ebp - 0x18]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x40a7d0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x412ea0
push ecx
call esi
cmp eax, ebx
jne 0x40a7d0
lea ecx, [ebp - 0x14]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x40a7d0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x412eac
push ecx
call esi
cmp eax, ebx
jne 0x40a87d
lea ecx, [ebp - 0x10]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
je 0x40a8b8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040c520
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040c520
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040c520
cmp dword [ebp - 0x1c], ebx
je 0x40a8ae
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
jmp 0x40a9b4
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
je 0x40a8da
lea eax, [ebp + 0xc]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push eax
push ebx
push 0x412eb4
push ecx
call esi
cmp dword [ebp + 0x10], ebx
je 0x40a8f8
lea eax, [ebp + 0x14]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push dword [ebp + 0x10]
push eax
push ebx
push 0x412ec4
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 0x18], ebx
je 0x40a916
lea eax, [ebp + 0x1c]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push dword [ebp + 0x18]
push eax
push ebx
push 0x412ed4
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 0x20], ebx
je 0x40a934
lea eax, [ebp + 0x24]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push dword [ebp + 0x20]
push eax
push ebx
push 0x412ee8
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 0x28], ebx
mov edi, 0x400
je 0x40a95a
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 0x412efc
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 0x2c], ebx
je 0x40a97b
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 0x412f0c
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a98e
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x40a99b
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x40a9a8
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40a9b2
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