Function at 0x1400a5b54
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x430
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rbx, rcx
mov ecx, 0x50
mov rdi, rdx
call fcn.1400ac1f4
mov rdx, rdi
mov ecx, 0x4b
call fcn.1400ac1f4
mov esi, 1
mov rdx, rdi
mov ecx, esi
call fcn.1400ac1f4
lea ecx, [rsi + 1]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 1]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 2]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 3]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 4]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 5]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 6]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 7]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 8]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 9]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0xa]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0xb]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0xc]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0xd]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0xe]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0xf]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x10]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x11]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x12]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x13]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x14]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x15]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x16]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x17]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x18]
mov rdx, rdi
call fcn.1400ac1f4
mov r11d, dword [rbx + 0x18]
mov rdx, rdi
shr r11, 8
movsx ecx, r11b
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x28]
mov rdx, rdi
call fcn.1400ac1f4
mov r11d, dword [rbx + 0x28]
mov rdx, rdi
shr r11, 8
movsx ecx, r11b
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x30]
mov rdx, rdi
call fcn.1400ac1f4
mov r11d, dword [rbx + 0x30]
mov rdx, rdi
shr r11, 8
movsx ecx, r11b
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x38]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x39]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x3a]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x3b]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x40]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x41]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x42]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x43]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x44]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x45]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x46]
mov rdx, rdi
call fcn.1400ac1f4
movsx ecx, byte [rbx + 0x47]
mov rdx, rdi
call fcn.1400ac1f4
mov rcx, qword [rbx + 0x68]
lea rdx, [rsp + 0x20]
mov r8d, 0x400
call fcn.140053c04
mov r8, qword [rbx + 0x18]
lea rcx, [rsp + 0x20]
mov r9, rdi
mov rdx, rsi
call fcn.1400aa698
cmp rax, qword [rbx + 0x18]
jne 0x1400a5e2c
mov r8, qword [rbx + 0x28]
test r8, r8
je 0x1400a5e0a
mov rcx, qword [rbx + 0x58]
mov r9, rdi
mov rdx, rsi
call fcn.1400aa698
cmp rax, qword [rbx + 0x28]
jne 0x1400a5e2c
mov r8, qword [rbx + 0x30]
test r8, r8
je 0x1400a5e28
mov rcx, qword [rbx + 0x60]
mov r9, rdi
mov rdx, rsi
call fcn.1400aa698
cmp rax, qword [rbx + 0x30]
jne 0x1400a5e2c
xor eax, eax
jmp 0x1400a5e31
mov eax, 0xa
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400a8530
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret