Function at 0x140002b60
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0xe8
mov dword [rsp + 0xe0], edx
mov qword [rsp + 0xd8], rcx
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x78], rax
call fcn.140003fb0
mov dword [rsp + 0xd4], eax
lea rcx, [rsp + 0xd4]
lea rdx, [rsp + 0xe0]
call fcn.140003f80
test al, 1
jne 0x140002bb1
jmp 0x140002bca
lea rcx, [rsp + 0xe0]
call fcn.140004870
mov dword [rsp + 0xe4], eax
jmp 0x140002e92
mov rcx, qword [rsp + 0x78]
call fcn.1400047c0
cmp rax, 0
je 0x140002c3c
mov rcx, qword [rsp + 0x78]
call fcn.1400047c0
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x70], rax
call fcn.1400048d0
mov rcx, rax
mov rax, qword [rsp + 0x70]
cmp rax, rcx
jae 0x140002c3c
lea rcx, [rsp + 0xe0]
call fcn.140004760
mov rcx, qword [rsp + 0x78]
mov byte [rsp + 0x6f], al
call fcn.1400048f0
mov cl, byte [rsp + 0x6f]
mov byte [rax], cl
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0xe4], eax
jmp 0x140002e92
mov rax, qword [rsp + 0x78]
cmp qword [rax + 0x80], 0
jne 0x140002c60
call fcn.140003fb0
mov dword [rsp + 0xe4], eax
jmp 0x140002e92
mov rcx, qword [rsp + 0x78]
call fcn.140002960
mov rax, qword [rsp + 0x78]
cmp qword [rax + 0x68], 0
jne 0x140002cda
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xe0]
call fcn.140004760
mov rdx, qword [rsp + 0x60]
mov cl, al
call fcn.140004920
test al, 1
jne 0x140002cb1
jmp 0x140002cc1
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x5c], eax
jmp 0x140002cca
call fcn.140003fb0
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0xe4], eax
jmp 0x140002e92
mov qword [rsp + 0xc8], 0x20
lea rcx, [rsp + 0xe0]
call fcn.140004760
mov rdx, qword [rsp + 0x78]
mov byte [rsp + 0x9f], al
mov rcx, qword [rdx + 0x68]
lea r8, [rsp + 0xc0]
lea r9, [rsp + 0xa0]
add rdx, 0x74
mov rax, rsp
lea r10, [rsp + 0x88]
mov qword [rax + 0x38], r10
mov qword [rax + 0x30], r8
lea r8, [rsp + 0xa0]
mov qword [rax + 0x28], r8
lea r8, [rsp + 0x90]
mov qword [rax + 0x20], r8
lea r8, [rsp + 0x9f]
call fcn.140004950
mov ecx, eax
mov dword [rsp + 0x58], ecx
sub eax, 2
jb 0x140002d75
jmp 0x140002d63
mov eax, dword [rsp + 0x58]
sub eax, 3
je 0x140002e38
jmp 0x140002e86
mov rax, qword [rsp + 0x88]
lea rcx, [rsp + 0xa0]
sub rax, rcx
mov qword [rsp + 0x80], rax
xor eax, eax
cmp rax, qword [rsp + 0x80]
jae 0x140002df5
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x50], rcx
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x80]
lea rcx, [rsp + 0xa0]
mov edx, 1
call fcn.1400167c8
mov rcx, rax
mov rax, qword [rsp + 0x50]
cmp rax, rcx
je 0x140002df5
call fcn.140003fb0
mov dword [rsp + 0xe4], eax
jmp 0x140002e92
mov rax, qword [rsp + 0x78]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x9f]
cmp qword [rsp + 0x90], rax
je 0x140002e27
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0xe4], eax
jmp 0x140002e92
call fcn.140003fb0
mov dword [rsp + 0xe4], eax
jmp 0x140002e92
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax + 0x80]
mov cl, byte [rsp + 0x9f]
call fcn.140004920
test al, 1
jne 0x140002e5d
jmp 0x140002e6d
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x4c], eax
jmp 0x140002e76
call fcn.140003fb0
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0xe4], eax
jmp 0x140002e92
call fcn.140003fb0
mov dword [rsp + 0xe4], eax
mov eax, dword [rsp + 0xe4]
add rsp, 0xe8
ret