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

Disassembly:
sub esp, 0x254
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor edx, edx
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], edx
rep stosd dword es:[edi], eax
mov ecx, ebp
mov esi, dword [esp + 0x30]
lea ebx, [ebp + 0x10]
or esi, 2
mov dword [ecx], eax
mov edi, ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x34], edx
mov dword [ecx + 4], eax
mov dword [esp + 0x38], 1
mov dword [esp + 0x30], esi
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, 0xc
rep stosd dword es:[edi], eax
mov eax, dword [0x100477f4]
cmp eax, edx
jne 0x1001e8aa
mov eax, dword [0x100477f0]
mov dword [esp + 0x18], str.getaddrinfo
cmp eax, edx
mov dword [esp + 0x1c], 0x10020030
mov dword [esp + 0x20], str.getnameinfo
mov dword [esp + 0x24], 0x10020770
mov dword [esp + 0x28], str.freeaddrinfo
mov dword [esp + 0x2c], 0x1001ffe0
jne 0x1001e8a0
lea edx, [esp + 0x15c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001e896
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 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 dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1001e7da
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1001e85a
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 dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1001e896
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1001e85a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1001e896
xor ebp, ebp
lea edi, [esp + 0x1c]
mov ecx, dword [edi - 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [edi], eax
je 0x1001ea6e
inc ebp
add edi, 8
cmp ebp, 3
jl 0x1001e860
xor eax, eax
mov edx, dword [esp + eax + 0x1c]
mov dword [eax + 0x1003626c], edx
add eax, 8
cmp eax, 0x18
jl 0x1001e880
mov ebp, dword [esp + 0x10]
mov dword [0x100477f0], 1
mov eax, dword [0x1003626c]
mov dword [0x100477f4], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x26c]
push edx
push 0
push ecx
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test esi, esi
jne 0x1001eac9
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x18]
add edx, 8
mov ecx, dword [edx]
mov dword [ebp], ecx
mov ecx, dword [edx + 4]
mov dword [ebp + 4], ecx
mov ecx, dword [edx + 8]
mov dword [ebp + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [ebp + 0xc], edx
mov eax, dword [eax + 0x14]
push eax
push 0x10036174
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x100477ec]
mov ebp, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x1001eac2
mov eax, dword [0x100477f0]
mov dword [esp + 0x18], str.getaddrinfo
test eax, eax
mov dword [esp + 0x1c], 0x10020030
mov dword [esp + 0x20], str.getnameinfo
mov dword [esp + 0x24], 0x10020770
mov dword [esp + 0x28], str.freeaddrinfo
mov dword [esp + 0x2c], 0x1001ffe0
jne 0x1001eab8
lea ecx, [esp + 0x15c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001eaae
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 0x1001e9f2
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1001ea7a
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 0x1001eaae
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1001ea7a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1001eaae
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1001e892
xor ebx, ebx
lea edi, [esp + 0x1c]
mov ecx, dword [edi - 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [edi], eax
je 0x1001ea65
inc ebx
add edi, 8
cmp ebx, 3
jl 0x1001ea80
xor eax, eax
mov edx, dword [esp + eax + 0x1c]
mov dword [eax + 0x1003626c], edx
add eax, 8
cmp eax, 0x18
jl 0x1001ea9c
mov dword [0x100477f0], 1
mov eax, dword [0x1003627c]
mov dword [0x100477ec], eax
push ebp
call eax
mov ebp, dword [esp + 0x10]
mov ecx, ebp
call fcn.1001ebc0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x254
ret 4