Function at 0x1009ed00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c4c47
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x100ef07c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
xor esi, esi
cmp dword [ebp + 0xc], 3
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], esi
jne 0x1009f219
lea ecx, [ebp + 0xc]
call dword [0x100ca800]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call dword [0x100ca800]
lea ecx, [ebp - 0x18]
call dword [0x100ca800]
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x1ec]
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
lea esi, [edi + 0x1ec]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x38], esi
call edx
mov byte [ebp - 4], 4
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x14]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [edi + 0xa4]
mov byte [ebp - 4], 5
call fcn.10021ea0
lea ecx, [ebp - 0x20]
mov edi, eax
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
test edi, edi
jne 0x1009ee1b
mov byte [ebp - 4], 3
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
lea ecx, [ebp - 0x18]
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, [ebp - 0x14]
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, [ebp + 0xc]
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [edi + 0x24]
test edi, edi
je 0x1009eddd
mov ecx, dword [edi + 4]
mov eax, dword [ecx - 0xc]
mov edx, dword [ebx + 0x14]
lea eax, [edx + eax*2]
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov ecx, dword [ebp - 0x18]
mov edx, dword [edi + 8]
push ecx
push edx
lea eax, [ebp + 0xc]
push str._s_s
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov edx, dword [ebx + 0x18]
mov eax, dword [ebp + 0xc]
add esp, 0x10
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
push edx
add ecx, 0xd0
lea ebx, [ebp - 0x30]
lea edi, [ebp - 0x24]
call fcn.100a3750
mov byte [ebp - 4], 3
test eax, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
jne 0x1009ee87
call edx
jmp 0x1009edea
call edx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x3c], ecx
je 0x1009eee5
sub eax, 1
je 0x1009eed3
sub eax, 1
mov esi, dword [ebp + 0x10]
jne 0x1009ef22
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
shr edx, 1
push edx
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::SetString_1]
jmp 0x1009ef22
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x18]
push edx
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
jmp 0x1009ef1f
push 0x5c
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
cmp eax, 0xffffffff
je 0x1009ef1f
inc eax
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
mov ebx, dword [ebp + 8]
je 0x1009ef49
lea ecx, [ebp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.1009f620
test eax, eax
jne 0x1009edea
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x44]
sub eax, 1
je 0x1009eff9
sub eax, 0xb
jne 0x1009f003
push eax
push str.CLSID
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
mov edi, eax
cmp edi, 0xffffffff
je 0x1009edea
add edi, 6
push edi
push 0x5c
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find_1]
cmp eax, 0xffffffff
jne 0x1009efa3
mov edx, dword [ebp + 0xc]
mov eax, dword [edx - 0xc]
cmp edi, eax
jge 0x1009edea
cmp eax, 0xffffffff
je 0x1009edea
sub eax, edi
push eax
push edi
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid_1]
mov byte [ebp - 4], 8
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
push ecx
push edx
mov ecx, ebx
mov dword [ebp - 0x28], 0
call fcn.1009f620
test eax, eax
je 0x1009efeb
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1009efdc
mov dword [ebp - 0x44], eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x1009f003
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x1009edea
cmp dword [esi + 0x24], 0
je 0x1009edea
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], ecx
cmp dword [eax - 0xc], 0
jne 0x1009f01f
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x58], edx
jmp 0x1009f022
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x1c]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 0x14]
lea eax, [esi - 1]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], ecx
cmp eax, 4
ja case.default.0x1009f04f
jmp dword [eax*4 + 0x1009f230]
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x28], 0
call dword [0x100ca800]
lea edx, [ebp + 0x10]
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x58]
push edx
lea edi, [ebp - 0x28]
call fcn.1000ee80
add esp, 4
test eax, eax
jne 0x1009f177
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push 0x101
xor ebx, ebx
push ebx
push ecx
push edx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009f177
mov eax, dword [ebp - 0x48]
inc eax
push eax
mov dword [ebp - 0x28], eax
call sub.mfc90u.dll_new__
mov edx, dword [ebp - 0x54]
add esp, 4
mov edi, eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
push edi
lea ecx, [ebp - 0x30]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1009f151
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x48]
jne 0x1009f15c
cmp eax, ebx
je 0x1009f157
mov ecx, dword [ebp - 0x30]
cmp ecx, 1
je 0x1009f13a
cmp ecx, 2
je 0x1009f13a
mov ecx, dword [ebp - 0x4c]
mov esi, edi
cmp eax, 4
jb 0x1009f114
lea ebx, [ebx]
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x1009f15c
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x1009f100
test eax, eax
je 0x1009f157
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x1009f15c
cmp eax, 1
jbe 0x1009f157
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x1009f15c
cmp eax, 2
jbe 0x1009f157
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x1009f15c
jmp 0x1009f157
mov ecx, dword [ebp - 0x4c]
shr eax, 1
push eax
push ecx
push edi
call dword [sym.imp.MSVCR90.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1009f15c
jmp 0x1009f157
cmp dword [ebp - 0x48], 2
ja 0x1009f15c
mov ebx, 1
push edi
call sub.mfc90u.dll_delete__
mov edx, dword [ebp - 0x1c]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1009efeb
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x1c], 0xa
mov byte [ebp - 4], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ebx, dword [ebp + 8]
jmp case.default.0x1009f04f
mov dword [ebp - 0x1c], 9
jmp case.default.0x1009f04f
mov dword [ebp - 0x1c], 8
jmp case.default.0x1009f04f
mov dword [ebp - 0x1c], 0xb
jmp case.default.0x1009f04f
mov dword [ebp - 0x1c], 0xc
cmp dword [ebp + 0x14], 0
je 0x1009f1ed
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
push ecx
lea edx, [ebp - 0x64]
push edx
mov ecx, ebx
call eax
test eax, eax
je 0x1009f1e6
cmp dword [ebp - 0x2c], 0
je 0x1009f1e2
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.1009f520
xor esi, esi
jmp 0x1009f1fe
mov esi, 0xc0000022
jmp 0x1009f1fe
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x64]
push ecx
mov edi, ebx
call fcn.1009f250
mov esi, eax
lea ecx, [ebp - 0x18]
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, [ebp - 0x14]
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, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10