Function at 0x14001dde0
Capabilities:
Get common file path

Disassembly:
mov word [rsp + 8], cx
push rdi
sub rsp, 0x300
lea rdi, [rsp + 0x20]
mov ecx, 0xb8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
movzx ecx, word [rsp + 0x310]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov qword [rsp + 0x20], 0
lea rax, str.getaddrinfo
mov qword [rsp + 0x38], rax
lea rax, [0x14001d480]
mov qword [rsp + 0x40], rax
lea rax, str.getnameinfo
mov qword [rsp + 0x48], rax
lea rax, [0x14001d9e0]
mov qword [rsp + 0x50], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x58], rax
lea rax, [fcn.14001d400]
mov qword [rsp + 0x60], rax
xor eax, eax
test eax, eax
jne 0x14001de69
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x80], 0
cmp dword [0x140321388], 0
je 0x14001dea9
movzx eax, word [rsp + 0x310]
imul rax, rax, 0x10
lea rcx, str.getaddrinfo
mov rax, qword [rcx + rax + 8]
jmp 0x14001e0e3
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x14001dec5
jmp 0x14001dfdb
lea r8, [rsp + 0xa0]
mov edx, 0x10c
lea rcx, [rsp + 0x1d0]
call fcn.1401f5680
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x1d0]
call fcn.1401f5d20
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14001df46
lea rdx, str.getaddrinfo
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x14001df46
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x20], 0
je 0x14001df53
jmp 0x14001dfdb
lea r8, [rsp + 0xa0]
mov edx, 0x10c
lea rcx, [rsp + 0x1d0]
call fcn.1401f5680
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x1d0]
call fcn.1401f5d20
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14001dfd4
lea rdx, str.getaddrinfo
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x14001dfd4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x20], 0
jmp 0x14001dfdb
cmp qword [rsp + 0x20], 0
je 0x14001e0c1
mov dword [rsp + 0x80], 0
jmp 0x14001e004
mov eax, dword [rsp + 0x80]
inc eax
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 3
jge 0x14001e067
movsxd rax, dword [rsp + 0x80]
imul rax, rax, 0x10
mov rdx, qword [rsp + rax + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movsxd rcx, dword [rsp + 0x80]
imul rcx, rcx, 0x10
mov qword [rsp + rcx + 0x40], rax
movsxd rax, dword [rsp + 0x80]
imul rax, rax, 0x10
cmp qword [rsp + rax + 0x40], 0
jne 0x14001e065
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x20], 0
jmp 0x14001e067
jmp 0x14001dff4
cmp qword [rsp + 0x20], 0
je 0x14001e0c1
mov dword [rsp + 0x80], 0
jmp 0x14001e08c
mov eax, dword [rsp + 0x80]
inc eax
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 3
jge 0x14001e0c1
movsxd rax, dword [rsp + 0x80]
imul rax, rax, 0x10
movsxd rcx, dword [rsp + 0x80]
imul rcx, rcx, 0x10
lea rdx, str.getaddrinfo
mov rax, qword [rsp + rax + 0x40]
mov qword [rdx + rcx + 8], rax
jmp 0x14001e07c
mov dword [0x140321388], 1
movzx eax, word [rsp + 0x310]
imul rax, rax, 0x10
lea rcx, str.getaddrinfo
mov rax, qword [rcx + rax + 8]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WSOCK32.dll_closesocket
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140135520
add rsp, 0x300
pop rdi
ret