Function at 0x40e6e1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x200
lea ebp, [esp - 4]
mov eax, dword [0x4595b8]
xor eax, ebp
mov dword [ebp + 0x200], eax
push 0x18
mov eax, 0x44719b
call fcn.00445203
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.MSVCP80.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
test al, al
pop ecx
pop ecx
je 0x40e744
mov esi, SysReAllocStringLen
jmp 0x40e7b2
lea eax, [ebp + 0x214]
push str.HKEY_CURRENT_USER
push eax
call esi
test al, al
pop ecx
pop ecx
je 0x40e75f
mov esi, reloc.WS2_32.dll_accept
jmp 0x40e7b2
lea eax, [ebp + 0x214]
push str.HKEY_LOCAL_MACHINE
push eax
call esi
test al, al
pop ecx
pop ecx
je 0x40e77a
mov esi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x40e7b2
lea eax, [ebp + 0x214]
push str.HKEY_USERS
push eax
call esi
test al, al
pop ecx
pop ecx
je 0x40e795
mov esi, reloc.WS2_32.dll_closesocket
jmp 0x40e7b2
lea eax, [ebp + 0x214]
push str.HKEY_CURRENT_CONFIG
push eax
call esi
test al, al
pop ecx
pop ecx
je 0x40e8a5
mov esi, reloc.WS2_32.dll_getpeername
lea ecx, [ebp + 0x214]
call dword [sym.imp.MSVCP80.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.MSVCP80.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.MSVCP80.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 0x1fe
mov dword [ebp - 0x20], eax
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx eax, ax
xor ebx, ebx
inc ebx
cmp ax, di
jne 0x40e895
lea ecx, [ebp + 0x24c]
call dword [sym.imp.MSVCP80.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 0x40e829
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
jmp 0x40e895
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 0x40e895
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d786
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], edi
mov byte [ebp - 4], 4
jle 0x40e889
mov ecx, dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCP80.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.00401b4c
jmp 0x40e8b8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401b4c
mov ecx, dword [ebp - 0x14]
push 0x449ba0
call dword [sym.imp.MSVCP80.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 0x40e8b5
push 0x449ba0
mov ecx, ebx
call dword [sym.imp.MSVCP80.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.MSVCP80.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.MSVCP80.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.MSVCP80.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.004451f4
add ebp, 0x204
leave
ret