Function at 0x405000
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
mov eax, dword [0x42f4cc]
push ebx
push esi
xor eax, ebp
push edi
mov dword [esp + 0x48c], eax
mov eax, dword [ebp + 8]
push 0x4305a4
push 0x280
mov dword [esp + 0x20], eax
call fcn.0041a643
mov esi, eax
add esp, 8
xor eax, eax
test esi, esi
je 0x405573
mov ecx, 0xa0
mov edi, esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
mov edi, esi
push esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0x280
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40508d
push esi
call fcn.00419a1e
mov edx, dword [esp + 0x14]
push edx
call fcn.004199c4
mov edi, eax
add esp, 8
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x14], edi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
mov dword [esp + 0x1c], edi
jne 0x405560
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405571
jmp 0x4050b0
mov ebx, dword [esp + 0xc]
push str.Microsoft
add ebx, 0x10c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x40554e
mov ecx, 0x110
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x1a0]
dec eax
cmp eax, 0x1b
ja case.0x4050f4.2
movzx edx, byte [eax + 0x4055a8]
jmp dword [edx*4 + 0x405588]
lea eax, [esp + 0x20]
mov edx, str.OTHER
mov ecx, eax
mov esi, 0x20
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax + edx]
test cl, cl
je 0x405211
mov byte [eax], cl
inc eax
dec esi
jne 0x405110
jmp 0x405215
lea eax, [esp + 0x20]
mov edx, str.ETHERNET
mov ecx, eax
mov esi, 0x20
sub edx, ecx
jmp 0x405140
mov cl, byte [eax + edx]
test cl, cl
je 0x405211
mov byte [eax], cl
inc eax
dec esi
jne 0x405140
jmp 0x405215
lea eax, [esp + 0x20]
mov edx, str.TOKENRING
mov ecx, eax
mov esi, 0x20
sub edx, ecx
jmp 0x405170
mov cl, byte [eax + edx]
test cl, cl
je 0x405211
mov byte [eax], cl
inc eax
dec esi
jne 0x405170
jmp 0x405215
lea eax, [esp + 0x20]
mov edx, str.FDDI
mov ecx, eax
mov esi, 0x20
sub edx, ecx
mov cl, byte [eax + edx]
test cl, cl
je 0x405211
mov byte [eax], cl
inc eax
dec esi
jne 0x405198
jmp 0x405215
lea eax, [esp + 0x20]
mov edx, 0x428a64
mov ecx, eax
mov esi, 0x20
sub edx, ecx
lea esp, [esp]
mov cl, byte [edx + eax]
test cl, cl
je 0x405211
mov byte [eax], cl
inc eax
dec esi
jne 0x4051c0
jmp 0x405215
lea eax, [esp + 0x20]
mov edx, str.LOOPBACK
mov ecx, eax
mov esi, 0x20
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x405211
mov byte [eax], cl
inc eax
dec esi
jne 0x4051e1
jmp 0x405215
lea eax, [esp + 0x20]
mov edx, str.SLIP
mov ecx, eax
mov esi, 0x20
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x405211
mov byte [eax], cl
inc eax
dec esi
jne 0x405202
jmp 0x405215
test esi, esi
jne 0x405216
dec eax
mov byte [eax], 0
lea eax, [esp + 0x144]
mov edx, ebx
mov ecx, eax
mov esi, 0x104
sub edx, ecx
jmp 0x405230
lea ecx, [esi - 1]
test ecx, ecx
je 0x405246
mov cl, byte [edx + eax]
test cl, cl
je 0x405246
mov byte [eax], cl
inc eax
dec esi
jne 0x405230
jmp 0x40524a
test esi, esi
jne 0x40524b
dec eax
mov edi, dword [esp + 0xc]
mov byte [eax], 0
lea eax, [esp + 0x40]
lea edx, [edi + 8]
mov ecx, eax
mov esi, 0x104
sub edx, ecx
lea ecx, [esi - 1]
test ecx, ecx
je 0x405278
mov cl, byte [edx + eax]
test cl, cl
je 0x405278
mov byte [eax], cl
inc eax
dec esi
jne 0x405262
jmp 0x40527c
test esi, esi
jne 0x40527d
dec eax
mov byte [eax], 0
xor eax, eax
mov dword [esp + 0x46c], eax
mov dword [esp + 0x470], eax
mov dword [esp + 0x474], eax
mov dword [esp + 0x478], eax
mov dword [esp + 0x47c], eax
mov dword [esp + 0x480], eax
xor edx, edx
mov dword [esp + 0x484], eax
mov dword [esp + 0x465], edx
mov dword [esp + 0x488], eax
mov eax, dword [edi + 0x190]
mov word [esp + 0x469], dx
xor esi, esi
test eax, eax
mov byte [esp + 0x464], 0
mov byte [esp + 0x46b], dl
jbe 0x405392
lea ebx, [ebx]
xor ecx, ecx
dec eax
cmp esi, eax
mov dword [esp + 0x464], ecx
mov dword [esp + 0x468], ecx
jae 0x40531f
movzx edx, byte [edi + esi + 0x194]
push edx
push str._02X_
push 8
lea eax, [esp + 0x470]
push eax
jmp 0x405337
movzx ecx, byte [edi + esi + 0x194]
push ecx
push str._02X
push 8
lea edx, [esp + 0x470]
push edx
call fcn.00403400
add esp, 0x10
mov ecx, 0x20
lea eax, [esp + 0x46c]
jmp 0x405350
cmp byte [eax], 0
je 0x40535b
inc eax
dec ecx
jne 0x405350
jmp 0x405383
test ecx, ecx
je 0x405383
mov eax, 0x20
sub eax, ecx
lea ecx, [esp + 0x464]
push ecx
mov edx, 0x20
sub edx, eax
push edx
lea eax, [esp + eax + 0x474]
push eax
call fcn.004030a0
mov eax, dword [edi + 0x190]
inc esi
cmp esi, eax
jb 0x4052f0
lea eax, [esp + 0x46c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4053a0
sub eax, edx
mov dword [esp + 0x14], eax
je 0x40554e
mov edi, str.00_00_00_00_00_00
lea esi, [esp + 0x46c]
mov ecx, 0x12
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40554e
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x44]
push ecx
mov edi, ebx
mov dword [esp + 0x1c], edx
call fcn.00403540
add esp, 8
test eax, eax
je 0x4054bb
mov edi, dword [esp + 0x14]
cmp byte [edi], 0
jne 0x405427
mov al, byte [esp + 0x20]
test al, al
je 0x405427
lea edx, [esp + 0x20]
mov esi, 0x20
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x40541f
mov byte [eax], cl
inc eax
dec esi
jne 0x405410
jmp 0x405423
test esi, esi
jne 0x405424
dec eax
mov byte [eax], 0
mov cl, byte [edi + 0x124]
test cl, cl
lea eax, [edi + 0x124]
jne 0x405467
mov cl, byte [esp + 0x144]
test cl, cl
je 0x405467
lea edx, [esp + 0x144]
mov esi, 0x104
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x40545f
mov byte [eax], cl
inc eax
dec esi
jne 0x405450
jmp 0x405463
test esi, esi
jne 0x405464
dec eax
mov byte [eax], 0
mov cl, byte [edi + 0x228]
test cl, cl
lea eax, [edi + 0x228]
jne 0x40554e
mov cl, byte [esp + 0x248]
test cl, cl
je 0x40554e
lea edx, [esp + 0x248]
mov esi, 0x104
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x4054ae
mov byte [eax], cl
inc eax
dec esi
jne 0x405498
dec eax
mov byte [eax], 0
jmp 0x40554e
test esi, esi
jne 0x4054b3
dec eax
mov byte [eax], 0
jmp 0x40554e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40554e
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x190]
cmp ecx, 6
jbe 0x4054da
mov ecx, 6
mov edx, ecx
shr ecx, 2
lea esi, [eax + 0x194]
lea edi, [esp + 0x450]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x34c]
lea edx, [esp + 0x46c]
mov ecx, eax
mov esi, 0x104
sub edx, ecx
lea esp, [esp]
mov cl, byte [edx + eax]
test cl, cl
je 0x40551f
mov byte [eax], cl
inc eax
dec esi
jne 0x405510
jmp 0x405523
test esi, esi
jne 0x405524
dec eax
mov esi, dword [ebx + 4]
lea edx, [esp + 0x20]
mov byte [eax], 0
mov eax, dword [esi + 4]
push edx
push eax
push esi
mov ecx, ebx
call fcn.00403d30
push 1
mov ecx, ebx
mov edi, eax
call fcn.00404760
mov dword [esi + 4], edi
mov ecx, dword [edi + 4]
mov dword [ecx], edi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4050b0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405571
push eax
call fcn.00419a1e
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004199fa
mov esp, ebp
pop ebp
ret