Function at 0x164ca7980
Capabilities:
Create process on windows
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10030]
mov eax, 0x10130
call fcn.164cd8480
sub rsp, rax
mov rax, qword [0x164cf5010]
xor rax, rsp
mov qword [rbp + 0x10020], rax
mov r12d, dword [rbp + 0x10080]
mov r15, qword [rbp + 0x10070]
mov r14, qword [rbp + 0x10078]
test r15, r15
je 0x164ca7c7a
cmp word [r15], 0
je 0x164ca7c7a
test r14, r14
je 0x164ca7c7a
test r12d, r12d
je 0x164ca7c7a
xor r13d, r13d
mov word [r14], r13w
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
mov qword [rbp + 0x10], r13
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
movdqa xmm0, xmmword [0x164ce2b00]
movdqu xmmword [rbp], xmm0
mov word [rbp - 0x10], r13w
mov qword [rbp + 0x10], r13
xor edx, edx
lea rcx, [rbp - 0x10]
call sym.aswCmnBS.dll_public:_unsigned_long_int___cdecl_asw::root::CStr::GetTempFile_unsigned_long_int____ptr64____ptr64
mov esi, eax
test eax, eax
jne 0x164ca7c5e
lea r9, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae r9, qword [rbp - 0x10]
lea r8, str.Console_temp_file:__s_n
mov edx, 0x8000
lea rcx, [rbp + 0x20]
call fcn.164ca6420
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rcx, qword [rbp - 0x10]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov edx, 0x8000007b
call qword [sym.imp.aswCmnOS.dll_dep_fsOpenFile]
mov esi, eax
test eax, eax
jne 0x164ca7c3b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.aswCmnOS.dll_dep_fsGetAPIHandle]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r13d
lea r9, [rsp + 0x60]
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x164ca7c26
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x80], 0x68
mov dword [rbp - 0x44], 0x100
mov rax, qword [rsp + 0x60]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x164ca7c06
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.aswCmnOS.dll_dep_fsGetFileSizeHandle]
mov rbx, rax
test eax, eax
je 0x164ca7bd8
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.aswCmnOS.dll_dep_fsSetFilePointer]
cmp r12d, ebx
cmovb ebx, r12d
mov dword [rsp + 0x50], r13d
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rdx, r14
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.aswCmnOS.dll_dep_fsReadFile]
mov esi, eax
test eax, eax
jne 0x164ca7bd8
mov eax, dword [rsp + 0x50]
cmp eax, ebx
ja 0x164ca7bd8
mov word [r14 + rax*2], r13w
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.aswCmnOS.dll_dep_fsCloseFile]
jmp 0x164ca7c5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.aswCmnOS.dll_dep_fsCloseFile]
jmp 0x164ca7c5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.aswCmnOS.dll_dep_fsCloseFile]
jmp 0x164ca7c5e
mov r9d, eax
lea r8, str.Open_file_returned_error__u_n
mov edx, 0x8000
lea rcx, [rbp + 0x20]
call fcn.164ca6420
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x164ca7c6d
call fcn.164cd6f98
nop
lea rcx, [rbp - 0x10]
call fcn.164c938b0
mov eax, esi
jmp 0x164ca7c7f
mov eax, 0x57
mov rcx, qword [rbp + 0x10020]
xor rcx, rsp
call fcn.164cd6f70
mov rbx, qword [rsp + 0x10188]
add rsp, 0x10130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret