Function at 0x401a20
Capabilities:
Check os version
Get local ipv4 addresses
Get mac address on windows
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40ae6c
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x40e028]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x40e028]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push ebx
push 2
mov dword [esp + 0x30], ebx
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x401e36
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00403476
mov edx, dword [esp + 0x20]
add esp, 4
push edx
mov edi, eax
push ebx
push edi
call fcn.00403e80
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push ebx
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, ebx
jne 0x401e36
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x2b0], ebx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
cmp edi, ebx
mov byte [esp + 0x2b0], 1
je 0x401bc4
cmp dword [edi + 0x40], 6
jne 0x401b6c
mov edx, dword [edi + 0x28]
mov eax, edx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401b10
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x80]
call fcn.004025a0
mov ecx, esi
push ecx
lea esi, [esp + 0x24]
mov byte [esp + 0x2b4], 2
call fcn.00401fb0
mov byte [esp + 0x2b0], 1
cmp dword [esp + 0x90], 8
jb 0x401b60
mov edx, dword [esp + 0x7c]
push edx
call fcn.00403471
add esp, 4
cmp dword [edi + 0x40], 6
jne 0x401b6c
cmp dword [edi + 0x44], 1
je 0x401b79
mov edi, dword [edi + 8]
cmp edi, ebx
jne 0x401ae7
jmp 0x401b9b
mov edi, dword [edi + 0x28]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401b81
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x64]
call fcn.004025a0
cmp dword [esp + 0x70], ebx
jne 0x401bf2
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x401bc4
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x401bdb
lea esi, [esp + 0x5c]
call fcn.00401ed0
lea esi, [esp + 0x20]
call fcn.00401f00
jmp 0x401e36
xor edi, edi
lea esi, [esp + 0x20]
call fcn.00401f70
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x64]
call fcn.00402140
push 0x206
lea ecx, [esp + 0x9a]
push ebx
push ecx
mov word [esp + 0xa0], bx
call fcn.00403e80
add esp, 0xc
push 0x104
lea edx, [esp + 0x98]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, 0x103
mov ecx, 0x5c
mov edi, edi
cmp word [esp + eax*2 + 0x94], cx
je 0x401c41
sub eax, 1
jns 0x401c30
jmp 0x401c49
mov word [esp + eax*2 + 0x94], bx
lea edi, [esp + 0x94]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x401c53
push ebx
mov ecx, 7
mov esi, str._autoSetIp.dat
push 0x80
rep movsd dword es:[edi], dword [esi]
push 3
push ebx
push 3
push 0x80000000
lea eax, [esp + 0xac]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x401cdc
cmp dword [esp + 0x74], 8
jb 0x401ca4
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00403471
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
je 0x401e36
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
push edx
call fcn.004030d0
mov eax, dword [esp + 0x28]
add esp, 4
push eax
jmp 0x401e2e
xor ecx, ecx
push ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0x1c
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401deb
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
sub esp, 0x1c
mov byte [esp + 0x2cc], 3
mov edi, esp
sub esp, 0x1c
mov ecx, 7
lea esi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x9c]
mov word [ecx + 4], bx
call fcn.00402140
lea eax, [esp + 0x68]
push eax
call fcn.004011e0
add esp, 0x3c
cmp al, bl
jne 0x401d7b
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x401ddf
jmp 0x401dc1
xor edi, edi
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x401ddf
mov ecx, dword [esp + 0x38]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x401dbb
mov eax, dword [esp + 0x14]
add eax, esi
call fcn.004032d0
add edi, 1
add dword [esp + 0x14], 0x1c
jmp 0x401d81
cmp esi, ebx
je 0x401ddf
mov eax, esi
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
push ecx
call fcn.004030d0
mov edx, dword [esp + 0x38]
add esp, 4
push edx
call fcn.00403471
add esp, 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
cmp dword [esp + 0x74], 8
jb 0x401dff
mov eax, dword [esp + 0x60]
push eax
call fcn.00403471
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
je 0x401e36
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
push ecx
call fcn.004030d0
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call fcn.00403471
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.0040338c
mov esp, ebp
pop ebp
ret