Function at 0x401850
Capabilities:
Check os version
Get local ipv4 addresses
Get mac address on windows

Disassembly:
sub esp, 0xd0
mov eax, dword [0x501230]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd4]
push 0x90
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x18], 0x94
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4018b0
cmp dword [esp + 0x28], 2
jne 0x4018b0
cmp dword [esp + 0x1c], 5
mov dword [esp + 8], 1
jbe 0x4018b8
mov dword [esp + 8], 0
push ebx
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov eax, 0x3a98
push ebp
push esi
push edi
xor esi, esi
mov dword [esp + 0x14], eax
nop dword [eax]
push eax
call fcn.00407e00
add esp, 4
mov ebp, eax
lea eax, [esp + 0x14]
mov dword [esp + 0x24], ebp
push eax
push ebp
push 0
push 0x2e
push 0
call ebx
mov edi, eax
inc esi
cmp edi, 0x6f
jne 0x40190a
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp esi, 3
jae 0x40190e
mov eax, dword [esp + 0x14]
jmp 0x4018d0
test edi, edi
je 0x40191f
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, edi
jmp 0x401a80
mov ecx, ebp
mov dword [esp + 0x10], ecx
test ebp, ebp
je 0x401a74
nop dword [eax]
cmp dword [ecx + 0x40], 0x18
je 0x401a61
cmp dword [ecx + 0x44], 1
jne 0x401a61
mov ebp, dword [ecx + 0x34]
xorps xmm0, xmm0
xor esi, esi
movups xmmword [esp + 0xbc], xmm0
movups xmmword [esp + 0xcc], xmm0
test ebp, ebp
je 0x401998
lea edi, [esp + 0xbc]
mov ebx, 3
mov eax, edi
sub ebx, eax
lea eax, [ebx + edi]
cmp eax, 0x20
jae 0x4019a0
movzx eax, byte [ecx + esi + 0x2c]
push eax
push str._02X
push edi
call fcn.00402f80
mov ecx, dword [esp + 0x1c]
inc esi
add esp, 0xc
add edi, 2
cmp esi, ebp
jb 0x401970
mov byte [esp + esi*2 + 0xbc], 0
mov ebp, dword [ecx + 0x10]
test ebp, ebp
je 0x401a61
nop dword [eax + eax]
push dword [ebp + 0xc]
call fcn.00406b30
mov edi, eax
add esp, 4
test edi, edi
je 0x401a52
push dword [esp + 0x20]
call fcn.004054c0
mov esi, eax
xor ebx, ebx
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esi], edi
cmp dword [esp + 0x18], ebx
je 0x401a99
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x8c]
test esi, esi
je 0x401a2c
push edi
call fcn.00406f20
mov ecx, dword [esi + 0xc]
add esp, 4
cmp word [ecx], ax
jne 0x401a25
mov eax, dword [esi + 0x14]
cmp eax, ebx
jbe 0x401a25
push eax
push edi
call fcn.00406f60
push dword [esi + 0xc]
push edi
call fcn.00407080
add esp, 0x10
test eax, eax
je 0x401a25
mov ebx, dword [esi + 0x14]
mov esi, dword [esi + 8]
test esi, esi
jne 0x4019f3
mov esi, dword [esp + 0x1c]
push ebx
push edi
call fcn.00406f60
lea ecx, [esp + 0xc4]
add esp, 8
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx + 3], al
test al, al
jne 0x401a45
mov ebp, dword [ebp + 8]
test ebp, ebp
jne 0x4019b0
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x401930
mov ebp, dword [esp + 0x24]
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c75e8
add esp, 0xd0
ret
movzx ebx, byte [ebp + 0x2c]
jmp 0x401a30