Function at 0x40ebd4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x200
lea ebp, [esp - 4]
mov eax, dword [0x496ee4]
xor eax, ebp
mov dword [ebp + 0x200], eax
push 0x18
mov eax, 0x47d9d2
call fcn.0047bc99
mov ebx, dword [ebp + 0x20c]
mov eax, dword [ebp + 0x210]
xor edi, edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edi
mov esi, dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
lea eax, [ebp + 0x214]
push str.HKEY_CLASSES_ROOT
push eax
mov dword [ebp - 4], 3
call esi
pop ecx
pop ecx
test al, al
je 0x40ec37
mov esi, SysReAllocStringLen
jmp 0x40eca5
lea eax, [ebp + 0x214]
push str.HKEY_CURRENT_USER
push eax
call esi
pop ecx
pop ecx
test al, al
je 0x40ec52
mov esi, reloc.WS2_32.dll_accept
jmp 0x40eca5
lea eax, [ebp + 0x214]
push str.HKEY_LOCAL_MACHINE
push eax
call esi
pop ecx
pop ecx
test al, al
je 0x40ec6d
mov esi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x40eca5
lea eax, [ebp + 0x214]
push str.HKEY_USERS
push eax
call esi
pop ecx
pop ecx
test al, al
je 0x40ec88
mov esi, reloc.WS2_32.dll_closesocket
jmp 0x40eca5
lea eax, [ebp + 0x214]
push str.HKEY_CURRENT_CONFIG
push eax
call esi
pop ecx
pop ecx
test al, al
je 0x40edac
mov esi, reloc.WS2_32.dll_getpeername
lea ecx, [ebp + 0x214]
call dword [sym.imp.MSVCP90.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]
lea ecx, [ebp + 0x230]
call dword [sym.imp.MSVCP90.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]
lea ecx, [ebp + 0x24c]
mov ebx, eax
call dword [sym.imp.MSVCP90.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 dword [ebp - 0x20], eax
xor eax, eax
push 0x1fe
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.0040ac62
test eax, eax
lea eax, [ebp - 0x1c]
push eax
je 0x40ecfa
push 0xf013f
jmp 0x40ecff
push 0x20019
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx eax, ax
xor ebx, ebx
xor ecx, ecx
inc ebx
cmp cx, ax
jne 0x40ed9c
lea ecx, [ebp + 0x24c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::size_void_const]
test eax, eax
jne 0x40ed30
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
jmp 0x40ed9c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp]
push eax
push edi
push edi
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x208
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x40ed9c
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dad3
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], edi
mov byte [ebp - 4], 4
jle 0x40ed90
mov ecx, dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call fcn.00401bab
jmp 0x40edbf
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401bab
mov ecx, dword [ebp - 0x14]
push 0x47fc50
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
jmp 0x40edbc
push 0x47fc50
mov ecx, ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x18], ebx
lea ecx, [ebp + 0x214]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp + 0x24c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.0047bc8a
add ebp, 0x204
leave
ret