Function at 0x10065b50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x240
call fcn.10010a90
mov eax, dword [0x1023d1bc]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], str.getaddrinfo
mov dword [ebp - 0x18], 0x10065e00
mov dword [ebp - 0x14], str.getnameinfo
mov dword [ebp - 0x10], 0x100666c0
mov dword [ebp - 0xc], str.freeaddrinfo
mov dword [ebp - 8], fcn.10065d90
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
cmp dword [0x1023effc], 0
je 0x10065bbf
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x1023d6c0]
jmp 0x10065d79
push 0x104
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10065bda
jmp 0x10065ccf
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 0x10065c4d
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 0x10065c4d
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 0x10065c55
jmp 0x10065ccf
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 0x10065cc8
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 0x10065cc8
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x10065ccf
cmp dword [ebp - 0x20], 0
je 0x10065d64
mov dword [ebp - 4], 0
jmp 0x10065ceb
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [0x101e0e80]
jge 0x10065d2e
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 0x10065d2c
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x10065d2e
jmp 0x10065ce2
cmp dword [ebp - 0x20], 0
je 0x10065d64
mov dword [ebp - 4], 0
jmp 0x10065d46
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [0x101e0e80]
jge 0x10065d64
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + ecx*8 - 0x18]
mov dword [eax*8 + 0x1023d6c0], edx
jmp 0x10065d3d
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.10010588
mov esp, ebp
pop ebp
ret 4