Function at 0x10036ac0
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 [0x10062324]
cmp eax, edx
jne 0x10036cca
mov eax, dword [0x10062320]
mov dword [esp + 0x18], str.getaddrinfo
cmp eax, edx
mov dword [esp + 0x1c], 0x10038450
mov dword [esp + 0x20], str.getnameinfo
mov dword [esp + 0x24], 0x10038b90
mov dword [esp + 0x28], str.freeaddrinfo
mov dword [esp + 0x2c], 0x10038400
jne 0x10036cc0
lea edx, [esp + 0x15c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10036cb6
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 0x10036bfa
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10036c7a
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 0x10036cb6
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10036c7a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10036cb6
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 0x10036e8e
inc ebp
add edi, 8
cmp ebp, 3
jl 0x10036c80
xor eax, eax
mov edx, dword [esp + eax + 0x1c]
mov dword [eax + 0x10053edc], edx
add eax, 8
cmp eax, 0x18
jl 0x10036ca0
mov ebp, dword [esp + 0x10]
mov dword [0x10062320], 1
mov eax, dword [0x10053edc]
mov dword [0x10062324], 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 0x10036ee9
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 0x10053de8
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x1006231c]
mov ebp, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x10036ee2
mov eax, dword [0x10062320]
mov dword [esp + 0x18], str.getaddrinfo
test eax, eax
mov dword [esp + 0x1c], 0x10038450
mov dword [esp + 0x20], str.getnameinfo
mov dword [esp + 0x24], 0x10038b90
mov dword [esp + 0x28], str.freeaddrinfo
mov dword [esp + 0x2c], 0x10038400
jne 0x10036ed8
lea ecx, [esp + 0x15c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10036ece
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 0x10036e12
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10036e9a
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 0x10036ece
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10036e9a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10036ece
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10036cb2
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 0x10036e85
inc ebx
add edi, 8
cmp ebx, 3
jl 0x10036ea0
xor eax, eax
mov edx, dword [esp + eax + 0x1c]
mov dword [eax + 0x10053edc], edx
add eax, 8
cmp eax, 0x18
jl 0x10036ebc
mov dword [0x10062320], 1
mov eax, dword [0x10053eec]
mov dword [0x1006231c], eax
push ebp
call eax
mov ebp, dword [esp + 0x10]
mov ecx, ebp
call fcn.10036fe0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x254
ret 4