Function at 0x40523d
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x290
mov eax, 0x57ad10
call fcn.0054d3f7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x270], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], ecx
mov esi, 0x20019
mov dword [ebp - 0x218], ecx
mov eax, vtable.CArray_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__.0
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x258], 0xff
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x290], ecx
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.0040584d
pop ecx
pop ecx
lea ecx, [ebp - 0x21c]
call fcn.00401fc2
mov edi, dword [ebp - 0x21c]
or ebx, 0xffffffff
mov byte [ebp - 4], 6
mov dword [ebp - 0x264], ebx
cmp dword [ebp - 0x27c], ebx
jle 0x4057ad
xor al, al
mov dword [ebp - 0x238], eax
cmp ebx, 0xffffffff
jne 0x405353
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x250]
call fcn.00405d06
mov ebx, eax
jmp 0x4053af
lea ecx, [ebp - 0x254]
call fcn.00401fc2
push ebx
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 7
call fcn.004039de
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push dword [eax]
lea eax, [ebp - 0x254]
push str._s_s
push eax
call fcn.00403c75
add esp, 0x10
lea ecx, [ebp - 0x250]
push esi
mov esi, dword [ebp - 0x254]
push esi
push reloc.WS2_32.dll_closesocket
call fcn.00405d06
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 6
mov ebx, eax
call fcn.00406137
test ebx, ebx
jne 0x40578e
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x240]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40578e
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x405783
mov dword [ebp - 0x220], ebx
lea ecx, [ebp - 0x234]
call fcn.004034cd
xor eax, eax
mov dword [ebp - 0x258], 0xff
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x405763
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
mov ecx, dword [ebp - 0x238]
test eax, eax
push 1
pop eax
movzx ecx, cl
cmovne ecx, eax
lea eax, [ebp - 0x210]
push 0x20019
push eax
push dword [ebp - 0x250]
mov dword [ebp - 0x238], ecx
lea ecx, [ebp - 0x234]
call fcn.00405d06
test eax, eax
jne 0x405763
cmp byte [ebp - 0x238], al
jne 0x405513
lea eax, [ebp - 0x218]
mov esi, str.DisplayName
push eax
push 0
push esi
lea ecx, [ebp - 0x234]
call fcn.00405f4c
test eax, eax
jne 0x405763
lea ecx, [ebp - 0x23c]
call fcn.00401fc2
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 8
push eax
push dword [ebp - 0x218]
lea ecx, [ebp - 0x23c]
call fcn.00405e6c
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00405f4c
push 0xffffffffffffffff
lea ecx, [ebp - 0x23c]
call fcn.0040614f
push dword [ebp + 8]
mov esi, dword [ebp - 0x23c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
mov byte [ebp - 4], 6
lea ecx, [esi - 0x10]
test eax, eax
jne 0x40550e
call fcn.00406137
jmp 0x405763
call fcn.00406137
lea eax, [ebp - 0x218]
mov esi, str.DisplayVersion
push eax
push 0
push esi
lea ecx, [ebp - 0x234]
call fcn.00405f4c
test eax, eax
jne 0x4056c0
lea ecx, [ebp - 0x224]
call fcn.00401fc2
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 9
push eax
push dword [ebp - 0x218]
lea ecx, [ebp - 0x224]
call fcn.00405e6c
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00405f4c
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.0040614f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
je 0x4056a2
push 0x58c00c
push 0x58c1a8
lea ecx, [ebp + 0xc]
call fcn.0040635c
push 0x58c00c
push 0x58c1ac
lea ecx, [ebp + 0xc]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
mov dword [ebp - 0x268], ebx
call fcn.0040635c
dec eax
lea ecx, [ebp + 0xc]
neg eax
push 0x58c00c
sbb al, al
inc al
push 0x58c1b0
mov dword [ebp - 0x25c], eax
call fcn.0040635c
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4055f7
test bl, bl
jne 0x4055ee
cmp byte [ebp - 0x25c], bl
je 0x4055f7
mov byte [ebp - 0x211], 0
jmp 0x4055fd
mov byte [ebp - 0x211], cl
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x29c], esp
mov ebx, esp
push eax
mov dword [ebp - 0x228], ebx
call fcn.00403470
add eax, 0x10
mov dword [ebx], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0xa
mov ebx, esp
mov dword [ebp - 0x228], ebx
push eax
mov dword [ebp - 0x228], eax
call fcn.00403470
add eax, 0x10
mov dword [ebx], eax
pop ecx
mov byte [ebp - 4], 9
call fcn.004034e7
xor dl, dl
pop ecx
pop ecx
cmp byte [ebp - 0x211], dl
je 0x405660
push 1
test eax, eax
movzx edx, dl
pop ecx
cmove edx, ecx
jmp 0x405663
xor ecx, ecx
inc ecx
cmp byte [ebp - 0x268], 0
je 0x405671
cmp eax, 0xffffffff
je 0x40569c
cmp byte [ebp - 0x25c], 0
je 0x40567e
cmp eax, ecx
je 0x40569c
test dl, dl
jne 0x40569c
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 6
call fcn.00406137
mov ebx, dword [ebp - 0x220]
jmp 0x405763
mov ebx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x224]
push eax
call fcn.004020eb
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 6
call fcn.00406137
lea eax, [ebp - 0x218]
mov esi, 0x58c1b4
push eax
push 0
push esi
lea ecx, [ebp - 0x234]
call fcn.00405f4c
test eax, eax
jne 0x405763
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x218]
lea ecx, [ebp - 0x21c]
call fcn.00405e6c
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00405f4c
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040614f
mov edi, dword [ebp - 0x21c]
lea eax, [edi - 0x10]
push eax
call fcn.00403470
add eax, 0x10
pop ecx
mov dword [ebp - 0x260], eax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xb
call fcn.00405b96
push 0
push str..exe
mov ecx, eax
call fcn.00403b61
mov ecx, dword [ebp - 0x260]
mov esi, eax
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.00406137
cmp esi, 0xffffffff
jne 0x405778
inc ebx
mov dword [ebp - 0x220], ebx
cmp ebx, dword [ebp - 0x240]
jb 0x4053f0
jmp 0x405783
lea ecx, [ebp - 0x234]
call fcn.004034cd
lea ecx, [ebp - 0x250]
call fcn.004034cd
mov ebx, dword [ebp - 0x264]
mov esi, dword [ebp - 0x244]
inc ebx
mov dword [ebp - 0x264], ebx
cmp ebx, dword [ebp - 0x27c]
jl 0x40532c
cmp dword [edi - 0xc], 0
jne 0x4057dc
call fcn.004050a7
test eax, eax
je 0x4057ee
cmp esi, 0x20019
jne 0x4057ee
mov esi, 0x20119
lea ecx, [edi - 0x10]
mov dword [ebp - 0x244], esi
call fcn.00406137
jmp 0x405302
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x21c]
push eax
call fcn.004020eb
lea eax, [ebp - 0x298]
push eax
call fcn.00406d60
pop ecx
lea ecx, [edi - 0x10]
call fcn.00406137
lea ecx, [ebp - 0x298]
call fcn.00402071
lea ecx, [ebp - 0x284]
call fcn.00402071
lea ecx, [ebp - 0x234]
call fcn.004034cd
lea ecx, [ebp - 0x250]
call fcn.004034cd
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406137
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00406137
xor eax, eax
call fcn.0054d3a6
ret