Function at 0x10065b00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x240
call fcn.10010ae0
mov eax, dword [0x1023d1a4]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], str.getaddrinfo
mov dword [ebp - 0x18], 0x10065db0
mov dword [ebp - 0x14], str.getnameinfo
mov dword [ebp - 0x10], 0x10066670
mov dword [ebp - 0xc], str.freeaddrinfo
mov dword [ebp - 8], fcn.10065d40
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
cmp dword [0x1023effc], 0
je 0x10065b6f
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x1023d6c0]
jmp 0x10065d29
push 0x104
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10065b8a
jmp 0x10065c7f
lea edx, [ebp - 0x240]
push edx
push 0x10c
lea eax, [ebp - 0x138]
push eax
call sub.MSVCR90.dll_strcpy_s
add esp, 0xc
push str.ws2_32
push 0x10c
lea ecx, [ebp - 0x138]
push ecx
call sub.MSVCR90.dll_strcat_s
add esp, 0xc
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10065bfd
push str.getaddrinfo
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10065bfd
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0
je 0x10065c05
jmp 0x10065c7f
lea edx, [ebp - 0x240]
push edx
push 0x10c
lea eax, [ebp - 0x138]
push eax
call sub.MSVCR90.dll_strcpy_s
add esp, 0xc
push str.wship6
push 0x10c
lea ecx, [ebp - 0x138]
push ecx
call sub.MSVCR90.dll_strcat_s
add esp, 0xc
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10065c78
push str.getaddrinfo
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10065c78
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x10065c7f
cmp dword [ebp - 0x20], 0
je 0x10065d14
mov dword [ebp - 4], 0
jmp 0x10065c9b
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [0x101e0e80]
jge 0x10065cde
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + ecx*8 - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*8 - 0x18], eax
mov edx, dword [ebp - 4]
cmp dword [ebp + edx*8 - 0x18], 0
jne 0x10065cdc
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x10065cde
jmp 0x10065c92
cmp dword [ebp - 0x20], 0
je 0x10065d14
mov dword [ebp - 4], 0
jmp 0x10065cf6
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [0x101e0e80]
jge 0x10065d14
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + ecx*8 - 0x18]
mov dword [eax*8 + 0x1023d6c0], edx
jmp 0x10065ced
mov dword [0x1023effc], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x1023d6c0]
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.10010586
mov esp, ebp
pop ebp
ret 4