Function at 0x403f40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x747f82
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x8606e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x270], esi
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x274], 0
call fcn.00411bf0
lea ecx, [ebp - 0x268]
mov dword [ebp - 4], 0
push ecx
mov ecx, dword [eax]
call fcn.00412ab0
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x278]
test edi, edi
je 0x403fcf
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x403fcf
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x403fcf
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
push 0x34
xor eax, eax
mov dword [ebp - 0x23c], 7
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
call fcn.004083b0
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x238]
call fcn.0040a430
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x23c]
cmp eax, 8
jb 0x404043
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.00409480
xor eax, eax
mov dword [ebp - 0x23c], 7
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x26c]
push ecx
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x240], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4040f6
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x4040c3
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.00409480
mov ecx, dword [ebp - 0x254]
xor eax, eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
cmp ecx, 8
jb 0x4041cb
inc ecx
push ecx
jmp 0x4041ba
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0062ff20
add esp, 0xc
mov dword [ebp - 0x270], 0x20a
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push str.InstallLocation
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x26c]
test eax, eax
je 0x40415e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
jmp 0x404172
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x220]
mov ecx, esi
push eax
call fcn.00406dc0
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x404190
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.00409480
xor eax, eax
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x224], 7
cmp eax, 8
jb 0x4041cb
inc eax
push eax
push dword [ebp - 0x268]
lea ecx, [ebp - 0x268]
call fcn.00409480
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret