Function at 0x180013670
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea r12d, [rcx + 7]
mov rbx, r8
mov r14, rdx
cmp ecx, r12d
jae 0x180013af4
mov esi, dword [rsp + 0x80]
lea edi, [rcx - 0x10c]
lea rdx, [0x180000000]
movabs rbp, 0x400ae147ae147ae1
xor r13d, r13d
nop dword [rax + rax]
cmp edi, 0x1d
ja case.0x1800136db.7
movzx eax, byte [rdx + rdi + 0x13b34]
mov ecx, dword [rdx + rax*4 + 0x13b14]
add rcx, rdx
jmp rcx
xor r9d, r9d
mov dword [rbx + 0x90], 0x3c
xor edx, edx
mov dword [rbx + 0x94], 0x3840
xor ecx, ecx
mov r8d, 0xce
call fcn.180054db0
mov qword [rbx + 0x98], rax
mov qword [rbx + 0x88], rbp
jmp 0x18001384f
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 0x75]
call fcn.1800114b0
jmp 0x18001384f
mov qword [rsp + 0x38], r13
mov r9d, 0x7a
mov qword [rsp + 0x30], r13
xor r8d, r8d
mov qword [rsp + 0x28], r13
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x20], r13
mov esi, r13d
call fcn.18003b2d0
test eax, eax
js 0x18001386c
cmp dword [rbx], 0x104
jne 0x18001384f
xor r8d, r8d
mov edx, 0x88
mov rcx, rbx
call fcn.180047e50
test rax, rax
je 0x18001386c
cmp word [rax + 0x18], si
jge 0x18001386c
movzx ecx, word [rax + 0x14]
mov edx, 0xfff7
sub cx, 2
test dx, cx
jne 0x18001386c
mov ecx, dword [rbx + 0x10]
mov r9, rax
mov dword [rsp + 0x80], ecx
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x113
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 8]
call fcn.180072c30
jmp 0x180013aed
mov rax, qword [rbx]
mov r15d, 0x1000
mov rbp, qword [rax + 0x28]
sub r15, qword [rbp + 8]
je 0x18001381a
mov r9, qword [rbp + 0x28]
mov r8, r15
mov rcx, qword [rbp + 0x30]
mov edx, 1
call fcn.180083240
cmp rax, r15
je 0x18001381a
mov rax, qword [rbx]
mov rcx, qword [rax]
mov dword [rcx + 0x28], 0x25
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [rbp + 0x28]
call fcn.180082600
mov rcx, qword [rbp + 0x28]
call fcn.180082420
test eax, eax
je 0x180013845
mov rax, qword [rbx]
mov rcx, qword [rax]
mov dword [rcx + 0x28], 0x25
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax]
movabs rbp, 0x400ae147ae147ae1
lea rdx, [0x180000000]
inc edi
lea eax, [rdi + 0x10c]
cmp eax, r12d
jb 0x1800136c0
jmp 0x180013af4
mov dword [rsp + 0x98], 0xffffffff
jmp 0x180013af4
add rbx, 0x38
je 0x1800138b3
movzx eax, word [rbx + 0x18]
test dword [r14], eax
jne 0x1800138b3
lea r8, [rsp + 0x80]
mov dword [rsp + 0x80], 1
mov edx, 0x128
mov rcx, rbx
call fcn.180009010
mov rbx, rax
test rax, rax
jne 0x180013882
mov rax, rbx
jmp 0x180013afc
mov dword [0x1800c3e78], r13d
mov dword [0x1800c3e88], r13d
mov dword [0x1800c3e98], r13d
mov dword [0x1800c3ea8], r13d
mov dword [0x1800c3eb8], r13d
mov dword [0x1800c3ec8], r13d
mov dword [0x1800c3ed8], r13d
mov dword [0x1800c3ee8], r13d
mov dword [0x1800c3ef8], r13d
mov dword [0x1800c3f08], r13d
mov dword [0x1800c3f18], r13d
mov dword [0x1800c3f28], r13d
mov dword [0x1800c3f38], r13d
mov dword [0x1800c3f48], r13d
mov dword [0x1800c3f58], r13d
mov dword [0x1800c3f68], r13d
mov dword [0x1800c3f78], r13d
mov dword [0x1800c3f88], r13d
mov dword [0x1800c3f98], r13d
mov dword [0x1800c3fa8], r13d
mov dword [0x1800c3fb8], r13d
mov dword [0x1800c3fc8], r13d
mov dword [0x1800c3fd8], r13d
mov dword [0x1800c3fe8], r13d
mov dword [0x1800c3ff8], r13d
mov dword [0x1800c4008], r13d
mov dword [0x1800c4018], r13d
mov dword [0x1800c4028], r13d
mov dword [0x1800c4038], r13d
mov dword [0x1800c4048], r13d
mov dword [0x1800c4058], r13d
mov dword [0x1800c4068], r13d
mov dword [0x1800c4078], r13d
mov dword [0x1800c4088], r13d
mov dword [0x1800c4098], r13d
mov dword [0x1800c40a8], r13d
mov dword [0x1800c40b8], r13d
mov dword [0x1800c40c8], r13d
mov dword [0x1800c40d8], r13d
mov dword [0x1800c40e8], r13d
mov dword [0x1800c40f8], r13d
mov dword [0x1800c4108], r13d
mov dword [0x1800c4118], r13d
mov dword [0x1800c4128], r13d
mov dword [0x1800c4138], r13d
mov dword [0x1800c4148], r13d
mov dword [0x1800c4158], r13d
mov dword [0x1800c4168], r13d
jmp 0x180013af4
movzx ecx, word [rbx + 0x14]
mov edx, 0xfff6
lea eax, [rcx - 1]
test dx, ax
jne 0x180013aa0
cmp cx, 9
je 0x180013aa0
mov eax, dword [r14]
test eax, eax
jns 0x180013a34
cmp cx, 2
jne 0x180013aa0
mov r8d, 0x71
mov dword [rsp + 0x80], eax
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.18002a8b0
mov r8d, dword [rbx + 0x1c]
mov ecx, eax
test r8d, r8d
je 0x180013a93
mov eax, 0x400
test word [rbx + 0x18], ax
je 0x180013a82
mov edx, dword [r14]
test edx, edx
js 0x180013a73
cmp edx, r8d
ja 0x180013a7b
movsx eax, word [rbx + 0x1a]
cmp edx, eax
jge 0x180013a93
mov esi, 0xc
jmp 0x180013aa5
movsx eax, word [rbx + 0x1a]
cmp ecx, eax
jl 0x180013a7b
test ecx, ecx
js 0x180013a93
cmp ecx, r8d
ja 0x180013a7b
test esi, esi
jne 0x180013aa5
mov dword [rsp + 0x98], ecx
jmp 0x180013af4
mov esi, 0xd
mov eax, 0xfffe
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x80]
mov word [rsp + 0x80], ax
mov r8, rbx
mov edx, 0x2b
xor ecx, ecx
call fcn.18002f6d0
xor r9d, r9d
mov dword [rsp + 0x80], esi
lea r8, [rsp + 0x80]
mov rdx, rbx
mov ecx, 0xf3
call fcn.18002e120
mov dword [rsp + 0x98], eax
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret