Function at 0x402240
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cef8b
mov eax, dword fs:[0]
push eax
mov eax, 0x2938
call fcn.004a1d70
mov eax, dword [0x5035d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x2880
lea eax, [ebp - 0x2890]
push 0
push eax
call fcn.004a4df0
add esp, 0xc
mov dword [ebp - 0x2894], 0x2880
lea eax, [ebp - 0x2894]
push eax
lea eax, [ebp - 0x2890]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x402471
lea esi, [ebp - 0x2890]
lea ecx, [esi + 8]
call fcn.004024a0
mov eax, dword [esi + 0x1a0]
cmp eax, 6
je 0x4022d9
cmp eax, 0x17
je 0x4022d9
mov esi, dword [esi]
test esi, esi
jne 0x4022b6
jmp 0x402471
push 0x98
lea eax, [ebp - 0x292c]
push 0
push eax
call fcn.004a4df0
add esp, 4
lea ecx, [ebp - 0x292c]
call fcn.00402ba0
mov dword [ebp - 4], 0
xor edi, edi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x292c]
lea ecx, [ebp - 0x2918]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx], eax
lea eax, [ebp - 0x293c]
push eax
call fcn.004a38dd
mov ecx, dword [ebp - 0x292c]
lea edx, [ebp - 0x292c]
push dword [eax + 0xc]
mov ecx, dword [ecx + 4]
push dword [eax + 8]
mov eax, dword [eax]
add ecx, edx
push ecx
call eax
mov eax, dword [ebp - 0x292c]
lea ecx, [ebp - 0x292c]
add esp, 0x18
mov eax, dword [eax + 4]
mov byte [ebp + eax - 0x28ec], 0x30
movzx eax, byte [esi + edi + 0x194]
push eax
call fcn.00403280
inc edi
cmp edi, 6
jl 0x402310
lea eax, [ebp - 0x2944]
push eax
lea ecx, [ebp - 0x292c]
call fcn.00402ae0
push eax
mov ecx, ebx
call fcn.00402950
mov edx, dword [ebp - 0x2930]
cmp edx, 0x10
jb 0x4023dd
mov ecx, dword [ebp - 0x2944]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4023d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402495
push edx
push ecx
call fcn.004a1326
add esp, 8
mov eax, dword [ebp - 0x292c]
mov dword [ebp - 0x2934], 0
mov dword [ebp - 0x2930], 0xf
mov byte [ebp - 0x2944], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x292c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2930], eax
lea ecx, [ebp - 0x2928]
call fcn.00403170
mov eax, dword [ebp - 0x292c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x292c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2930], eax
lea eax, [ebp - 0x28dc]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004a3392
add esp, 4
xor eax, eax
cmp dword [ebx + 0x10], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret
call fcn.004a8d39
int3