Function at 0x404537
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 1
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.004051cd
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x5c], 0x41b414
mov dword [ebp - 0x54], 0x41b40c
call fcn.00402096
push dword [esi + 0x4c]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x68], 0x41b408
call fcn.00414b09
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x18]
mov edi, 0x41bfd8
push eax
push edi
push 5
push ebx
push 0x41c588
call esi
test eax, eax
jge 0x4045c7
lea eax, [ebp - 0x18]
push eax
push edi
push 5
push ebx
push 0x41b450
call esi
test eax, eax
jl 0x4046df
mov eax, dword [ebp - 0x24]
lea edi, [ebp - 0x3c]
mov esi, dword [eax + 0x48]
lea eax, [ebp - 0x14]
add esi, 0x17d
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.ole32.dll_StringFromCLSID]
lea eax, [ebp - 0x3c]
push eax
call edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x74]
call fcn.00404875
push 1
lea ecx, [ebp - 0x48]
push dword [ebp - 0x14]
call fcn.00405230
mov esi, dword [ebp - 0x38]
push esi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push esi
lea ecx, [ebp - 0x74]
call fcn.0040387c
lea ecx, [ebp - 0x48]
call fcn.0040539b
lea ecx, [ebp - 0x84]
call fcn.004024bf
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push dword [ebp - 0x80]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4046df
mov eax, 0x104
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00405139
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040cb66
push eax
push ebx
push ebx
push str.LogFile
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb al, al
lea ecx, [ebp - 0x3c]
inc al
mov byte [ebp - 1], al
call fcn.0040a134
cmp byte [ebp - 1], bl
je 0x4046c3
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push 0x12
push ebx
push dword [ebp - 0x58]
call dword [sym.imp.ole32.dll_StgOpenStorage]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4046c3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4046df
mov esi, dword [ebp - 0x24]
lea edx, [ebp - 0xc]
push edx
push eax
mov byte [esi + 0x70], 1
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jge 0x40470f
lea ecx, [ebp - 0x28]
call fcn.00404892
lea ecx, [ebp - 0x68]
call fcn.00401925
lea ecx, [ebp - 0x84]
call fcn.0040539b
lea ecx, [ebp - 0x10]
call fcn.004059a7
lea ecx, [ebp - 0x14]
call fcn.00405992
jmp 0x40483c
push 1
push str.GlobalTextSubstitution
lea ecx, [ebp - 0x48]
call fcn.00405230
push dword [ebp - 0xc]
mov ecx, dword [esi + 0x4c]
lea eax, [ebp - 0x48]
push eax
call fcn.00411f7c
lea ecx, [ebp - 0x48]
call fcn.0040539b
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
test eax, eax
jl 0x4047ea
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], ebx
push eax
mov eax, dword [esi + 0x48]
mov dword [ebp - 8], ebx
mov eax, dword [eax + 0x24c]
add eax, 0x28
push eax
call edi
push dword [ebp - 8]
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x3c], bx
call fcn.004018e1
lea edx, [ebp - 0x2c]
lea esi, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x20]
sub esp, 0x10
mov edi, esp
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x20]
test eax, eax
lea eax, [ebp - 0x3c]
push eax
setge byte [ebp - 1]
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp byte [ebp - 1], bl
je 0x4047c9
push 1
push str.LocalTextSubstitution
lea ecx, [ebp - 0x48]
call fcn.00405230
push dword [ebp - 0x2c]
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x50]
call fcn.00411f7c
lea ecx, [ebp - 0x48]
call fcn.0040539b
cmp dword [ebp - 8], ebx
je 0x4047da
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x4047e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x24]
push dword [ebp - 0xc]
lea eax, [ebp - 1]
push eax
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x24c]
call fcn.004016c0
lea ecx, [ebp - 0x28]
call fcn.00404892
lea ecx, [ebp - 0x68]
call fcn.00401925
lea ecx, [ebp - 0x84]
call fcn.0040539b
cmp dword [ebp - 0x10], ebx
je 0x40482b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x40483c
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x404849
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x404856
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x404863
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x404870
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebx
leave
ret