Function at 0x436e7e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4ae06f
call fcn.0049f0d0
sub esp, 0x50
mov ecx, dword [ebp + 0x14]
mov eax, dword [0x4f0dd0]
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], ecx
je 0x43705c
test ebx, ebx
je 0x43705c
test eax, eax
je 0x43705c
mov esi, dword [sym.imp.MSVCR71.dll__stricmp]
push str.HKEY_CURRENT_USER
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x436ee9
mov esi, reloc.XLLuaRuntime.dll_Ordinal_1
jmp 0x436f2a
push str.HKEY_CLASSES_ROOT
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x436efe
mov esi, Ordinal_1
jmp 0x436f2a
push str.HKEY_LOCAL_MACHINE
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x436f13
mov esi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x436f2a
push str.HKEY_USERS
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x43705c
mov esi, reloc.WS2_32.dll_closesocket
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0x48]
push eax
push ebx
mov byte [ebp - 4], 1
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push ebx
call fcn.0043c417
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x4c]
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [ebp - 0x4c]
call fcn.0043c417
add esp, 0xc
mov dword [ebp - 0x50], edi
push 0x20019
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push esi
lea ecx, [ebp - 0x50]
call fcn.00432c70
test eax, eax
jne 0x437033
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], edi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov esi, dword [ebp - 0x58]
lea ecx, [ebp - 0x4c]
push ecx
push edi
push esi
push edi
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x437033
mov eax, dword [esi]
cmp eax, 4
jne 0x436fdc
push dword [ebp - 0x54]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x50]
call fcn.00432cd7
jmp 0x437036
cmp eax, 1
jne 0x437033
mov eax, dword [ebp - 0x4c]
add eax, 2
push eax
call fcn.0049ecdd
mov esi, eax
mov eax, dword [ebp - 0x4c]
add eax, 2
push eax
push edi
push esi
call sub.MSVCR71.dll_memset
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
push esi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x50]
call fcn.00432f84
push dword [ebp - 0x5c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
call fcn.0043c3a1
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 0x10
jmp 0x437036
xor edi, edi
inc edi
lea ecx, [ebp - 0x50]
call fcn.00432bc1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
jmp 0x43705f
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f127
leave
ret 0x18