Function at 0x40b000
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x50]
push ebx
push ebp
mov ebx, ecx
push esi
push edi
test eax, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x8005
jne 0x40b051
mov edx, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x48]
mov eax, edx
cmp eax, edx
je 0x40b047
mov esi, eax
mov edi, ecx
add eax, 0xc
add ecx, 0xc
mov ebp, dword [esi]
cmp eax, edx
mov dword [edi], ebp
mov ebp, dword [esi + 4]
mov dword [edi + 4], ebp
mov esi, dword [esi + 8]
mov dword [edi + 8], esi
jne 0x40b029
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x4c], ecx
mov dword [esp + 0x24], eax
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x280
mov dword [esp + 0x20], 0x280
call esi
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
je 0x40b488
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40b0b3
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov edx, dword [esp + 0x20]
push edx
call esi
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x40b47a
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ecx
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x40b47a
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], 0x8006
mov dword [esp + 0x24], edx
mov ebp, dword [esp + 0x24]
mov cl, byte [ebp + 0x1b0]
lea eax, [ebp + 0x1b0]
test cl, cl
je 0x40b468
mov cl, byte [ebp + 0x1d8]
lea esi, [ebp + 0x1d8]
test cl, cl
je 0x40b468
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call edi
add ebp, 0x194
mov dword [esp + 0x30], eax
push esi
mov eax, dword [ebp]
mov dword [esp + 0x2c], eax
mov cx, word [ebp + 4]
mov word [esp + 0x30], cx
call edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x60]
test eax, eax
je 0x40b293
push 3
lea edx, [esp + 0x38]
push 0xa
push edx
push esi
lea ecx, [ebx + 4]
call fcn.0042f5a0
test eax, eax
je 0x40b468
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x38]
xor ebp, ebp
add ebx, 0x34
mov dword [esp + 0x20], ebp
test edi, edi
je 0x40b20e
mov ecx, dword [ebx + 8]
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebp, edx
jae 0x40b20e
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov esi, dword [edx + 0x38]
add esi, ecx
mov ecx, dword [esp + 0x3c]
cmp dword [esi + 0xc], ecx
je 0x40b1a9
mov eax, dword [esp + 0x20]
inc ebp
add eax, 0x1c
mov dword [esp + 0x20], eax
jmp 0x40b15d
mov ecx, 3
lea edi, [esp + 0x34]
xor eax, eax
repe cmpsw word [esi], word es:[edi]
je 0x40b280
mov ecx, dword [edx + 0x38]
lea eax, [ebp*8]
mov esi, dword [esp + 0x34]
sub eax, ebp
shl eax, 2
mov dword [esp + 0x14], 0x8007
lea ecx, [ecx + eax + 6]
mov dword [ecx], esi
mov si, word [esp + 0x38]
mov word [ecx + 4], si
mov ecx, dword [edx + 0x38]
add ecx, eax
mov eax, dword [esp + 0x34]
mov dword [ecx], eax
mov ax, word [esp + 0x38]
mov word [ecx + 4], ax
lea eax, [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x10]
jmp 0x40b468
mov edx, dword [esp + 0x30]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], ecx
mov cx, word [esp + 0x38]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x28]
mov word [esp + 0x44], cx
lea ecx, [esp + 0x40]
mov dword [esp + 0x50], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x40], eax
mov ax, word [esp + 0x2c]
push ecx
push 1
push edx
mov ecx, ebx
mov word [esp + 0x60], ax
call fcn.0040b4c0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
sub eax, 0x8007
neg eax
sbb eax, eax
and eax, 0xffff7ff9
add eax, 0x8007
mov dword [esp + 0x14], eax
lea eax, [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x10]
jmp 0x40b468
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x50]
lea esi, [ebx + 0x44]
sub edx, ecx
mov eax, 0x2aaaaaab
mov edi, ecx
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x40b376
mov eax, dword [esi + 4]
test eax, eax
je 0x40b2d9
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 1
mov ebx, edx
ja 0x40b2de
mov ebx, 1
mov ecx, esi
call fcn.0040b4a0
mov ebp, eax
add ebp, ebx
mov eax, ebp
jns 0x40b2ef
xor eax, eax
lea edx, [eax + eax*2]
shl edx, 2
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebx
push edi
push eax
call fcn.0040b7e0
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
push ecx
push 1
push eax
mov ecx, esi
call fcn.0040b830
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 8]
add edx, 0xc
mov ecx, esi
push edx
push eax
push edi
call fcn.0040b7e0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.004209c0
mov eax, dword [esi + 4]
push eax
call fcn.0043a372
lea ecx, [ebp + ebp*2]
add esp, 4
lea edx, [ebx + ecx*4]
mov ecx, esi
mov dword [esi + 0xc], edx
call fcn.0040b4a0
inc eax
mov dword [esi + 4], ebx
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*4]
mov ebx, dword [esp + 0x10]
mov dword [esi + 8], ecx
jmp 0x40b460
mov edx, ecx
mov eax, 0x2aaaaaab
sub edx, edi
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x40b3fb
lea edx, [edi + 0xc]
push edx
push ecx
push edi
mov ecx, esi
call fcn.0040b7e0
mov ebx, dword [esi + 8]
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, esi
sub eax, edx
push eax
push ebx
call fcn.0040b830
mov eax, dword [esi + 8]
cmp edi, eax
je 0x40b3ec
mov edx, dword [esp + 0x28]
mov ecx, edi
add edi, 0xc
mov dword [ecx], edx
mov edx, dword [esp + 0x2c]
cmp edi, eax
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 8], edx
jne 0x40b3cf
mov eax, dword [esi + 8]
mov ebx, dword [esp + 0x10]
add eax, 0xc
mov dword [esi + 8], eax
jmp 0x40b460
lea eax, [ecx - 0xc]
push ecx
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.0040b7e0
mov ecx, dword [esi + 8]
lea eax, [ecx - 0xc]
cmp edi, eax
je 0x40b438
sub eax, 0xc
sub ecx, 0xc
mov edx, eax
mov ebx, ecx
cmp eax, edi
mov ebp, dword [edx]
mov dword [ebx], ebp
mov ebp, dword [edx + 4]
mov dword [ebx + 4], ebp
mov edx, dword [edx + 8]
mov dword [ebx + 8], edx
jne 0x40b416
mov ebx, dword [esp + 0x10]
lea eax, [edi + 0xc]
cmp edi, eax
je 0x40b45c
mov edx, dword [esp + 0x28]
mov ecx, edi
add edi, 0xc
mov dword [ecx], edx
mov edx, dword [esp + 0x2c]
cmp edi, eax
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 8], edx
jne 0x40b43f
add dword [esi + 8], 0xc
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x40b0cb
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, ebx
call fcn.0040a850
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4