Function at 0x4223f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47352d
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x4ae44c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x838], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x834], ecx
mov ecx, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x82c], edx
mov dword [ebp - 0x840], ecx
xor esi, esi
xor edi, edi
xor bl, bl
call fcn.0040bff0
add esp, 4
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x820], esi
mov dword [ebp - 0x81c], esi
mov dword [ebp - 4], esi
xor ecx, ecx
mov dword [ebp - 0x818], ecx
jmp 0x422486
mov ecx, dword [ebp - 0x818]
cmp ecx, 2
jge 0x422756
xor eax, eax
cmp ecx, 1
jne 0x4224ad
mov edx, dword [ebp - 0x838]
cmp dword [edx + 0x194], esi
je 0x422756
mov eax, 0x100
mov ecx, dword [ebp - 0x834]
or eax, 0x20019
push eax
call dword [sym.imp.mfc100u.dll_]
push eax
mov eax, dword [ebp - 0x83c]
push eax
lea ecx, [ebp - 0x824]
call fcn.0040c5f0
cmp eax, esi
jne 0x4226d1
mov ecx, dword [ebp - 0x82c]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::IsEmpty]
test al, al
jne 0x4226b0
lea ecx, [ebp - 0x814]
mov dword [ebp - 0x828], 0x208
mov dword [ebp - 0x830], 0xffffffff
call dword [0x4824e8]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x828]
push ecx
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
mov ecx, dword [ebp - 0x82c]
mov esi, eax
call dword [sym.imp.mfc100u.dll_]
lea edx, [ebp - 0x828]
push edx
mov edx, dword [ebp - 0x824]
push esi
lea ecx, [ebp - 0x830]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x814]
mov esi, eax
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
test esi, esi
jne 0x422685
mov esi, dword [ebp - 0x840]
mov ecx, esi
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::IsEmpty]
test al, al
jne 0x42266f
mov eax, dword [ebp - 0x830]
cmp eax, 4
je 0x42259a
cmp eax, 3
je 0x42259a
cmp eax, 5
je 0x42259a
cmp eax, 0xb
jne 0x4225cc
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x814]
push 0x485770
push ecx
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
cmp byte [ebp + 0x18], 0
je 0x422641
push esi
lea ecx, [ebp - 0x890]
call fcn.00464570
mov byte [ebp - 4], 2
lea edx, [ebp - 0x814]
push edx
lea ecx, [ebp - 0x868]
call fcn.00464570
mov byte [ebp - 4], 3
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 0x868]
call fcn.00463c90
test eax, eax
setne bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x868]
call fcn.00463b60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x890]
call fcn.00463b60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor esi, esi
jmp 0x4226b2
mov ecx, esi
call dword [sym.imp.mfc100u.dll_]
push eax
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor esi, esi
jmp 0x4226b2
mov bl, 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor esi, esi
jmp 0x4226b2
cmp esi, 2
je 0x42269c
test esi, esi
jle 0x42269a
and esi, 0xffff
or esi, 0x80070000
mov edi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor esi, esi
jmp 0x4226b2
mov bl, 1
mov eax, dword [ebp - 0x824]
cmp eax, esi
je 0x4226c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x820], esi
jmp 0x4226e6
cmp eax, 2
je 0x4226e6
cmp eax, esi
jle 0x4226e4
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, esi
je 0x422748
push 0x800
lea ecx, [ebp - 0x810]
push esi
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push 0x800
lea edx, [ebp - 0x810]
push edx
push 0x400
push edi
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x483b88
lea eax, [ebp - 0x810]
push eax
push 0x485024
push edi
push str.Error_while_looking_up_registry_key:
push 0x489638
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x1c
inc dword [ebp - 0x818]
test bl, bl
je 0x422480
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x824]
cmp eax, esi
je 0x422774
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x824], esi
mov al, bl
mov dword [ebp - 0x820], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b17c
mov esp, ebp
pop ebp
ret 0x14