Function at 0x406350
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x57f970]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
xor eax, eax
push edi
mov edi, edx
mov esi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
cmp edi, eax
je 0x40679f
push 1
xor ebp, ebp
push edi
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4063ee
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x4063ea
lea eax, [ebp + 1]
push eax
call fcn.00408cb2
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x40648f
lea eax, [ebp + 1]
push eax
mov eax, dword [esp + 0x1c]
push 0
push eax
call fcn.00508a80
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0
push 0
push ebp
push ecx
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov eax, dword [esp + 0x14]
push eax
call fcn.00408cb2
mov ecx, dword [esp + 0x18]
push ecx
mov edi, eax
push 0
push edi
call fcn.00508a80
add esp, 0x10
lea edx, [esp + 0x14]
push edx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x406496
test edi, edi
je 0x406432
push edi
call fcn.00408cec
add esp, 4
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edx, dword [esp + 0x20]
push edx
call fcn.00408cb2
mov esi, eax
mov eax, dword [esp + 0x24]
push eax
push 0
push esi
call fcn.00508a80
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
push esi
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
je 0x40675d
test esi, esi
je 0x40678e
push esi
call fcn.00408cec
add esp, 4
jmp 0x40678e
mov ebp, eax
jmp 0x4063ee
test edi, edi
je 0x406432
lea ebx, [ebx]
lea eax, [edi + 8]
push ebp
push eax
call fcn.0051f45b
add esp, 8
test eax, eax
je 0x4064bc
mov edi, dword [edi]
test edi, edi
jne 0x4064a0
jmp 0x406432
mov ecx, dword [edi + 0x194]
mov dword [ebx], ecx
mov edx, dword [edi + 0x198]
mov dword [ebx + 4], edx
mov eax, dword [esi]
mov edx, dword [edi + 0x1b0]
add eax, 0xcc
shl eax, 4
mov dword [eax + esi], edx
mov edx, dword [edi + 0x1b4]
mov dword [eax + esi + 4], edx
mov edx, dword [edi + 0x1b8]
mov dword [eax + esi + 8], edx
mov edx, dword [edi + 0x1bc]
mov dword [eax + esi + 0xc], edx
mov edx, dword [edi + 0x1c0]
add eax, esi
mov eax, dword [esi]
lea ecx, [edi + 0x1b0]
add eax, 0xd6
shl eax, 4
mov dword [eax + esi], edx
mov edx, dword [edi + 0x1c4]
mov dword [eax + esi + 4], edx
mov edx, dword [edi + 0x1c8]
add eax, esi
mov dword [eax + 8], edx
mov edx, dword [edi + 0x1cc]
lea ebp, [edi + 0x1c0]
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [eax + 0xc], edx
mov eax, dword [esi]
mov edx, dword [edi + 0x1d8]
add eax, 0xe0
shl eax, 4
add eax, esi
mov dword [eax], edx
mov edx, dword [edi + 0x1dc]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x1e0]
mov dword [eax + 8], edx
mov edx, dword [edi + 0x1e4]
push ecx
mov dword [eax + 0xc], edx
call ebx
mov ecx, dword [esi]
push ebp
mov dword [esi + ecx*4 + 0xea0], eax
call ebx
mov edx, dword [esi]
mov dword [esi + edx*4 + 0xec8], eax
mov eax, dword [esi]
mov ecx, dword [edi + 0x19c]
mov dword [esi + eax*4 + 0xef0], ecx
mov eax, dword [edi + 0x1a4]
mov edx, dword [esi]
mov dword [esi + edx*4 + 0x1058], eax
xor eax, eax
push 1
lea ebp, [edi + 8]
xor ebx, ebx
push ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40662a
push eax
push eax
push 0xffffffffffffffff
push ebp
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40662a
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408cb2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40662a
mov eax, dword [esp + 0x1c]
add eax, 2
push eax
push 0
push ebx
call fcn.00508a80
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
push ebx
push 0xffffffffffffffff
push ebp
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.00406280
mov edx, dword [esi]
mov dword [esi + edx*4 + 0x1080], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
mov ecx, dword [edi + 0x19c]
push 0
push ecx
call sub.IPHLPAPI.DLL_GetPerAdapterInfo
cmp eax, 0x6f
jne 0x406757
mov edx, dword [esp + 0x14]
push edx
call fcn.00408cb2
mov ebp, eax
mov eax, dword [esp + 0x18]
push eax
push 0
push ebp
call fcn.00508a80
mov edx, dword [edi + 0x19c]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push ebp
push edx
call sub.IPHLPAPI.DLL_GetPerAdapterInfo
test eax, eax
jne 0x40674a
lea ebx, [ebp + 0xc]
test ebx, ebx
je 0x40674a
lea edi, [ebx + 4]
mov ecx, 0x55b8d2
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4066f3
test dl, dl
je 0x4066ef
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4066f3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4066d3
xor eax, eax
jmp 0x4066f8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40674a
mov eax, dword [esi]
mov ecx, dword [edi]
shl eax, 4
lea eax, [eax + esi + 0xf18]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebx]
test eax, eax
je 0x40674a
mov ecx, dword [esi]
mov edx, dword [eax + 4]
add eax, 4
shl ecx, 4
lea esi, [ecx + esi + 0xfb8]
mov dword [esi], edx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
test ebp, ebp
je 0x406757
push ebp
call fcn.00408cec
add esp, 4
mov ebp, dword [esp + 0x18]
jmp 0x406786
test esi, esi
je 0x40678e
mov edx, dword [esi + 0xc]
push ebp
push edx
call fcn.0051f45b
add esp, 8
test eax, eax
je 0x40677b
mov esi, dword [esi + 8]
test esi, esi
jne 0x406761
jmp 0x40678e
mov eax, dword [esi + 0x2c]
mov dword [ebx], eax
mov ecx, dword [esi + 0x30]
mov dword [ebx + 4], ecx
mov dword [esp + 0x1c], 1
test ebp, ebp
je 0x40679b
push ebp
call fcn.00408cec
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005072ec
add esp, 0x28
ret 4