Function at 0x406150
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x465bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47e4f0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x18], 0
call fcn.00402c70
lea eax, [esp + 0x38]
push eax
call fcn.00406690
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x60], 0
call fcn.00405f00
add esp, 4
test eax, eax
jne 0x4061d3
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x60], 0xffffffff
call fcn.004066f0
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x288
push 0
mov dword [esp + 0x24], 0x288
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov edi, eax
mov dword [esp + 0x28], edi
test edi, edi
jne 0x406225
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x60], 0xffffffff
call fcn.004066f0
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x406257
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x1c]
push edx
push 0
call ebx
push eax
call esi
mov dword [esp + 0x28], eax
test eax, eax
je 0x4061fd
mov edi, eax
lea ecx, [esp + 0x1c]
push ecx
push edi
mov dword [esp + 0x2c], 1
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4064c6
mov esi, edi
test edi, edi
je 0x4064d6
lea esp, [esp]
mov edi, dword [esp + 0x44]
cmp edi, dword [esp + 0x48]
jbe 0x40628f
call fcn.00446257
mov ebp, dword [esp + 0x38]
mov ebx, edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebx
lea ecx, [ecx]
mov edi, dword [esp + 0x48]
cmp dword [esp + 0x44], edi
jbe 0x4062af
call fcn.00446257
test ebp, ebp
je 0x4062b9
cmp ebp, dword [esp + 0x38]
je 0x4062be
call fcn.00446257
cmp ebx, edi
je 0x4064b2
cmp dword [esi + 0x190], 6
jne 0x406325
lea edx, [esp + 0x2c]
lea ecx, [esi + 8]
push edx
call fcn.004065d0
mov byte [esp + 0x5c], 1
or dword [esp + 0x18], 1
mov edi, dword [eax]
test ebp, ebp
jne 0x406320
call fcn.00446257
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4062fd
call fcn.00446257
xor eax, eax
test edi, edi
setne al
test eax, eax
je 0x406510
mov eax, dword [ebx]
push edi
push eax
call fcn.00448bb3
add esp, 8
test eax, eax
jne 0x406325
mov bl, 1
jmp 0x406327
mov eax, dword [ebp]
jmp 0x4062f3
xor bl, bl
mov dword [esp + 0x5c], 0
test byte [esp + 0x18], 1
je 0x40635b
mov eax, dword [esp + 0x2c]
and dword [esp + 0x18], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40635b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x406486
mov eax, dword [esi + 0x1a0]
xor ebp, ebp
cmp eax, 0x47
je 0x40639d
cmp eax, 6
jne 0x406482
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push 0x4721ac
lea edi, [esi + 0x10c]
push edi
call ebx
test eax, eax
jne 0x40639d
push 0x4721b4
push edi
call ebx
test eax, eax
je 0x4063a2
mov ebp, 1
cmp dword [esp + 0x24], 0
jne 0x4063b1
test ebp, ebp
jne 0x406482
mov edx, dword [0x48134c]
mov eax, dword [edx + 0xc]
mov ecx, 0x48134c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x5c], 2
movzx ecx, byte [esi + 0x199]
movzx edx, byte [esi + 0x198]
movzx eax, byte [esi + 0x197]
push ecx
movzx ecx, byte [esi + 0x196]
push edx
movzx edx, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push 0x472100
push ecx
call fcn.00403850
mov ebx, dword [esp + 0x84]
mov eax, dword [ebx]
mov edi, dword [esp + 0x40]
add esp, 0x20
cmp dword [eax - 0xc], 0
je 0x40644a
cmp dword [esp + 0x24], 1
jne 0x40642d
test ebp, ebp
je 0x40644a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x406510
push eax
push edi
call fcn.0044cae4
add esp, 8
test eax, eax
jge 0x406456
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call fcn.004067f0
xor eax, eax
test ebp, ebp
setne al
mov byte [esp + 0x5c], 0
or edx, 0xffffffff
mov dword [esp + 0x24], eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406482
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x30]
test ebp, ebp
jne 0x4064ad
call fcn.00446257
xor eax, eax
mov ecx, dword [esp + 0x34]
cmp ecx, dword [eax + 0x10]
jb 0x40649f
call fcn.00446257
add dword [esp + 0x34], 4
mov ebx, dword [esp + 0x34]
jmp 0x4062a0
mov eax, dword [ebp]
jmp 0x406491
mov esi, dword [esi]
test esi, esi
jne 0x406280
mov edi, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test edi, edi
je 0x4064d6
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
mov eax, dword [eax - 0xc]
xor ecx, ecx
test eax, eax
setne cl
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x60], 0xffffffff
mov esi, ecx
call fcn.004066f0
mov eax, esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push 0x80004005
call fcn.00403db0
int3