Function at 0x10004149
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x290
mov eax, 0x100480a0
call fcn.10026412
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x298], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, ecx
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x24c], ecx
mov ebx, ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x220], 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 - 0x218], ecx
mov dword [ebp - 0x230], 0x20019
mov dword [ebp - 0x25c], 0xff
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x284], ecx
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.10004818
mov esi, dword [ebp - 0x270]
pop ecx
pop ecx
lea ecx, [ebp - 0x21c]
call fcn.100014cb
mov edi, dword [ebp - 0x21c]
or eax, 0xffffffff
mov byte [ebp - 4], 6
mov dword [ebp - 0x248], eax
cmp esi, eax
jle 0x10004716
mov byte [ebp - 0x260], 0
cmp eax, 0xffffffff
jne 0x10004266
push dword [ebp - 0x230]
lea ecx, [ebp - 0x254]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push SysReAllocStringLen
call fcn.10004db1
jmp 0x100042dc
lea ecx, [ebp - 0x258]
call fcn.100014cb
push dword [ebp - 0x248]
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 7
call fcn.10002a28
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push dword [eax]
lea eax, [ebp - 0x258]
push str._s_s
push eax
call fcn.10002c53
mov esi, dword [ebp - 0x258]
lea ecx, [ebp - 0x254]
add esp, 0x10
push dword [ebp - 0x230]
push esi
push reloc.WS2_32.dll_closesocket
call fcn.10004db1
lea ecx, [esi - 0x10]
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 6
call fcn.10005108
mov eax, dword [ebp - 0x234]
mov esi, dword [ebp - 0x270]
test eax, eax
jne 0x10004701
xor ecx, ecx
mov esi, dword [ebp - 0x254]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x244]
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100046fb
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x100046e1
xor ecx, ecx
mov dword [ebp - 0x240], ecx
test eax, eax
je 0x100046e1
test ebx, ebx
je 0x10004343
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x240]
xor ebx, ebx
mov dword [ebp - 0x228], ebx
and dword [ebp - 0x224], 0
lea eax, [ebp - 0x25c]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x25c], 0xff
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1000469b
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
mov ebx, dword [ebp - 0x260]
lea ecx, [ebp - 0x228]
push 1
test eax, eax
movzx ebx, bl
pop eax
cmovne ebx, eax
lea eax, [ebp - 0x210]
push 0x20019
push eax
push esi
mov dword [ebp - 0x260], ebx
call fcn.10004db1
test eax, eax
jne 0x10004695
test bl, bl
jne 0x10004456
lea eax, [ebp - 0x218]
mov ebx, str.DisplayName
push eax
push 0
push ebx
lea ecx, [ebp - 0x228]
call fcn.10004fd2
test eax, eax
jne 0x10004695
lea ecx, [ebp - 0x23c]
call fcn.100014cb
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 8
push eax
push dword [ebp - 0x218]
lea ecx, [ebp - 0x23c]
call fcn.10004eec
push eax
push ebx
lea ecx, [ebp - 0x228]
call fcn.10004fd2
push 0xffffffffffffffff
lea ecx, [ebp - 0x23c]
call fcn.10005120
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 0x10004451
call fcn.10005108
jmp 0x10004695
call fcn.10005108
lea eax, [ebp - 0x218]
mov ebx, str.DisplayVersion
push eax
push 0
push ebx
lea ecx, [ebp - 0x228]
call fcn.10004fd2
test eax, eax
jne 0x100045f2
lea ecx, [ebp - 0x22c]
call fcn.100014cb
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 9
push eax
push dword [ebp - 0x218]
lea ecx, [ebp - 0x22c]
call fcn.10004eec
push eax
push ebx
lea ecx, [ebp - 0x228]
call fcn.10004fd2
push 0xffffffffffffffff
lea ecx, [ebp - 0x22c]
call fcn.10005120
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x22c]
cmp dword [eax - 0xc], 0
je 0x100045d4
push 0x1004b894
push 0x1004ba30
lea ecx, [ebp + 0xc]
call fcn.1000532f
push 0x1004b894
push 0x1004ba34
lea ecx, [ebp + 0xc]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
mov dword [ebp - 0x290], ebx
call fcn.1000532f
dec eax
lea ecx, [ebp + 0xc]
neg eax
push 0x1004b894
sbb al, al
inc al
push 0x1004ba38
mov dword [ebp - 0x234], eax
call fcn.1000532f
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x1000453a
test bl, bl
jne 0x10004531
cmp byte [ebp - 0x234], bl
je 0x1000453a
mov byte [ebp - 0x211], 0
jmp 0x10004540
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 - 0x238], ebx
call fcn.100025ee
add eax, 0x10
mov dword [ebx], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0xa
mov ebx, esp
mov dword [ebp - 0x238], ebx
push eax
mov dword [ebp - 0x238], eax
call fcn.100025ee
add eax, 0x10
mov dword [ebx], eax
pop ecx
mov byte [ebp - 4], 9
call fcn.10002663
xor dl, dl
pop ecx
pop ecx
cmp byte [ebp - 0x211], dl
je 0x100045a3
push 1
test eax, eax
movzx edx, dl
pop ecx
cmove edx, ecx
jmp 0x100045a6
xor ecx, ecx
inc ecx
cmp byte [ebp - 0x290], 0
je 0x100045b4
cmp eax, 0xffffffff
je 0x100045d4
cmp byte [ebp - 0x234], 0
je 0x100045c1
cmp eax, ecx
je 0x100045d4
test dl, dl
jne 0x100045d4
mov ecx, dword [ebp - 0x238]
mov byte [ebp - 4], 6
jmp 0x10004447
mov ecx, dword [ebp - 0x294]
lea eax, [ebp - 0x22c]
push eax
call fcn.100015bb
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 6
call fcn.10005108
lea eax, [ebp - 0x218]
mov ebx, 0x1004ba3c
push eax
push 0
push ebx
lea ecx, [ebp - 0x228]
call fcn.10004fd2
test eax, eax
jne 0x10004695
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x218]
lea ecx, [ebp - 0x21c]
call fcn.10004eec
push eax
push ebx
lea ecx, [ebp - 0x228]
call fcn.10004fd2
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.10005120
mov edi, dword [ebp - 0x21c]
lea eax, [edi - 0x10]
push eax
call fcn.100025ee
add eax, 0x10
pop ecx
mov dword [ebp - 0x264], eax
push 0
push str..exe
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0xb
call fcn.10004c42
mov ecx, eax
call fcn.10002b45
mov ecx, dword [ebp - 0x264]
mov esi, eax
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.10005108
cmp esi, 0xffffffff
jne 0x100046bb
mov ebx, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x240]
mov esi, dword [ebp - 0x254]
inc ecx
mov dword [ebp - 0x240], ecx
cmp ecx, dword [ebp - 0x244]
jae 0x100046e1
jmp 0x1000432a
mov ebx, dword [ebp - 0x228]
test ebx, ebx
je 0x100046d4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x228], ebx
and dword [ebp - 0x224], 0
mov esi, dword [ebp - 0x254]
test esi, esi
je 0x100046f4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x254], esi
and dword [ebp - 0x250], 0
mov esi, dword [ebp - 0x270]
mov eax, dword [ebp - 0x248]
inc eax
mov dword [ebp - 0x248], eax
cmp eax, esi
jl 0x1000423d
cmp dword [edi - 0xc], 0
jne 0x10004748
call fcn.10003fe4
test eax, eax
je 0x1000475a
cmp dword [ebp - 0x230], 0x20019
jne 0x1000475a
lea ecx, [edi - 0x10]
mov dword [ebp - 0x230], 0x20119
call fcn.10005108
jmp 0x10004217
mov ecx, dword [ebp - 0x298]
lea eax, [ebp - 0x21c]
push eax
call fcn.100015bb
lea eax, [ebp - 0x28c]
push eax
call fcn.10005c20
pop ecx
lea ecx, [edi - 0x10]
call fcn.10005108
cmp dword [ebp - 0x288], 0
je 0x100047a5
mov esi, dword [ebp - 0x284]
test esi, esi
jle 0x10004799
mov edi, dword [ebp - 0x288]
push 0
mov ecx, edi
call fcn.100017f0
add edi, 4
sub esi, 1
jne 0x10004788
push dword [ebp - 0x288]
call fcn.10017949
pop ecx
mov esi, dword [ebp - 0x274]
test esi, esi
je 0x100047de
cmp dword [ebp - 0x270], 0
jle 0x100047d7
mov edi, esi
mov esi, dword [ebp - 0x270]
push 0
mov ecx, edi
call fcn.100017f0
add edi, 4
sub esi, 1
jne 0x100047c0
mov esi, dword [ebp - 0x274]
push esi
call fcn.10017949
pop ecx
test ebx, ebx
je 0x100047e9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x100047fa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10005108
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.10005108
xor eax, eax
call fcn.100263c1
ret