Function at 0x1400a7270
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x10], rax
xor r13d, r13d
mov dword [rsp + 0x44], r13d
lea edi, [r13 + 0xe]
xor edx, edx
mov rcx, r8
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
add rax, 2
je 0x1400a74b6
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [case.0x1401ba071.53]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400a74b6
mov byte [rsp + 0x58], r13b
mov rax, qword [case.0x1401b9e8b.6]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r12
mov ebx, 1
mov dword [rsp + 0x44], ebx
lea edx, [rdi + 0x72]
lea rcx, [rbp - 0x70]
call fcn.140198da0
mov dword [rsp + 0x40], 4
lea rcx, [rsp + 0x50]
call fcn.14010f540
nop
mov rax, qword [rax]
mov r15d, 0x1b67
test rax, rax
je 0x1400a7381
mov rax, qword [rax + 0x98]
test rax, rax
je 0x1400a7381
mov rax, qword [rax + 8]
test rax, rax
je 0x1400a7381
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x70]
mov edx, 0x80000000
mov ecx, 0x540b
call qword [case.0x14003c8e9.0]
mov esi, eax
jmp 0x1400a7384
mov esi, r15d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400a7397
add rcx, 0x48
call fcn.14007f890
test esi, esi
je 0x1400a74a6
cmp esi, 0x1b61
jne 0x1400a74a6
mov r14d, dword [rsp + 0x40]
mov dword [rsp + 0x48], r14d
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400a74a6
mov byte [rsp + 0x70], 0
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rsi
mov ebx, 9
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], r14d
lea rcx, [rsp + 0x50]
call fcn.14010f540
nop
mov rax, qword [rax]
test rax, rax
je 0x1400a7439
mov rax, qword [rax + 0x98]
test rax, rax
je 0x1400a7439
mov rax, qword [rax + 8]
test rax, rax
je 0x1400a7439
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], r8
mov r9, rsi
lea r8, [rbp - 0x70]
mov edx, 0x80000000
mov ecx, 0x540b
call qword [case.0x14003c8e9.0]
mov r15d, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400a744c
add rcx, 0x48
call fcn.14007f890
test r15d, r15d
je 0x1400a7468
cmp r15d, 0x1b61
jne 0x1400a7496
cmp r14d, 4
jb 0x1400a7496
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
jmp 0x1400a7496
mov dword [rsp + 0x40], r13d
dec r14d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400a7496
cmp dword [rsp + 0x40], r14d
cmove edi, r13d
and ebx, 0xfffffff7
mov dword [rsp + 0x44], ebx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
and ebx, 0xfffffffe
mov dword [rsp + 0x44], ebx
mov rcx, r12
call qword [case.0x1401b9e8b.6]
mov eax, edi
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1401c5190
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret