Function at 0x417920
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c896c
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x660124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x38
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.0059e610
add esp, 0xc
lea ecx, [ebp - 0x9c]
call fcn.004177b0
mov dword [ebp - 0x44], 0x288
push 0x288
test eax, eax
je 0x417aea
call fcn.005aa45f
mov edi, eax
add esp, 4
mov dword [ebp - 0x4c], edi
test edi, edi
jne 0x417998
xor eax, eax
jmp 0x417c53
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x44]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x4179c4
push edi
call fcn.005a4605
push dword [ebp - 0x44]
call fcn.005aa45f
mov edi, eax
mov dword [ebp - 0x4c], eax
add esp, 8
test edi, edi
je 0x417991
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
push edi
call esi
test eax, eax
jne 0x417aab
test edi, edi
je 0x417ab8
xor al, al
mov ebx, edi
mov byte [ebp - 0x45], al
nop dword [eax + eax]
test al, al
jne 0x417aa8
lea esi, [ebx + 0x1d4]
nop
lea eax, [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, dword [ebp - 0x90]
jne 0x417a91
push dword [ebx + 0x190]
lea edx, [ebx + 0x194]
lea ecx, [ebp - 0x64]
call fcn.00417890
add esp, 4
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x417a72
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x417a57
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004030b0
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00403040
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
jb 0x417a8b
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.004030b0
cmp dword [ebp - 0x18], 0
ja 0x417ad1
mov esi, dword [esi]
test esi, esi
jne 0x417a10
mov al, byte [ebp - 0x45]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x417a00
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x417ab8
push edi
call fcn.005a4605
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x417c48
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
jmp 0x417c43
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
mov ecx, 0x67fb44
push eax
call fcn.00402f10
mov al, 1
mov byte [ebp - 0x45], al
jmp 0x417a9e
call fcn.005aa45f
mov edi, eax
add esp, 4
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x417991
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x44]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x417b2f
push edi
call fcn.005a4605
push dword [ebp - 0x44]
call fcn.005aa45f
mov edi, eax
mov dword [ebp - 0x4c], eax
add esp, 8
test edi, edi
je 0x417991
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 2
push eax
push edi
call esi
test eax, eax
jne 0x417c26
test edi, edi
je 0x417c33
push dword [edi + 0x190]
lea edx, [edi + 0x194]
mov byte [ebp - 0x45], al
lea ecx, [ebp - 0x64]
mov ebx, edi
call fcn.00417890
add esp, 4
mov ecx, 0x67fb44
push eax
call fcn.00403e10
lea ecx, [ebp - 0x64]
call fcn.00402c10
mov al, byte [ebp - 0x45]
test al, al
jne 0x417c23
lea esi, [ebx + 0x1d4]
push dword [ebx + 0x190]
lea eax, [ebx + 0x194]
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.00417890
add esp, 4
mov edi, eax
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x417bf1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x417bd6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004030b0
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00403040
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
jb 0x417c0a
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.004030b0
cmp dword [ebp - 0x30], 0
ja 0x417c6f
mov esi, dword [esi]
test esi, esi
jne 0x417b9f
mov al, byte [ebp - 0x45]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x417b91
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x417c33
push edi
call fcn.005a4605
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x417c48
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004030b0
xor eax, eax
cmp dword [0x67fb54], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005846b2
mov esp, ebp
pop ebp
ret
mov al, 1
mov byte [ebp - 0x45], al
jmp 0x417c19