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

Disassembly:
push 0xffffffffffffffff
push 0x100eed1b
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebp
push esi
push edi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
xor edi, edi
neg eax
sbb eax, eax
and eax, 0x100
lea esi, [esp + 0x18]
push esi
or eax, 0x20019
push eax
push edi
push ecx
push edx
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x100040ec
mov edx, dword [esp + 0x18]
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100040e1
lea ecx, [esp + 0x14]
call dword [0x100f3984]
mov dword [esp + 0x48], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
cmp dword [esp + 0x24], edi
jbe 0x100040d7
mov eax, dword [esp + 0x28]
lea ecx, [eax + 1]
push ecx
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov edx, dword [esp + 0x1c]
push eax
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
test eax, eax
jne 0x100040c2
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov eax, dword [ebx + 0x10]
mov edx, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, 0x100
lea ecx, [esp + 0x1c]
push ecx
or eax, 0x20019
push eax
mov eax, dword [esp + 0x20]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100040c8
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push str.Type
mov esi, 4
push ecx
mov dword [esp + 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000404e
cmp dword [esp + 0x30], esi
jne 0x1000404e
mov eax, dword [esp + 0x34]
jmp 0x10004050
xor eax, eax
mov edx, dword [esp + 0x54]
test edx, eax
je 0x100040b5
mov ebp, dword [esp + 0x50]
test ebp, ebp
je 0x10004065
add ebp, 8
jmp 0x10004067
xor ebp, ebp
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
call fcn.100b1de0
add esp, 4
mov byte [esp + 0x48], 1
mov ecx, dword [eax]
lea esi, [esp + 0x38]
call fcn.100b2280
mov byte [esp + 0x48], 2
mov eax, dword [eax]
push eax
mov ecx, ebp
call fcn.100036a0
add esp, 4
mov ecx, esi
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 + 0x3c]
mov byte [esp + 0x48], 0
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 edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100040c8
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
inc edi
mov dword [esp + 0x20], edi
cmp edi, dword [esp + 0x24]
jb 0x10003faf
lea ecx, [esp + 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]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret