Function at 0x1400e8d80
Capabilities:
Get common file path

Disassembly:
jmp 0x1400e8d80
mov word [rsp + 8], cx
sub rsp, 0x2a8
mov rax, qword [0x14028c8d0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov qword [rsp + 0x28], 0
lea rax, str.getaddrinfo
mov qword [rsp + 0x38], rax
lea rax, [0x14000499e]
mov qword [rsp + 0x40], rax
lea rax, str.getnameinfo
mov qword [rsp + 0x48], rax
lea rax, [0x1400058b2]
mov qword [rsp + 0x50], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x58], rax
lea rax, [fcn.14000472d]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
cmp dword [0x140291d34], 0
je 0x1400e8e26
movzx eax, word [rsp + 0x2b0]
imul rax, rax, 0x10
lea rcx, str.getaddrinfo
mov rax, qword [rcx + rax + 8]
jmp 0x1400e902b
mov edx, 0x104
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1400e8e42
jmp 0x1400e8f4a
lea r8, [rsp + 0x180]
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCR120D.dll_strcpy_s]
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCR120D.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 0x1400e8ebc
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 0x1400e8ebc
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x28], 0
je 0x1400e8ec9
jmp 0x1400e8f4a
lea r8, [rsp + 0x180]
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCR120D.dll_strcpy_s]
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCR120D.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 0x1400e8f43
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 0x1400e8f43
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x28], 0
jmp 0x1400e8f4a
cmp qword [rsp + 0x28], 0
je 0x1400e9009
mov dword [rsp + 0x20], 0
jmp 0x1400e8f6a
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 3
jge 0x1400e8fc1
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 0x1400e8fbf
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x28], 0
jmp 0x1400e8fc1
jmp 0x1400e8f60
cmp qword [rsp + 0x28], 0
je 0x1400e9009
mov dword [rsp + 0x20], 0
jmp 0x1400e8fdd
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 3
jge 0x1400e9009
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 0x1400e8fd3
mov dword [0x140291d34], 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.1401b0dd0
add rsp, 0x2a8
ret