Function at 0x140004030
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140047010]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov r14, rdx
mov rsi, rcx
xor edi, edi
xor r9d, r9d
lea r8d, [rdi + 0x1a]
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
lea rax, [rbp + 0x10]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], dil
jne 0x140004096
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x50]
call fcn.14000a4a0
nop
mov r8d, 1
lea rdx, [0x140039a44]
lea rcx, [rbp - 0x50]
call fcn.140009c40
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8, rbx
inc r8
cmp byte [rsi + r8], 0
jne 0x1400040f3
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.140009c40
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 1
lea rdx, [0x140039a44]
lea rcx, [rsp + 0x70]
call fcn.140009c40
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140004180
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140009c40
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 4
lea rdx, str..dll
lea rcx, [rsp + 0x30]
call fcn.140009c40
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rdi
mov qword [rbp + 8], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000424e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004249
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004249
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140036ef0
movdqa xmm0, xmmword [0x14003ea70]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400042a1
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000429c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000429c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140036ef0
movdqa xmm0, xmmword [0x14003ea70]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x1400042f3
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400042ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400042ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140036ef0
movdqa xmm0, xmmword [0x14003ea70]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140004343
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000433e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000433e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140036ef0
movdqa xmm0, xmmword [0x14003ea70]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x140004392
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000438d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000438d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140036ef0
movdqa xmm0, xmmword [0x14003ea70]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
mov rdi, qword [rbp]
lea rbx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rbx, qword [rbp - 0x10]
call fcn.1400364d8
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rdi
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rbp - 0x30]
call fcn.1400030f0
nop
lea rcx, [rbp - 0x30]
call fcn.140003bc0
movzx ebx, al
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140004424
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000441f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000441f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140036ef0
test bl, bl
je 0x140004534
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140067f28], rax
test rax, rax
je 0x140004534
lea rdx, str.Connect
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067e58], rax
lea rdx, str.InjectModule
mov rcx, qword [0x140067f28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067e38], rax
lea rdx, str.GetProgress
mov rcx, qword [0x140067f28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067e50], rax
lea rdx, str.ProgressAnimated
mov rcx, qword [0x140067f28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067e30], rax
lea rdx, str.GetStatus
mov rcx, qword [0x140067f28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067e28], rax
lea rdx, str.GetUsername
mov rcx, qword [0x140067f28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067e48], rax
lea rdx, str.GetModules
mov rcx, qword [0x140067f28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067e40], rax
cmp byte [0x140067f98], 0
jne 0x14000457e
call fcn.140003dd0
test al, al
jne 0x140004577
xor r9d, r9d
lea r8, str.Fatal_Error
lea rdx, str.Failed_to_read_meta_data
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor bl, bl
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x1400045f0
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400045eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400045eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, qword [0x140067e40]
mov r9, qword [0x140067e58]
test r9, r9
je 0x140004534
cmp qword [0x140067e38], 0
je 0x140004534
cmp qword [0x140067e50], 0
je 0x140004534
cmp qword [0x140067e30], 0
je 0x140004534
cmp qword [0x140067e28], 0
je 0x140004534
cmp qword [0x140067e48], 0
je 0x140004534
test rax, rax
je 0x140004534
mov byte [r14], 1
lea r8, [0x1400683c0]
lea rdx, [0x1400683d8]
mov rcx, rsi
call r9
test eax, eax
setne bl
jmp 0x140004536
call fcn.140036ef0
movzx eax, bl
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1400369f0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret