Function at 0x406170
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x46841b
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4814f0]
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.00402c90
lea eax, [esp + 0x38]
push eax
call fcn.004066b0
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x60], 0
call fcn.00405f20
add esp, 4
test eax, eax
jne 0x4061f3
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x60], 0xffffffff
call fcn.00406710
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 0x406245
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x60], 0xffffffff
call fcn.00406710
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 0x406277
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 0x40621d
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 0x4064e6
mov esi, edi
test edi, edi
je 0x4064f6
lea esp, [esp]
mov edi, dword [esp + 0x44]
cmp edi, dword [esp + 0x48]
jbe 0x4062af
call fcn.00448717
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 0x4062cf
call fcn.00448717
test ebp, ebp
je 0x4062d9
cmp ebp, dword [esp + 0x38]
je 0x4062de
call fcn.00448717
cmp ebx, edi
je 0x4064d2
cmp dword [esi + 0x190], 6
jne 0x406345
lea edx, [esp + 0x2c]
lea ecx, [esi + 8]
push edx
call fcn.004065f0
mov byte [esp + 0x5c], 1
or dword [esp + 0x18], 1
mov edi, dword [eax]
test ebp, ebp
jne 0x406340
call fcn.00448717
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40631d
call fcn.00448717
xor eax, eax
test edi, edi
setne al
test eax, eax
je 0x406530
mov eax, dword [ebx]
push edi
push eax
call fcn.0044b14d
add esp, 8
test eax, eax
jne 0x406345
mov bl, 1
jmp 0x406347
mov eax, dword [ebp]
jmp 0x406313
xor bl, bl
mov dword [esp + 0x5c], 0
test byte [esp + 0x18], 1
je 0x40637b
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 0x40637b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4064a6
mov eax, dword [esi + 0x1a0]
xor ebp, ebp
cmp eax, 0x47
je 0x4063bd
cmp eax, 6
jne 0x4064a2
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push 0x4755ec
lea edi, [esi + 0x10c]
push edi
call ebx
test eax, eax
jne 0x4063bd
push 0x4755f4
push edi
call ebx
test eax, eax
je 0x4063c2
mov ebp, 1
cmp dword [esp + 0x24], 0
jne 0x4063d1
test ebp, ebp
jne 0x4064a2
mov edx, dword [0x484394]
mov eax, dword [edx + 0xc]
mov ecx, 0x484394
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 0x475540
push ecx
call fcn.00403870
mov ebx, dword [esp + 0x84]
mov eax, dword [ebx]
mov edi, dword [esp + 0x40]
add esp, 0x20
cmp dword [eax - 0xc], 0
je 0x40646a
cmp dword [esp + 0x24], 1
jne 0x40644d
test ebp, ebp
je 0x40646a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x406530
push eax
push edi
call fcn.0044f14d
add esp, 8
test eax, eax
jge 0x406476
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call fcn.00406810
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 0x4064a2
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 0x4064cd
call fcn.00448717
xor eax, eax
mov ecx, dword [esp + 0x34]
cmp ecx, dword [eax + 0x10]
jb 0x4064bf
call fcn.00448717
add dword [esp + 0x34], 4
mov ebx, dword [esp + 0x34]
jmp 0x4062c0
mov eax, dword [ebp]
jmp 0x4064b1
mov esi, dword [esi]
test esi, esi
jne 0x4062a0
mov edi, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test edi, edi
je 0x4064f6
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.00406710
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.00403dd0
int3