Function at 0x140134f20
Capabilities:
Get common file path

Disassembly:
mov word [rsp + 8], cx
mov eax, 0x2a8
call fcn.1402b4ee0
sub rsp, rax
mov rax, qword [0x14036aa00]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov qword [rsp + 0x28], 0
lea rax, str.getaddrinfo
mov qword [rsp + 0x38], rax
lea rax, [0x140134680]
mov qword [rsp + 0x40], rax
lea rax, str.getnameinfo
mov qword [rsp + 0x48], rax
lea rax, [0x140134b60]
mov qword [rsp + 0x50], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x58], rax
lea rax, [fcn.1401345f0]
mov qword [rsp + 0x60], rax
xor eax, eax
test eax, eax
jne 0x140134f95
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
cmp dword [0x14036bbf4], 0
je 0x140134fd2
movzx eax, word [rsp + 0x2b0]
imul rax, rax, 0x10
lea rcx, str.getaddrinfo
mov rax, qword [rcx + rax + 8]
jmp 0x1401351e1
mov edx, 0x104
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x140134fee
jmp 0x1401350f6
lea r8, [rsp + 0x180]
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call qword [sym.imp.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 0x140135068
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 0x140135068
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x28], 0
je 0x140135075
jmp 0x1401350f6
lea r8, [rsp + 0x180]
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call qword [sym.imp.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 0x1401350ef
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 0x1401350ef
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x28], 0
jmp 0x1401350f6
cmp qword [rsp + 0x28], 0
je 0x1401351bf
mov dword [rsp + 0x20], 0
jmp 0x140135116
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 0x140135172
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 0x140135170
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x28], 0
jmp 0x140135172
jmp 0x14013510c
cmp qword [rsp + 0x28], 0
je 0x1401351bf
mov dword [rsp + 0x20], 0
jmp 0x14013518e
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 0x1401351bf
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 0x140135184
mov dword [0x14036bbf4], 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.1402b48e0
add rsp, 0x2a8
ret