Function at 0x1001ef50
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x254
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x30]
mov eax, dword [0x100477f4]
or edx, 2
cmp eax, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 1
mov dword [esp + 0x30], edx
jne 0x1001f154
mov eax, dword [0x100477f0]
mov dword [esp + 0x14], str.getaddrinfo
cmp eax, ebx
mov dword [esp + 0x18], 0x10020030
mov dword [esp + 0x1c], str.getnameinfo
mov dword [esp + 0x20], 0x10020770
mov dword [esp + 0x24], str.freeaddrinfo
mov dword [esp + 0x28], 0x1001ffe0
je 0x1001efe3
mov eax, dword [0x1003626c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100477f4], eax
jmp 0x1001f15a
lea eax, [esp + 0x15c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001f136
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ws2_32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
and ecx, 3
lea eax, [esp + 0x50]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x1001f086
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x1001f104
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1001f08c
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.wship6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x50]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
test esi, esi
je 0x1001f13c
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x1001f104
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1001f13c
xor ebx, ebx
lea edi, [esp + 0x18]
mov ecx, dword [edi - 4]
push ecx
push esi
call ebp
test eax, eax
mov dword [edi], eax
je 0x1001f0fb
inc ebx
add edi, 8
cmp ebx, 3
jl 0x1001f10a
xor eax, eax
mov edx, dword [esp + eax + 0x18]
mov dword [eax + 0x1003626c], edx
add eax, 8
cmp eax, 0x18
jl 0x1001f122
jmp 0x1001f13c
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x1003626c]
mov dword [0x100477f0], 1
xor ebx, ebx
mov dword [0x100477f4], eax
jmp 0x1001f15a
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x26c]
push edx
push ebx
push ecx
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp esi, ebx
jne 0x1001f36a
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 0x17
jne 0x1001f1c2
mov edi, dword [eax + 0x18]
mov esi, dword [esp + 0x26c]
add edi, 8
cmp esi, ebx
je 0x1001f1c2
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
sub edi, esi
mov ebx, 8
mov dx, word [edi + esi]
push edx
call ebp
mov word [esi], ax
add esi, 2
dec ebx
jne 0x1001f1a8
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x2c], eax
mov eax, dword [0x100477ec]
test eax, eax
jne 0x1001f363
mov eax, dword [0x100477f0]
mov dword [esp + 0x14], str.getaddrinfo
test eax, eax
mov dword [esp + 0x18], 0x10020030
mov dword [esp + 0x1c], str.getnameinfo
mov dword [esp + 0x20], 0x10020770
mov dword [esp + 0x24], str.freeaddrinfo
mov dword [esp + 0x28], 0x1001ffe0
jne 0x1001f359
lea eax, [esp + 0x15c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001f34f
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ws2_32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
and ecx, 3
lea eax, [esp + 0x50]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x1001f2a7
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x1001f31f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.wship6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x50]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
test esi, esi
je 0x1001f34f
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x1001f31f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1001f34f
xor ebx, ebx
lea edi, [esp + 0x18]
mov ecx, dword [edi - 4]
push ecx
push esi
call ebp
test eax, eax
mov dword [edi], eax
je 0x1001f316
inc ebx
add edi, 8
cmp ebx, 3
jl 0x1001f325
xor eax, eax
mov edx, dword [esp + eax + 0x18]
mov dword [eax + 0x1003626c], edx
add eax, 8
cmp eax, 0x18
jl 0x1001f33d
mov dword [0x100477f0], 1
mov eax, dword [0x1003627c]
mov dword [0x100477ec], eax
mov ecx, dword [esp + 0x2c]
push ecx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret