Function at 0x4330d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov eax, dword [0x4b0f4c]
push esi
push edi
xor edi, edi
push edi
push edi
push 0xf0
push 0x412
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x24]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
cmp eax, edi
jne 0x433108
mov esi, SysReAllocStringLen
mov ecx, dword [0x46b21c]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
test edx, edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x24], ecx
jne 0x433123
xor eax, eax
jmp 0x43312e
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [0x483978]
push ecx
mov ecx, dword [ecx - 8]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push eax
lea ecx, [esp + 0x34]
call fcn.00401eb0
lea edx, [esp + 0x24]
lea ecx, [esp + 0x10]
push edx
call fcn.00429290
lea ecx, [esp + 0x24]
call fcn.00401e80
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0x20019
push edi
push ecx
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x433195
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x43318d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x10]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4331c4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4331c4
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov eax, dword [0x46b21c]
push ebx
mov ecx, 0x400
mov dword [esp + 0xc], eax
lea ebx, [eax - 0xc]
mov dword [esp + 0x1c], ecx
push ebp
cmp dword [ebx], 1
jg 0x4331e5
cmp dword [eax - 4], ecx
jge 0x43323d
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x4331ee
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00401ce0
test eax, eax
je 0x43323f
mov edi, dword [esp + 0x10]
lea ecx, [ebp + ebp + 2]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebp
mov eax, dword [0x46b220]
cmp ebx, eax
je 0x433239
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x433239
push ebx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x10]
xor edi, edi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x34], edi
push eax
push edi
push str.UninstallString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
call fcn.00401d40
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
pop ebp
pop ebx
mov dword [ecx - 8], eax
mov edx, dword [esp + 8]
mov word [edx + eax*2], di
mov eax, dword [esp + 8]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, edi
jl 0x4332a1
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4332bf
mov ecx, dword [0x46b21c]
mov edi, eax
test eax, eax
mov dword [esi], ecx
je 0x4332b6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.004027f0
mov eax, dword [esp + 8]
mov ecx, dword [0x46b220]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4332ee
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4332ee
mov eax, dword [esp + 8]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
lea ecx, [esp + 0xc]
call fcn.00404330
mov eax, esi
pop edi
pop esi
add esp, 0x14
ret