Function at 0x401e30
Capabilities:
Check os version

Disassembly:
sub esp, 0x14c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0xc8]
push eax
mov dword [esp + 0xcc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401f83
cmp dword [esp + 0xcc], 5
jbe 0x402060
mov ebx, dword [esp + 0x160]
xor eax, eax
mov ecx, 0x2a
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
push str.Iphlpapi.dll
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], 2
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401f8a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetIpInterfaceEntry
push esi
call edi
mov ebp, eax
test ebp, ebp
je 0x401fae
push str.SetIpInterfaceEntry
push esi
call edi
test eax, eax
mov dword [esp + 0x14], eax
je 0x401fbc
push str.InitializeIpInterfaceEntry
push esi
call edi
test eax, eax
mov dword [esp + 0x10], eax
je 0x401fca
lea ecx, [esp + 0x20]
push ecx
call ebp
mov edi, eax
test edi, edi
jne 0x401ffc
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov ecx, 0x2a
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x20], edx
call dword [esp + 0x14]
mov edi, eax
test edi, edi
jne 0x402029
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], 2
mov dword [esp + 0xb4], 1
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ecx
call dword [esp + 0x18]
mov edi, eax
test edi, edi
jne 0x402039
mov eax, dword [esp + 0xb0]
push eax
push ebx
push str._PrepareRouteEntry__GetIpInterfaceEntry_AdapterIndex__0x_x__success__Metric__d
push 2
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14c
ret
push str._PrepareRouteEntry__GetVersionEx_fail
jmp 0x401f8f
push str._PrepareRouteEntry__LoadLibrary__Iphlpapi.dll___fail
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._PrepareRouteEntry__GetProcAddress__GetIpInterfaceEntry___fail__error__d
jmp 0x401fd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._PrepareRouteEntry__SetProcAddress__SetIpInterfaceEntry___fail__error__d
jmp 0x401fd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._PrepareRouteEntry__InitializeIpInterfaceEntry__InitializeIpInterfaceEntry___fail__error__d
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
push str._PrepareRouteEntry__GetIpInterfaceEntry_AdapterIndex__0x_x__fail__ret__d__error__d
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x1c
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
push str._PrepareRouteEntry__pFunInitInfEntry_AdapterIndex__0x_x__fail__ret__d__error__d
jmp 0x402047
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
push str._PrepareRouteEntry__SetIpInterfaceEntry_AdapterIndex__0x_x__fail__ret__d__error__d
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14c
ret