Function at 0x1400205b0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x64], 0
xor eax, eax
test eax, eax
jne 0x14002060e
cmp qword [rsp + 0x38], 0
je 0x14002066e
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x58], 0
je 0x14002066e
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
mov edx, 3
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x38]
call qword [rax + 0x58]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jg 0x14002066e
mov eax, dword [rsp + 0x30]
jmp 0x140020988
cmp qword [rsp + 0xa0], 0
je 0x140020900
cmp dword [rsp + 0x30], 0
jl 0x140020900
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 8], 0
je 0x1400206e0
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 8]
cmp qword [rax + 0x108], 0
je 0x1400206e0
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 8]
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call qword [rax + 0x108]
mov dword [rsp + 0x30], eax
jmp case.default.0x14002072e
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x80]
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x80]
sub eax, 2
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 6
ja case.default.0x14002072e
movsxd rax, dword [rsp + 0x80]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x209a8]
add rax, rcx
jmp rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.140073080
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jle 0x140020795
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0xb0], eax
jmp case.default.0x14002072e
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.1400733b0
mov dword [rsp + 0x30], eax
jmp case.default.0x14002072e
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.140073540
mov dword [rsp + 0x30], eax
jmp case.default.0x14002072e
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x30], 0
je 0x140020825
movsxd rax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
mov r9, qword [rcx + 0x30]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov dword [rsp + 0x30], eax
jmp 0x14002084a
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rax + 0x74]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
mov dword [rsp + 0x30], eax
jmp case.default.0x14002072e
mov rax, qword [rsp + 0x38]
cmp dword [rax + 0x78], 0
je 0x140020864
mov dword [rsp + 0x30], 0xffffffff
jmp 0x14002088a
mov r9, qword [rsp + 0x38]
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.1400732d0
mov dword [rsp + 0x30], eax
jmp 0x140020900
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x18], 0
je 0x1400208be
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.140073680
mov dword [rsp + 0x30], eax
jmp case.default.0x14002072e
xor r9d, r9d
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rax + 0x74]
call fcn.140101600
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xa0], rax
jmp 0x14002066e
cmp qword [rsp + 0x38], 0
je 0x14002094a
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x58], 0
je 0x14002094a
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
mov edx, 0x83
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x38]
call qword [rax + 0x58]
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0x48], 0
je 0x14002096e
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x14002096e
mov rcx, qword [rsp + 0x78]
call fcn.14007a350
cmp dword [rsp + 0x34], 0
jle 0x140020984
cmp dword [rsp + 0x30], 0
jle 0x140020984
mov eax, dword [rsp + 0x34]
jmp 0x140020988
mov eax, dword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14013a7e0]
call fcn.140132900
mov rax, rdi
add rsp, 0x90
pop rdi
ret