Function at 0x40eeb2
Capabilities:
Get mac address on windows
Query or enumerate registry value

Disassembly:
mov eax, 0x420285
call fcn.0041f700
sub esp, 0x168
push ebx
push esi
mov esi, 0x280
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push ecx
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40ef1b
cmp dword [ebp - 0x10], 0
jbe 0x40f0e8
cmp dword [ebp - 0x10], 0x10000
jae 0x40f0e8
push dword [ebp - 0x14]
call fcn.0041f68a
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
pop ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x40f0e8
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40f0e8
push edi
lea edi, [ebx + 8]
test edi, edi
je 0x40f0dd
cmp byte [edi], 0
je 0x40f0dd
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, 0x428778
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
and dword [ebp - 4], 0
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov esi, 0x42876c
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
and byte [ebp - 0x174], 0
push 1
pop esi
xor eax, eax
push 0x41
lea edi, [ebp - 0x173]
pop ecx
mov dword [ebp - 0x18], esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], 0x104
test eax, eax
jne 0x40efc5
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x174]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0x42875c
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.MSVCRT.dll__strnicmp]
push 3
lea eax, [ebp - 0x174]
push 0x428758
push eax
call edi
add esp, 0xc
test eax, eax
je 0x40f023
push 3
lea eax, [ebp - 0x174]
push 0x428754
push eax
call edi
add esp, 0xc
test eax, eax
je 0x40f023
or dword [ebp - 4], 0xffffffff
push esi
jmp 0x40f0d4
mov edi, dword [ebp + 8]
cmp dword [edi + 8], 0
je 0x40f042
mov esi, 0x428750
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
xor esi, esi
cmp dword [ebx + 0x190], esi
jbe 0x40f0b9
and byte [ebp - 0x6c], 0
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x6b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, byte [ebx + esi + 0x194]
push eax
push 0x428748
lea eax, [ebp - 0x6c]
push 0x40
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x6c]
push eax
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp + 8]
add esp, 0x14
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
cmp esi, dword [ebx + 0x190]
jae 0x40f0b0
mov edi, 0x428744
push edi
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
inc esi
cmp esi, dword [ebx + 0x190]
jb 0x40f04c
lea esi, [ebx + 8]
push esi
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40ef2f
pop edi
push dword [ebp - 0x14]
call fcn.0041f68a
pop ecx
xor eax, eax
mov ecx, dword [ebp + 8]
pop esi
pop ebx
cmp dword [ecx + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
setne al
leave
ret