Function at 0x140195cd0
Capabilities:
Get common file path

Disassembly:
mov word [rsp + 8], cx
mov eax, 0x2a8
call fcn.14036a3f0
sub rsp, rax
mov rax, qword [0x14041ae40]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov qword [rsp + 0x28], 0
lea rax, str.getaddrinfo
mov qword [rsp + 0x38], rax
lea rax, [0x140195440]
mov qword [rsp + 0x40], rax
lea rax, str.getnameinfo
mov qword [rsp + 0x48], rax
lea rax, [0x140195920]
mov qword [rsp + 0x50], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x58], rax
lea rax, [fcn.1401953b0]
mov qword [rsp + 0x60], rax
xor eax, eax
test eax, eax
jne 0x140195d45
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
cmp dword [0x14041ba04], 0
je 0x140195d82
movzx eax, word [rsp + 0x2b0]
imul rax, rax, 0x10
lea rcx, str.getaddrinfo
mov rax, qword [rcx + rax + 8]
jmp 0x140195f8a
mov edx, 0x104
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x140195d9e
jmp 0x140195e9f
lea r8, [rsp + 0x180]
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140195e16
lea rdx, str.getaddrinfo
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140195e16
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x28], 0
je 0x140195e20
jmp 0x140195e9f
lea r8, [rsp + 0x180]
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140195e98
lea rdx, str.getaddrinfo
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140195e98
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x28], 0
jmp 0x140195e9f
cmp qword [rsp + 0x28], 0
je 0x140195f68
mov dword [rsp + 0x20], 0
jmp 0x140195ebf
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [reloc.WS2_32.dll_closesocket]
cmp dword [rsp + 0x20], eax
jge 0x140195f1b
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov rdx, qword [rsp + rax + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movsxd rcx, dword [rsp + 0x20]
imul rcx, rcx, 0x10
mov qword [rsp + rcx + 0x40], rax
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
cmp qword [rsp + rax + 0x40], 0
jne 0x140195f19
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x28], 0
jmp 0x140195f1b
jmp 0x140195eb5
cmp qword [rsp + 0x28], 0
je 0x140195f68
mov dword [rsp + 0x20], 0
jmp 0x140195f37
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [reloc.WS2_32.dll_closesocket]
cmp dword [rsp + 0x20], eax
jge 0x140195f68
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 + 0x40]
mov qword [rdx + rcx + 8], rax
jmp 0x140195f2d
mov dword [0x14041ba04], 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.14036a060
add rsp, 0x2a8
ret