Function at 0x4473e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4df378
call fcn.004d1d50
sub esp, 0x50
mov ecx, dword [ebp + 0x14]
mov eax, dword [0x52e400]
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 0x4475c3
test ebx, ebx
je 0x4475c3
test eax, eax
je 0x4475c3
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 0x44744b
mov esi, closesocket
jmp 0x44748c
push str.HKEY_CLASSES_ROOT
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x447460
mov esi, closesocket
jmp 0x44748c
push str.HKEY_LOCAL_MACHINE
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x447475
mov esi, reloc.libexpat.dll_Ordinal_2
jmp 0x44748c
push str.HKEY_USERS
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x4475c3
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.0044fa33
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.0044fa33
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.00441ecf
test eax, eax
jne 0x44759a
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 0x44759a
mov eax, dword [esi]
cmp eax, 4
jne 0x44753e
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.00441f04
jmp 0x44759d
cmp eax, 1
je 0x447548
cmp eax, 2
jne 0x44759a
mov eax, dword [ebp - 0x4c]
add eax, 2
push eax
call fcn.004d1949
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.00441f6b
push dword [ebp - 0x5c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
call fcn.0044f9bd
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 0x10
jmp 0x44759d
xor edi, edi
inc edi
lea ecx, [ebp - 0x50]
call fcn.00441eb8
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 0x4475c6
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.004d1da7
leave
ret 0x18