Function at 0x401980
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420f93
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x42c820]
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 dword [ebp - 0x12c], ecx
xor edi, edi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x78], edi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push eax
push edi
mov dword [ebp - 0x6c], edi
call esi
push dword [ebp - 0x6c]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
lea eax, [ebp - 0x6c]
push eax
push ebx
mov dword [ebp - 0x5c], ebx
call esi
test eax, eax
jne 0x40219c
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
call fcn.00406050
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x128], 0x428960
mov dword [ebp - 0x118], 0x428898
mov byte [ebp - 4], 1
xorps xmm0, xmm0
or edi, 1
push 4
mov dword [ebp - 0x78], edi
mov dword [ebp - 0xc0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0xc4], 0x50
movlpd qword [ebp - 0x120], xmm0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0x201
mov dword [ebp - 0xa8], 6
mov dword [ebp - 0xa4], 0
movlpd qword [ebp - 0xa0], xmm0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xb4], 0
call fcn.0040a1d0
mov esi, eax
add esp, 4
test esi, esi
je 0x401abf
push 1
call fcn.00409bd3
add esp, 4
mov dword [esi], eax
jmp 0x401ac1
xor esi, esi
lea eax, [ebp - 0x110]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x84], 0
call fcn.00408930
push eax
mov dword [ebp - 4], 4
call fcn.00407980
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x134]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x401b20
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x401b20
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov eax, dword [esi]
push 0x20
mov eax, dword [eax + 0x20]
mov ecx, esi
call eax
cmp dword [ebp - 0x88], 0
mov byte [ebp - 0x80], al
jne 0x401b57
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb0]
or eax, 4
and eax, 0x17
mov dword [ebp - 0xb4], eax
test ecx, eax
jne 0x4020e3
mov eax, dword [ebp - 0x118]
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 - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x11c], eax
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x12c], eax
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x128]
push 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x12c], eax
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040a1d0
mov esi, eax
add esp, 4
test esi, esi
je 0x401bfb
push 1
call fcn.00409bd3
add esp, 4
mov dword [esi], eax
jmp 0x401bfd
xor esi, esi
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0xfc]
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xec]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0x108], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov byte [ebp - 4], 9
xor edi, edi
jmp 0x401cb0
mov eax, dword [ebp - 0x118]
movzx esi, byte [edi + ebx + 0x194]
mov eax, dword [eax + 4]
push 0
mov byte [ebp + eax - 0xd8], 0x30
lea eax, [ebp - 0x190]
push 2
push eax
call fcn.0040999b
mov ecx, dword [ebp - 0x118]
add esp, 0xc
push dword [eax + 0xc]
mov ecx, dword [ecx + 4]
push dword [eax + 8]
mov eax, dword [eax]
lea ecx, [ebp + ecx - 0x118]
push ecx
call eax
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x118]
mov eax, dword [eax + 4]
add ecx, eax
add esp, 0xc
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
push esi
lea ecx, [ebp - 0x118]
call fcn.004023a0
inc edi
cmp edi, 6
jl 0x401cb0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [ebx + 0x10c]
mov byte [ebp - 4], 0xa
cmp byte [edx], 0
jne 0x401d64
xor eax, eax
jmp 0x401d79
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401d70
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x40]
call fcn.004095a0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x128]
call fcn.00403250
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x401e02
cmp dword [ebp - 0x14], 0x10
jb 0x401dac
push dword [ebp - 0x28]
call fcn.0040a1cb
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp dword [esi + 0x14], 0x10
jae 0x401dda
mov eax, dword [esi + 0x10]
inc eax
je 0x401de5
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0040a220
add esp, 0xc
jmp 0x401de5
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0x44], 0x10
jb 0x401e13
push dword [ebp - 0x58]
call fcn.0040a1cb
add esp, 4
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
call fcn.004050a0
cmp eax, dword [ebp - 0x68]
je 0x401ede
cmp dword [eax + 0x24], 0x10
mov ecx, dword [eax + 0x20]
lea edx, [eax + 0x10]
mov dword [ebp - 0x74], ecx
jb 0x401e3c
mov edx, dword [edx]
cmp dword [ebp - 0x14], 0x10
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
cmp dword [ebp - 0x18], ecx
mov ebx, ecx
cmovb ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401eb3
sub ebx, 4
jb 0x401e71
lea esp, [esp]
mov ecx, dword [edi]
cmp ecx, dword [edx]
jne 0x401e76
add edi, 4
add edx, 4
sub ebx, 4
jae 0x401e60
cmp ebx, 0xfffffffc
je 0x401eaa
mov cl, byte [edi]
cmp cl, byte [edx]
jne 0x401ea3
cmp ebx, 0xfffffffd
je 0x401eaa
mov cl, byte [edi + 1]
cmp cl, byte [edx + 1]
jne 0x401ea3
cmp ebx, 0xfffffffe
je 0x401eaa
mov cl, byte [edi + 2]
cmp cl, byte [edx + 2]
jne 0x401ea3
cmp ebx, 0xffffffff
je 0x401eaa
mov cl, byte [edi + 3]
cmp cl, byte [edx + 3]
je 0x401eaa
sbb ecx, ecx
or ecx, 1
jmp 0x401eac
xor ecx, ecx
test ecx, ecx
jne 0x401ec9
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x18]
cmp edx, ecx
jae 0x401ebf
or ecx, 0xffffffff
jmp 0x401ec7
xor ecx, ecx
cmp edx, dword [ebp - 0x74]
setne cl
test ecx, ecx
sets cl
test cl, cl
jne 0x401ede
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x130]
jmp 0x401eed
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x138]
cmp dword [eax], esi
jne 0x401f1c
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x40]
push eax
call fcn.00402550
movzx eax, byte [0x42ed5a]
push eax
lea eax, [ebp - 0x28]
push eax
push ecx
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x68]
call fcn.00406d40
cmp dword [ebp - 0x14], 0x10
mov ebx, dword [ebp - 0x70]
mov ebx, dword [ebx]
mov dword [ebp - 0x70], ebx
jb 0x401f35
push dword [ebp - 0x28]
call fcn.0040a1cb
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x401f58
push dword [ebp - 0x40]
call fcn.0040a1cb
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x12c], eax
test byte [ebp - 0xd4], 1
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
je 0x401fb8
mov eax, dword [ebp - 0x104]
push dword [eax]
call fcn.0040a1cb
add esp, 4
mov eax, dword [ebp - 0x104]
mov dword [eax], 0
mov eax, dword [ebp - 0xf4]
mov dword [eax], 0
mov eax, dword [ebp - 0xe4]
mov dword [eax], 0
mov eax, dword [ebp - 0x100]
mov dword [eax], 0
mov eax, dword [ebp - 0xf0]
mov dword [eax], 0
mov eax, dword [ebp - 0xe0]
mov dword [eax], 0
mov esi, dword [ebp - 0xdc]
and dword [ebp - 0xd4], 0xfffffffe
mov dword [ebp - 0xd8], 0
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
test esi, esi
je 0x402045
mov ecx, dword [esi]
test ecx, ecx
je 0x40203c
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40203c
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
push esi
call fcn.0040a1cb
add esp, 4
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x12c], eax
mov eax, dword [ebp - 0x118]
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 - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x11c], eax
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x12c], eax
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 0xc0], vtable.std::ios_base.0
call fcn.0040991c
add esp, 4
test ebx, ebx
je 0x402166
mov edi, dword [ebp - 0x78]
jmp 0x401a02
and eax, ecx
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 0x42dbc8
test al, 4
je 0x40211c
lea eax, [ebp - 0x60]
push eax
push str.ios_base::badbit_set
lea ecx, [ebp - 0x17c]
call fcn.00408cc0
push 0x429fb4
lea eax, [ebp - 0x17c]
push eax
call fcn.0040c14b
test al, 2
lea eax, [ebp - 0x60]
push eax
je 0x402145
push str.ios_base::failbit_set
lea ecx, [ebp - 0x168]
call fcn.00408cc0
push 0x429fb4
lea eax, [ebp - 0x168]
push eax
call fcn.0040c14b
push str.ios_base::eofbit_set
lea ecx, [ebp - 0x154]
call fcn.00408cc0
push 0x429fb4
lea eax, [ebp - 0x154]
push eax
call fcn.0040c14b
push dword [ebp - 0x5c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x68]
push eax
push dword [eax]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x68]
call fcn.00404fe0
push dword [ebp - 0x68]
call fcn.0040a1cb
add esp, 4
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.0040a1bc
mov esp, ebp
pop ebp
ret