Function at 0x10032bf0
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 [0x10065118]
or edx, 2
cmp eax, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 1
mov dword [esp + 0x30], edx
jne 0x10032df4
mov eax, dword [0x10065114]
mov dword [esp + 0x14], str.getaddrinfo
cmp eax, ebx
mov dword [esp + 0x18], 0x10031590
mov dword [esp + 0x1c], str.getnameinfo
mov dword [esp + 0x20], 0x10031cd0
mov dword [esp + 0x24], str.freeaddrinfo
mov dword [esp + 0x28], 0x10031540
je 0x10032c83
mov eax, dword [0x1005093c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10065118], eax
jmp 0x10032dfa
lea eax, [esp + 0x15c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10032dd6
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 0x10032d26
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x10032da4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10032d2c
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 0x10032ddc
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x10032da4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10032ddc
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 0x10032d9b
inc ebx
add edi, 8
cmp ebx, 3
jl 0x10032daa
xor eax, eax
mov edx, dword [esp + eax + 0x18]
mov dword [eax + 0x1005093c], edx
add eax, 8
cmp eax, 0x18
jl 0x10032dc2
jmp 0x10032ddc
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x1005093c]
mov dword [0x10065114], 1
xor ebx, ebx
mov dword [0x10065118], eax
jmp 0x10032dfa
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 0x1003300a
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 0x17
jne 0x10032e62
mov edi, dword [eax + 0x18]
mov esi, dword [esp + 0x26c]
add edi, 8
cmp esi, ebx
je 0x10032e62
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 0x10032e48
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x2c], eax
mov eax, dword [0x10065110]
test eax, eax
jne 0x10033003
mov eax, dword [0x10065114]
mov dword [esp + 0x14], str.getaddrinfo
test eax, eax
mov dword [esp + 0x18], 0x10031590
mov dword [esp + 0x1c], str.getnameinfo
mov dword [esp + 0x20], 0x10031cd0
mov dword [esp + 0x24], str.freeaddrinfo
mov dword [esp + 0x28], 0x10031540
jne 0x10032ff9
lea eax, [esp + 0x15c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10032fef
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 0x10032f47
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x10032fbf
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 0x10032fef
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x10032fbf
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10032fef
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 0x10032fb6
inc ebx
add edi, 8
cmp ebx, 3
jl 0x10032fc5
xor eax, eax
mov edx, dword [esp + eax + 0x18]
mov dword [eax + 0x1005093c], edx
add eax, 8
cmp eax, 0x18
jl 0x10032fdd
mov dword [0x10065114], 1
mov eax, dword [0x1005094c]
mov dword [0x10065110], eax
mov ecx, dword [esp + 0x2c]
push ecx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret