Function at 0x140298c30
Capabilities:
Get common file path

Disassembly:
mov word [rsp + 8], cx
mov eax, 0x2a8
call fcn.140473cc0
sub rsp, rax
mov rax, qword [0x140545d00]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov qword [rsp + 0x28], 0
lea rax, [0x1404acf00]
mov qword [rsp + 0x38], rax
lea rax, [0x1402983a0]
mov qword [rsp + 0x40], rax
lea rax, str.getnameinfo
mov qword [rsp + 0x48], rax
lea rax, [0x140298880]
mov qword [rsp + 0x50], rax
lea rax, [0x1404acf20]
mov qword [rsp + 0x58], rax
lea rax, [fcn.140298310]
mov qword [rsp + 0x60], rax
xor eax, eax
test eax, eax
jne 0x140298ca5
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
cmp dword [0x1405f7c44], 0
je 0x140298ce2
movzx eax, word [rsp + 0x2b0]
imul rax, rax, 0x10
lea rcx, [0x140542718]
mov rax, qword [rcx + rax + 8]
jmp 0x140298ef1
mov edx, 0x104
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
jne 0x140298cfe
jmp 0x140298e06
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 0x140298d78
lea rdx, [0x1404acf00]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140298d78
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x28], 0
je 0x140298d85
jmp 0x140298e06
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 0x140298dff
lea rdx, [0x1404acf00]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140298dff
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov qword [rsp + 0x28], 0
jmp 0x140298e06
cmp qword [rsp + 0x28], 0
je 0x140298ecf
mov dword [rsp + 0x20], 0
jmp 0x140298e26
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 0x140298e82
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 0x140298e80
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov qword [rsp + 0x28], 0
jmp 0x140298e82
jmp 0x140298e1c
cmp qword [rsp + 0x28], 0
je 0x140298ecf
mov dword [rsp + 0x20], 0
jmp 0x140298e9e
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 0x140298ecf
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
movsxd rcx, dword [rsp + 0x20]
imul rcx, rcx, 0x10
lea rdx, [0x140542718]
mov rax, qword [rsp + rax + 0x40]
mov qword [rdx + rcx + 8], rax
jmp 0x140298e94
mov dword [0x1405f7c44], 1
movzx eax, word [rsp + 0x2b0]
imul rax, rax, 0x10
lea rcx, [0x140542718]
mov rax, qword [rcx + rax + 8]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140473210
add rsp, 0x2a8
ret