Function at 0x4094a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x426c58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
push esi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x148]
mov edx, dword [esp + 0x140]
mov ebx, 1
push eax
lea ecx, [esp + 0x144]
mov dword [esp + 0x138], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0x104
call dword [edx + 4]
mov ecx, dword [esp + 0x144]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call esi
test eax, eax
je 0x409562
mov esi, dword [esp + 0x13c]
push 0xffffffffffffffff
push 0x432f54
mov ecx, esi
call fcn.00402390
mov dword [esi], 0x428230
mov dword [esp + 0xc], ebx
mov dword [esp + 0x140], 0x428228
lea ecx, [esp + 0x140]
mov dword [esp + 0x134], 2
call fcn.0040b850
jmp 0x4097da
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
push edi
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.CurrentVersion
push edx
call ebp
mov edi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
push 0xffffffffffffffff
je 0x4095de
mov esi, dword [esp + 0x140]
push 0x432f54
mov ecx, esi
call fcn.00402390
mov dword [esi], 0x428230
mov dword [esp + 0xc], ebx
mov dword [esp + 0x140], 0x428228
lea ecx, [esp + 0x140]
mov dword [esp + 0x134], 3
call fcn.0040b850
jmp 0x4097da
push 0x42f618
lea ecx, [esp + 0x24]
call fcn.004024c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 4
push ecx
lea ecx, [esp + 0x144]
call fcn.0040a020
lea edx, [esp + 0x28]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x13c], bl
call fcn.004024c0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x140]
push eax
mov byte [esp + 0x138], 5
call fcn.0040a020
mov ecx, dword [esp + 0x148]
mov edx, dword [esp + 0x140]
push ecx
lea ecx, [esp + 0x144]
mov byte [esp + 0x138], bl
call dword [edx + 4]
mov ecx, dword [esp + 0x144]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call esi
test eax, eax
je 0x4096ba
mov esi, dword [esp + 0x13c]
push 0xffffffffffffffff
push 0x432f54
mov ecx, esi
call fcn.00402390
mov dword [esi], 0x428230
mov dword [esp + 0xc], ebx
mov dword [esp + 0x140], 0x428228
lea ecx, [esp + 0x140]
mov dword [esp + 0x134], 6
call fcn.0040b850
jmp 0x4097da
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.RuntimeLib
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 0x104
call ebp
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40973a
mov esi, dword [esp + 0x13c]
push 0xffffffffffffffff
push 0x432f54
mov ecx, esi
call fcn.00402390
mov dword [esi], 0x428230
mov dword [esp + 0xc], ebx
mov dword [esp + 0x140], 0x428228
lea ecx, [esp + 0x140]
mov dword [esp + 0x134], 7
call fcn.0040b850
jmp 0x4097da
lea ecx, [esp + 0x28]
push ecx
call fcn.00418550
add esp, 4
test eax, eax
push 0xffffffffffffffff
je 0x40978e
mov esi, dword [esp + 0x140]
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.00402390
mov dword [esi], 0x428230
mov dword [esp + 0xc], ebx
mov dword [esp + 0x140], 0x428228
lea ecx, [esp + 0x140]
mov dword [esp + 0x134], 8
call fcn.0040b850
jmp 0x4097da
mov esi, dword [esp + 0x140]
push 0x432f54
mov ecx, esi
call fcn.00402390
mov dword [esi], 0x428230
mov dword [esp + 0xc], ebx
mov dword [esp + 0x140], 0x428228
lea ecx, [esp + 0x140]
mov dword [esp + 0x134], 9
call fcn.00402380
test eax, eax
je 0x4097da
push eax
call fcn.0040cb32
add esp, 4
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret 0x14