Function at 0x1011f660
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub esp, 0x190
test byte [esp + 0x194], 2
je 0x1011f6a3
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1011f697
mov eax, dword [esp]
cmp al, 2
jne 0x1011f691
shr eax, 8
cmp al, 2
je 0x1011f6a3
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
call fcn.10140590
test eax, eax
jne 0x1011f8a5
push esi
push edi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x1011f6d0
mov dword [0x101e2540], esi
jmp 0x1011f808
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadLibraryExA
push edi
call ebp
push 0x101bf9cc
push str.iphlpapi.dll
mov ebx, eax
call fcn.1001eb50
add esp, 8
test eax, eax
je 0x1011f720
test ebx, ebx
je 0x1011f70e
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x1011f7e3
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x1011f7e3
test ebx, ebx
je 0x1011f745
push str.AddDllDirectory
push edi
call ebp
test eax, eax
je 0x1011f745
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x1011f7e3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x1011f7dd
lea ecx, [ebp + 0xd]
push ecx
call dword [0x101da890]
mov edi, eax
add esp, 4
test edi, edi
je 0x1011f7d3
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1011f7d3
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1011f780
sub ecx, edx
mov eax, 0x5c
mov word [ecx + edi], ax
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1011f797
sub ecx, edx
mov edx, str.iphlpapi.dll
sub ecx, edx
add ecx, edi
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x1011f7b0
test ebx, ebx
je 0x1011f7ca
push 8
push 0
push edi
call ebx
jmp 0x1011f7d1
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x101da894]
add esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101e2540], esi
test esi, esi
je 0x1011f806
push str.if_nametoindex
push esi
call ebp
mov ecx, dword [0x101e253c]
test eax, eax
cmovne ecx, eax
mov dword [0x101e253c], ecx
pop ebp
pop ebx
push 0x9c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.10024f30
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [esp + 8], 0x9c
mov dword [esp + 0xc], 6
mov dword [esp + 0x10], 0
push 3
push 2
push 0
push 0
mov dword [esp + 0x28], 2
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push 1
push 8
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
pop edi
pop esi
test eax, eax
je 0x1011f89c
push 0x101e3050
mov byte [0x101e3058], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add esp, 0x190
ret
mov byte [0x101e3058], 0
xor eax, eax
add esp, 0x190
ret