Function at 0x1400a3f60
Capabilities:
Get common file path

Disassembly:
mov word [rsp + 8], cx
mov eax, 0x2a8
call fcn.14028b850
sub rsp, rax
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov qword [rsp + 0x58], 0
lea rax, str.getaddrinfo
mov qword [rsp + 0x28], rax
lea rax, [0x1400a42d0]
mov qword [rsp + 0x30], rax
lea rax, str.getnameinfo
mov qword [rsp + 0x38], rax
lea rax, [0x1400a4e20]
mov qword [rsp + 0x40], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x48], rax
lea rax, [fcn.1400a4240]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x20], 0
cmp dword [0x1403762f8], 0
je 0x1400a400c
movzx ecx, word [rsp + 0x2b0]
imul rcx, rcx, 0x10
lea rax, str.getaddrinfo
mov rax, qword [rax + rcx + 8]
jmp 0x1400a4219
mov edx, 0x104
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1400a4028
jmp 0x1400a4129
lea r8, [rsp + 0x180]
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call sub.MSVCR90.dll_strcpy_s
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call sub.MSVCR90.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 0x1400a40a0
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 0x1400a40a0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x58], 0
je 0x1400a40aa
jmp 0x1400a4129
lea r8, [rsp + 0x180]
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call sub.MSVCR90.dll_strcpy_s
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call sub.MSVCR90.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 0x1400a4122
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 0x1400a4122
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x58], 0
jmp 0x1400a4129
cmp qword [rsp + 0x58], 0
je 0x1400a41f7
mov dword [rsp + 0x20], 0
jmp 0x1400a414a
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [reloc.WS2_32.dll_closesocket]
cmp dword [rsp + 0x20], eax
jge 0x1400a41a9
movsxd rdx, dword [rsp + 0x20]
imul rdx, rdx, 0x10
mov rdx, qword [rsp + rdx + 0x28]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov qword [rsp + rax + 0x30], r11
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
cmp qword [rsp + rax + 0x30], 0
jne 0x1400a41a7
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x58], 0
jmp 0x1400a41a9
jmp 0x1400a413f
cmp qword [rsp + 0x58], 0
je 0x1400a41f7
mov dword [rsp + 0x20], 0
jmp 0x1400a41c6
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [reloc.WS2_32.dll_closesocket]
cmp dword [rsp + 0x20], eax
jge 0x1400a41f7
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
movsxd rdx, dword [rsp + 0x20]
imul rdx, rdx, 0x10
lea rcx, str.getaddrinfo
mov rax, qword [rsp + rax + 0x30]
mov qword [rcx + rdx + 8], rax
jmp 0x1400a41bb
mov dword [0x1403762f8], 1
movzx ecx, word [rsp + 0x2b0]
imul rcx, rcx, 0x10
lea rax, str.getaddrinfo
mov rax, qword [rax + rcx + 8]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x2a8
ret