Function at 0x405d10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4955d1
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4b8a40]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b8a40]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x40], ebx
push 0x49f6e4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], ebx
call fcn.00401bc0
mov dword [esp + 0x40], ebx
mov edi, 1
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], 0x104
call fcn.004448fb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x405d89
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], edi
call fcn.004448fb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x405db7
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0x3d
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallYouXunBox
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 2
call fcn.00402260
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push ebp
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405f4c
mov dword [esp + 0x2c], edi
mov eax, dword [esi - 8]
mov ecx, edi
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x405e26
push 0x100
lea ecx, [esp + 0x18]
call fcn.00402310
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push esi
lea eax, [esp + 0x34]
push eax
push ebx
push str.DisplayIcon
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00461dfb
add esp, 8
cmp eax, ebx
jl 0x405f42
cmp eax, dword [esi - 8]
jg 0x405f42
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
cmp dword [esi - 0xc], ebx
jne 0x405e78
mov eax, dword [esp + 0x18]
push eax
jmp 0x405f2d
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x24], esp
mov edi, esp
push eax
call fcn.00402360
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004061d0
add esp, 4
cmp eax, ebx
je 0x405f28
cmp dword [esi - 0xc], ebx
jge 0x405eaa
or eax, 0xffffffff
jmp 0x405ec5
push str.YouXunBox
push esi
call fcn.004624d3
add esp, 8
cmp eax, ebx
jne 0x405ec1
or eax, 0xffffffff
jmp 0x405ec5
sub eax, esi
sar eax, 1
dec eax
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404f90
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 3
call fcn.00401f70
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405f09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00401f70
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405f59
mov edx, dword [esp + 0x18]
push edx
call fcn.00405fc0
mov eax, dword [esp + 0x20]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405f59
push 0x80070057
call fcn.004010b0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00405fc0
add esp, 4
lea eax, [esi - 0x10]
mov byte [esp + 0x40], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405f7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x40], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00461a99
add esp, 0x30
ret