Function at 0x40a3e6
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40c8a4
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x418
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push ebx
push 0x410d28
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x40a496
lea ecx, [ebp - 0x20]
call fcn.0040a747
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x20], ecx
jne 0x40a496
lea eax, [ebp - 0x14]
mov edi, 0x20019
push eax
push edi
push ebx
push 0x410d34
push ecx
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x40a496
lea ecx, [ebp - 0x10]
call fcn.0040a747
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x40a496
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push edi
push ebx
push 0x410d40
push ecx
call esi
cmp eax, ebx
jne 0x40a496
lea ecx, [ebp - 0x1c]
call fcn.0040a747
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
je 0x40a4ca
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040a747
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040a747
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040a747
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040a747
jmp 0x40a575
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push edi
push ebx
push 0x410d4c
push ecx
call esi
cmp eax, ebx
jne 0x40a4f1
lea ecx, [ebp - 0x18]
call fcn.0040a747
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
je 0x40a514
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040a747
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040a747
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a561
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x400
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.UpdateTestFlag
push ecx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40a579
cmp dword [ebp - 0x18], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a551
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40a55e
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x10], ebx
je 0x40a56b
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x20], ebx
je 0x40a575
push dword [ebp - 0x20]
call esi
xor eax, eax
jmp 0x40a5b3
cmp dword [ebp - 0x18], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a58c
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40a599
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x10], ebx
je 0x40a5a6
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x20], ebx
je 0x40a5b0
push dword [ebp - 0x20]
call esi
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret