Function at 0x140075560
Capabilities:
Get common file path

Disassembly:
mov word [rsp + 8], cx
sub rsp, 0x2a8
mov rax, qword [0x1401ad1c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov qword [rsp + 0x58], 0
lea rax, str.getaddrinfo
mov qword [rsp + 0x28], rax
lea rax, [0x1400758b0]
mov qword [rsp + 0x30], rax
lea rax, str.getnameinfo
mov qword [rsp + 0x38], rax
lea rax, [0x1400763e0]
mov qword [rsp + 0x40], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x48], rax
lea rax, [fcn.140075830]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x20], 0
cmp dword [0x1401cd5c8], 0
je 0x140075606
movzx eax, word [rsp + 0x2b0]
imul rax, rax, 0x10
lea rcx, str.getaddrinfo
mov rax, qword [rcx + rax + 8]
jmp 0x140075810
mov edx, 0x104
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x140075622
jmp 0x140075723
lea r8, [rsp + 0x180]
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call sub.MSVCR110.dll_strcpy_s
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call sub.MSVCR110.dll_strcat_s
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14007569a
lea rdx, str.getaddrinfo
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14007569a
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x58], 0
je 0x1400756a4
jmp 0x140075723
lea r8, [rsp + 0x180]
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call sub.MSVCR110.dll_strcpy_s
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call sub.MSVCR110.dll_strcat_s
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14007571c
lea rdx, str.getaddrinfo
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14007571c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x58], 0
jmp 0x140075723
cmp qword [rsp + 0x58], 0
je 0x1400757ee
mov dword [rsp + 0x20], 0
jmp 0x140075744
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [reloc.WSOCK32.dll_closesocket]
cmp dword [rsp + 0x20], eax
jge 0x1400757a0
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov rdx, qword [rsp + rax + 0x28]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movsxd rcx, dword [rsp + 0x20]
imul rcx, rcx, 0x10
mov qword [rsp + rcx + 0x30], rax
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
cmp qword [rsp + rax + 0x30], 0
jne 0x14007579e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x58], 0
jmp 0x1400757a0
jmp 0x140075739
cmp qword [rsp + 0x58], 0
je 0x1400757ee
mov dword [rsp + 0x20], 0
jmp 0x1400757bd
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [reloc.WSOCK32.dll_closesocket]
cmp dword [rsp + 0x20], eax
jge 0x1400757ee
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
movsxd rcx, dword [rsp + 0x20]
imul rcx, rcx, 0x10
lea rdx, str.getaddrinfo
mov rax, qword [rsp + rax + 0x30]
mov qword [rdx + rcx + 8], rax
jmp 0x1400757b2
mov dword [0x1401cd5c8], 1
movzx eax, word [rsp + 0x2b0]
imul rax, rax, 0x10
lea rcx, str.getaddrinfo
mov rax, qword [rcx + rax + 8]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14006b6a0
add rsp, 0x2a8
ret