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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x599850]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x494109
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4940f6
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4940f0
shr eax, 8
cmp al, 2
je 0x494109
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff754
mov esp, ebp
pop ebp
ret
call fcn.004aba30
test eax, eax
jne 0x494325
push esi
push edi
push 0x544c10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x494136
mov dword [0x5a0a14], esi
jmp 0x494275
push ebx
push 0x544c1c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x544c2c
push str.iphlpapi.dll
mov ebx, eax
call fcn.0051609e
add esp, 8
test eax, eax
je 0x494183
test ebx, ebx
je 0x494171
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x49424d
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x49424d
test ebx, ebx
je 0x4941ac
push str.AddDllDirectory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4941ac
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x49424d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x198], eax
test eax, eax
je 0x49424d
lea ecx, [eax + 0xd]
push ecx
call dword [0x599144]
mov edi, eax
add esp, 4
test edi, edi
je 0x494243
push dword [ebp - 0x198]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x494243
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4941f0
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 0x494207
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 0x494220
test ebx, ebx
je 0x49423a
push 8
push 0
push edi
call ebx
jmp 0x494241
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x599148]
add esp, 4
mov dword [0x5a0a14], esi
pop ebx
test esi, esi
je 0x494275
push str.if_nametoindex
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x5a0a10]
test eax, eax
cmovne ecx, eax
mov dword [0x5a0a10], ecx
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00504e30
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
mov dword [ebp - 0x9c], 6
mov dword [ebp - 0x98], 0
push 3
push 2
push 0
push 0
mov dword [ebp - 0x90], 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, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
pop edi
pop esi
test eax, eax
je 0x49431c
push 0x5a5480
mov byte [0x5a547c], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff754
mov esp, ebp
pop ebp
ret
mov byte [0x5a547c], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff754
mov esp, ebp
pop ebp
ret