Function at 0x404050
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x40], 0
xor eax, eax
mov word [ebp - 0x2c], ax
xor ecx, ecx
mov dword [ebp - 0x2a], ecx
mov dword [ebp - 0x26], ecx
mov dword [ebp - 0x22], ecx
mov dword [ebp - 0x1e], ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov word [ebp - 0xe], cx
mov dword [ebp - 8], 0
push 0x288
call fcn.00410748
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], 0x288
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x4040f0
mov ecx, dword [ebp - 4]
push ecx
call fcn.004107dc
add esp, 4
mov edx, dword [ebp - 0x34]
push edx
call fcn.00410748
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x40422c
mov edx, dword [ebp - 4]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
je 0x40422c
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp + 8], 0
je 0x404142
mov ecx, dword [ebp - 0x3c]
add ecx, 0x194
mov edx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov cx, word [ecx + 4]
mov word [edx + 4], cx
mov edx, dword [ebp - 0x3c]
add edx, 0x1ac
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0
je 0x404217
mov eax, dword [ebp - 0x40]
add eax, 4
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x4c]
mov al, byte [edx]
mov byte [ebp - 0x51], al
add dword [ebp - 0x4c], 1
cmp byte [ebp - 0x51], 0
jne 0x40416a
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x50]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0x10
jle 0x404198
mov dword [ebp - 0x44], 0x10
mov dword [ebp - 0x48], 0
jmp 0x4041aa
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp - 0x44]
jg 0x4041d9
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0x44]
jne 0x4041c4
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov word [ebp + ecx*2 - 0x2c], ax
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x48]
movsx ax, byte [edx + 4]
mov ecx, dword [ebp - 0x48]
mov word [ebp + ecx*2 - 0x2c], ax
jmp 0x4041a1
lea edx, [ebp - 0x2c]
push edx
call fcn.00404370
add esp, 4
test eax, eax
je 0x404201
lea eax, [ebp - 0x2c]
push eax
push 0x10
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00410647
add esp, 0xc
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x40414e
cmp dword [ebp - 8], 0
jle 0x40421f
jmp 0x40422c
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x3c], edx
jmp 0x404111
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
je 0x404246
mov edx, dword [ebp - 4]
push edx
call fcn.004107dc
add esp, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00410595
mov esp, ebp
pop ebp
ret