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

Disassembly:
mov eax, 0x41ba45
call fcn.0041b220
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 0x40b39d
cmp dword [ebp - 0x10], 0
jbe 0x40b56a
cmp dword [ebp - 0x10], 0x10000
jae 0x40b56a
push dword [ebp - 0x14]
call fcn.0041b1b0
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 0x40b56a
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b56a
push edi
lea edi, [ebx + 8]
test edi, edi
je 0x40b55f
cmp byte [edi], 0
je 0x40b55f
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, 0x42309c
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, 0x423090
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 0x40b447
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 0x423080
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 0x42307c
push eax
call edi
add esp, 0xc
test eax, eax
je 0x40b4a5
push 3
lea eax, [ebp - 0x174]
push 0x423078
push eax
call edi
add esp, 0xc
test eax, eax
je 0x40b4a5
or dword [ebp - 4], 0xffffffff
push esi
jmp 0x40b556
mov edi, dword [ebp + 8]
cmp dword [edi + 8], 0
je 0x40b4c4
mov esi, 0x423074
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 0x40b53b
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 0x42306c
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 0x40b532
mov edi, 0x423068
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 0x40b4ce
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 0x40b3b1
pop edi
push dword [ebp - 0x14]
call fcn.0041b1b0
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