Function at 0x40aec0
Capabilities:
Check os version
Get local ipv4 addresses
Get mac address on windows
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4df321
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x388], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x3a0]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x10
push ebx
mov dword [esp + 0x30], ebx
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x40b325
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004b3d9e
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
cmp esi, ebx
je 0x40b325
lea edx, [esp + 0x1c]
push edx
push esi
push ebx
push 0x10
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
jne 0x40b31c
mov ebp, esi
mov dword [esp + 0x14], ebp
jmp 0x40af57
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x38]
and eax, 4
cmp al, 4
jne 0x40b30d
lea ecx, [esp + 0x64]
push ecx
call fcn.0040ae20
mov dword [esp + 0x3a8], ebx
mov edx, dword [ebp + 0x28]
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40af80
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x6c]
call fcn.004020b0
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x40b058
mov esi, dword [edi + 0xc]
mov ebp, dword [edi + 0x10]
lea edx, [esp + 0x5c]
mov dword [esp + 0x18], 0x50
test edx, edx
je 0x40b049
lea eax, [esp + 0x80]
test eax, eax
je 0x40afff
cmp word [esi], 2
jne 0x40afff
movzx ecx, byte [esi + 7]
movzx edx, byte [esi + 6]
movzx eax, byte [esi + 5]
push ecx
movzx ecx, byte [esi + 4]
push edx
push eax
push ecx
push str._d._d._d._d
mov eax, 0x20
lea ebx, [esp + 0x94]
call fcn.0040adc0
add esp, 0x14
xor ebx, ebx
lea edx, [esp + 0xa0]
test edx, edx
je 0x40b049
cmp dword [esp + 0x18], ebx
je 0x40b049
cmp word [esi], 0x17
jne 0x40b049
lea eax, [esp + 0x13c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40b049
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xa4]
push edx
push ebx
push ebp
push esi
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edi, dword [edi + 8]
cmp edi, ebx
jne 0x40afa5
mov ebp, dword [esp + 0x14]
mov ebp, dword [ebp + 0x1c]
cmp ebp, ebx
je 0x40b252
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 0x62
lea ecx, [esp + 0x2d2]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x2d8], ax
call fcn.004b4970
add esp, 0xc
push 0x62
lea eax, [esp + 0x33a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x340], dx
call fcn.004b4970
lea ecx, [esp + 0x68]
add esp, 0xc
mov eax, 0x32
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x40b13d
lea edx, [esp + 0x2cc]
test edx, edx
je 0x40b0f3
cmp word [esi], 2
jne 0x40b0f3
movzx ecx, byte [esi + 7]
movzx edx, byte [esi + 6]
push ecx
movzx ecx, byte [esi + 5]
push edx
movzx edx, byte [esi + 4]
push ecx
push edx
push str._d._d._d._d
lea ebx, [esp + 0x2e0]
call fcn.0040adc0
add esp, 0x14
xor ebx, ebx
lea eax, [esp + 0x334]
test eax, eax
je 0x40b13d
cmp dword [esp + 0x18], ebx
je 0x40b13d
cmp word [esi], 0x17
jne 0x40b13d
lea ecx, [esp + 0x13c]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40b13d
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x338]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor ecx, ecx
lea esi, [ecx + 7]
cmp cx, word [esp + 0x2cc]
je 0x40b1ba
xor edx, edx
lea eax, [esp + 0x2cc]
mov word [esp + 0x44], dx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b165
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2d0]
push eax
lea ecx, [esp + 0x48]
call fcn.004020b0
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0xf4]
mov byte [esp + 0x3ac], 1
call fcn.0040b3f0
mov byte [esp + 0x3a8], bl
cmp dword [esp + 0x58], 8
jb 0x40b1ba
mov edx, dword [esp + 0x44]
push edx
call fcn.004b3716
add esp, 4
xor eax, eax
cmp ax, word [esp + 0x334]
je 0x40b247
xor ecx, ecx
lea eax, [esp + 0x334]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b1e3
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x338]
push edx
lea ecx, [esp + 0x2c]
call fcn.004020b0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xf4]
mov byte [esp + 0x3ac], 2
call fcn.0040b3f0
mov byte [esp + 0x3a8], bl
cmp dword [esp + 0x3c], 8
jb 0x40b238
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004b3716
add esp, 4
xor edx, edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], dx
mov ebp, dword [ebp + 8]
cmp ebp, ebx
jne 0x40b063
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x34], 6
lea ebx, [esp + 0x108]
jne 0x40b295
movzx ecx, byte [eax + 0x31]
movzx edx, byte [eax + 0x30]
push ecx
movzx ecx, byte [eax + 0x2f]
push edx
movzx edx, byte [eax + 0x2e]
push ecx
movzx ecx, byte [eax + 0x2d]
push edx
movzx edx, byte [eax + 0x2c]
push ecx
push edx
push str._02X__02X__02X__02X__02X__02X
mov eax, 0x30
call fcn.0040adc0
add esp, 0x1c
jmp 0x40b2cf
movzx ecx, byte [eax + 0x33]
movzx edx, byte [eax + 0x32]
push ecx
movzx ecx, byte [eax + 0x31]
push edx
movzx edx, byte [eax + 0x30]
push ecx
movzx ecx, byte [eax + 0x2f]
push edx
movzx edx, byte [eax + 0x2e]
push ecx
movzx ecx, byte [eax + 0x2d]
push edx
movzx edx, byte [eax + 0x2c]
push ecx
push edx
push str._02X__02X__02X__02X__02X__02X__02X__02X
mov eax, 0x30
call fcn.0040adc0
add esp, 0x24
lea ebx, [esp + 0x64]
call fcn.0040b510
lea ecx, [esp + 0xf0]
mov dword [esp + 0x3a8], 0xffffffff
call fcn.00401e00
cmp dword [esp + 0x7c], 8
jb 0x40b303
mov eax, dword [esp + 0x68]
push eax
call fcn.004b3716
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x40af53
push esi
call fcn.004b3730
add esp, 4
mov ecx, dword [esp + 0x3a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x388]
xor ecx, esp
call fcn.004b3721
add esp, 0x398
ret