Function at 0x1010702
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x10176aa
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x2fc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [eax + 0x3c]
push 1
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x10], eax
pop esi
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push 0x1003060
push 0x15
push edi
push 0x1003070
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x4c], 0xffff0003
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x48], 0x67
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x1010904
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], edi
mov ebx, dword [eax]
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
push dword [ebp - 0x14]
call dword [ebx + 0xc]
cmp eax, edi
jl 0x10108f6
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x208]
push edi
mov word [ebp - 0x1f4], di
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10108ed
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0xf4]
push 0x50
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp word [ebp - 0x1f4], di
je 0x10107fe
lea eax, [ebp - 0x1f4]
test eax, eax
je 0x1010820
lea eax, [ebp - 0x1f4]
push eax
call ebx
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.01016a50
mov eax, esp
lea ecx, [ebp - 0x1f4]
push esi
push ecx
push eax
call sub.MFC42.DLL_AfxW2AHelper
jmp 0x1010820
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x308]
push 0x10046e8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x308]
mov dword [ebp - 0x38], eax
cmp byte [eax], 0x5f
jne 0x1010834
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x74], edi
je 0x10108d2
push 0x25c
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x1010854
mov ecx, eax
call fcn.0100e789
mov esi, eax
jmp 0x1010856
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xf4]
test eax, eax
je 0x101088f
lea eax, [ebp - 0xf4]
push eax
call ebx
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.01016a50
mov eax, esp
lea ecx, [ebp - 0xf4]
push edi
push ecx
push eax
call sub.MFC42.DLL_AfxW2AHelper
xor edi, edi
push eax
mov ecx, esi
call fcn.0100ea63
test eax, eax
jne 0x10108a2
mov dword [esi + 0x44], 0xd
lea eax, [ebp - 0x50]
mov dword [esi + 4], 7
push eax
mov eax, dword [ebp - 0x20]
push edi
push 0x1100
push dword [eax + 0x20]
mov dword [ebp - 0x24], esi
mov esi, dword [esi + 0x44]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov word [ebp - 0x1f4], di
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x208]
push edi
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10107aa
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1010a4b
lea eax, [ebp + 8]
push eax
push 0x100299c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1010a4b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [ebp - 0xa4]
push 0x50
push eax
push edi
mov dword [ebp - 0x18], edi
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x1010a42
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1010a2b
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100
push eax
lea eax, [ebp - 0x308]
push eax
push edi
push edi
push 0x10046e4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1010a1f
cmp byte [ebp - 0x308], al
jne 0x10109aa
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x308]
push 0x10045dc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x25c
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x54], eax
cmp eax, edi
mov dword [ebp - 4], esi
je 0x10109ca
mov ecx, eax
call fcn.0100e789
mov esi, eax
jmp 0x10109cc
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa4]
push eax
mov ecx, esi
mov dword [esi + 4], 7
call fcn.0100ea63
test eax, eax
jne 0x10109f0
mov dword [esi + 0x44], 0xd
mov eax, dword [esi + 0x44]
mov word [esi + 0x40], di
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x308]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x20]
push edi
push 0x1100
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop esi
inc dword [ebp - 0x18]
lea eax, [ebp - 0xa4]
push 0x50
push eax
push dword [ebp - 0x18]
push dword [ebp + 8]
jmp 0x1010936
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x314]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4