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

Disassembly:
push 0xffffffffffffffff
push 0x100ec254
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1012007c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x3c]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ebp, dword [esp + 0x40]
sar eax, 2
cmp ebp, eax
jae 0x100b1f35
mov eax, dword [esi + 0xc]
lea eax, [eax + ebp*4]
push eax
lea ecx, [esp + 0x28]
call dword [0x100f4988]
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
call dword [0x100f4984]
lea ecx, [esp + 0x40]
call dword [0x100f4984]
mov byte [esp + 0x30], 2
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x3c], ebx
sar ecx, 2
mov dword [esp + 0x20], ebx
cmp ebp, ecx
jae 0x100b1f17
lea ecx, [ecx]
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
lea edi, [esp + 0x24]
call dword [0x100f4988]
mov ecx, edi
call fcn.100b2850
cmp eax, ebx
jne 0x100b1cec
mov eax, dword [esp + 0x40]
cmp dword [eax - 0xc], ebx
je 0x100b1ca9
push 0x100f7648
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x44]
call dword [0x100f47ac]
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
sub edx, eax
inc ebp
sar edx, 2
cmp ebp, edx
jae 0x100b1e2a
lea eax, [eax + ebp*4]
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
cmp ebp, ecx
jb 0x100b1c70
jmp 0x100b1f17
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0x38]
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x44]
and ecx, 0x100
or ecx, 0x20019
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100b1f17
mov eax, dword [esp + 0x3c]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x68], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100b1e1a
cmp dword [esp + 0x14], ebx
je 0x100b1e1a
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x100b1e1a
inc eax
xor ecx, ecx
mov dword [esp + 0x38], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
add esp, 4
cmp dword [esp + 0x14], 0
mov edi, eax
jbe 0x100b1e11
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x100b1e0a
mov edx, dword [esp + 0x1c]
push 0x3f
push 0x2a
push edx
push edi
call fcn.10010840
add esp, 0x10
test eax, eax
je 0x100b1e0a
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x1c]
neg edx
sbb edx, edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x40]
and edx, 0x100
or edx, 0x20019
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100b1e0a
mov edx, dword [esp + 0x20]
lea ecx, [ebp + 1]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push edx
call fcn.100b1be0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x100b1d91
push edi
call sub.mfc90u.dll_delete__
add esp, 4
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100b1f17
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x40]
neg eax
sbb eax, eax
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100b1f17
lea ecx, [esp + 0x38]
call dword [0x100f4984]
push ecx
mov byte [esp + 0x34], 3
add edi, 0x14
mov ecx, esp
mov dword [esp + 0x1c], esp
push edi
lea esi, [esp + 0x40]
call dword [0x100f4988]
mov ecx, esi
call fcn.100b2850
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x100b1eb5
mov edx, dword [esp + 0x3c]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
jmp 0x100b1f02
xor ecx, ecx
mov eax, 0x200
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x18], 0x400
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
mov edx, dword [esp + 0x3c]
add esp, 4
mov esi, eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
call sub.mfc90u.dll_delete__
add esp, 4
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc