Function at 0x1400c42b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x588]
sub rsp, 0x688
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rbp + 0x578], rax
xor edi, edi
mov r15, rcx
mov qword [rsp + 0x40], rcx
movzx ecx, word [rdx + 0x48]
mov rsi, rdx
mov edx, 0xfffc
lea eax, [rcx - 1]
mov r12, r9
mov r14, r8
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdi
lea r13d, [rdi + 1]
lea r9d, [rdi + 4]
mov r8d, 0x400
test dx, ax
jne 0x1400c4324
cmp cx, 3
je 0x1400c4324
mov ebx, r13d
jmp 0x1400c433a
cmp word [rsi + 0x4a], r8w
je 0x1400c4337
cmp word [rsi + 0x4c], 0x20
mov ebx, 3
jne 0x1400c433a
mov ebx, r9d
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x618
call fcn.1401c0040
mov r8d, dword [rsi + 0x50]
mov eax, 0x100
lea rcx, [rsp + 0x50]
mov edx, eax
call fcn.1400c29f0
mov r8d, dword [rsi + 0x54]
lea rcx, [rsp + 0x50]
mov edx, 0x101
call fcn.1400c29f0
cmp word [rsi + 0x4c], 8
mov edx, 0x102
lea rcx, [rsp + 0x50]
jg 0x1400c4399
movzx r9d, word [r14 + 0x30]
mov r8d, r13d
mov word [rsp + 0x20], di
call fcn.1400c2ac0
jmp 0x1400c43c7
lea rax, [rbp + 0x570]
mov r8d, 3
mov r9d, ebx
mov dword [rbp + 0x570], 0x80008
mov dword [rbp + 0x574], 0x80008
mov qword [rsp + 0x20], rax
call fcn.1400c2a30
movzx r9d, word [r14 + 0xe]
lea rcx, [rsp + 0x50]
mov edx, 0x103
mov r8d, r13d
mov word [rsp + 0x20], di
call fcn.1400c2ac0
cmp word [r14 + 0x30], r8w
jne 0x1400c442f
movzx eax, word [r14 + 0xe]
mov edx, 0x106
mov word [rsp + 0x20], di
sub ax, 3
lea rcx, [rsp + 0x50]
cmp ax, r8w
jbe 0x1400c440d
mov r9d, r13d
jmp 0x1400c4482
xor r9d, r9d
call fcn.1400c2ac0
mov r8d, dword [r14 + 8]
test r8d, r8d
je 0x1400c4487
lea rcx, [rsp + 0x50]
mov edx, 0x124
call fcn.1400c29f0
jmp 0x1400c4487
movzx eax, word [rsi + 0x48]
cmp ax, 4
jne 0x1400c4441
mov r9d, 3
jmp 0x1400c4473
cmp ax, 2
jne 0x1400c444c
mov r9d, r13d
jmp 0x1400c4473
mov eax, 0x400
cmp word [rsi + 0x4a], ax
jne 0x1400c445f
mov r9d, 5
jmp 0x1400c4473
cmp word [r14 + 0xe], 7
mov r9d, 6
je 0x1400c4473
mov r9d, 2
mov edx, 0x106
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x50]
call fcn.1400c2ac0
mov r9d, dword [r14 + 0x18]
mov edx, 0x111
lea rcx, [rsp + 0x50]
cmp r9d, r13d
jne 0x1400c44a4
xor r8d, r8d
call fcn.1400c29f0
jmp 0x1400c44b4
mov r8d, 4
mov qword [rsp + 0x20], rdi
call fcn.1400c2a30
cmp ebx, r13d
jl 0x1400c44d4
lea rcx, [rsp + 0x50]
mov edx, 0x115
movzx r9d, bx
mov r8d, r13d
mov word [rsp + 0x20], di
call fcn.1400c2ac0
mov r8d, dword [r14 + 0x14]
lea rcx, [rsp + 0x50]
mov edx, 0x116
call fcn.1400c29f0
mov r9d, dword [r14 + 0x18]
mov edx, 0x117
lea rcx, [rsp + 0x50]
cmp r9d, r13d
jne 0x1400c4504
xor r8d, r8d
call fcn.1400c29f0
jmp 0x1400c4514
mov r8d, 4
mov qword [rsp + 0x20], rdi
call fcn.1400c2a30
movsx eax, word [rsi + 0x5a]
lea rcx, [rsp + 0x50]
mov edx, 0x11a
mov dword [rbp + 0x570], eax
lea rax, [rbp + 0x570]
mov r8d, 5
mov r9d, r13d
mov dword [rbp + 0x574], r13d
mov qword [rsp + 0x20], rax
call fcn.1400c2a30
movsx eax, word [rsi + 0x5c]
lea rcx, [rsp + 0x50]
mov dword [rbp + 0x570], eax
lea rax, [rbp + 0x570]
mov edx, 0x11b
mov r8d, 5
mov r9d, r13d
mov dword [rbp + 0x574], r13d
mov qword [rsp + 0x20], rax
call fcn.1400c2a30
lea rcx, [rsp + 0x50]
mov r9d, r13d
mov edx, 0x11c
mov r8d, r13d
mov word [rsp + 0x20], di
call fcn.1400c2ac0
lea rcx, [rsp + 0x50]
mov edx, 0x128
mov r9d, 2
mov word [rsp + 0x20], di
call fcn.1400c2ac0
mov r8d, r9d
lea rax, str.LIBFORMAT__c__Pierre_e_Gougelet
lea rcx, [rsp + 0x50]
lea r9d, [r8 + 0x1e]
mov edx, 0x131
mov qword [rsp + 0x20], rax
call fcn.1400c2a30
mov rcx, qword [rsi + 0x78]
test rcx, rcx
je 0x1400c460a
or rax, 0xffffffffffffffff
cmp byte [rcx + rax + 1], dil
lea rax, [rax + 1]
jne 0x1400c45e1
mov qword [rsp + 0x20], rcx
lea r9d, [rax + 1]
lea rcx, [rsp + 0x50]
mov edx, 0x10e
mov r8d, 2
call fcn.1400c2a30
cmp word [r14 + 0xe], 5
jne 0x1400c4637
mov eax, edi
lea rcx, [rsp + 0x50]
mov edx, 0x13d
cmp word [r14 + 0x10], ax
mov r8d, r13d
mov word [rsp + 0x20], di
setne al
lea r9d, [rax + 1]
call fcn.1400c2ac0
cmp word [rsi + 0x48], 4
jne 0x1400c4666
movzx ecx, byte [r14 + 0x30]
mov eax, r13d
mov edx, 0x140
shl eax, cl
lea rcx, [rsp + 0x50]
mov r8d, 3
lea r9d, [rax + rax*2]
mov qword [rsp + 0x20], r12
call fcn.1400c2a30
cmp word [r14 + 0xe], 7
jne 0x1400c468b
lea rcx, [rsp + 0x50]
mov edx, 0x15b
mov r8d, 7
xor r9d, r9d
mov qword [rsp + 0x20], rdi
call fcn.1400c2a30
cmp byte [rsi + 0x149], dil
je 0x1400c4749
mov rbx, qword [rsi + 0x70]
test rbx, rbx
je 0x1400c4749
cmp dword [rbx], 2
je 0x1400c46b8
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400c46a5
jmp 0x1400c4749
mov rax, qword [rbx + 8]
cmp byte [rax + 0x1a], 0x1c
lea rcx, [rax + 0x1a]
jne 0x1400c46ce
mov edx, dword [rbx + 4]
sub edx, 0x1a
jmp 0x1400c4717
cmp byte [rax + 0x1b], 0x1c
lea rcx, [rax + 0x1b]
jne 0x1400c46e0
mov edx, dword [rbx + 4]
sub edx, 0x1b
jmp 0x1400c4717
mov r13d, dword [rbx + 4]
lea rcx, [rax + 0xe]
lea rdx, [0x1401f6f64]
lea r8d, [r13 - 0xe]
call fcn.1400c2990
mov rcx, rax
test rax, rax
je 0x1400c4704
add rcx, 2
mov edx, dword [rbx + 8]
sub r13d, ecx
add r13d, 0xfffffff0
add edx, r13d
mov r13d, 1
test rcx, rcx
je 0x1400c4749
movzx r9d, byte [rcx - 2]
movzx eax, byte [rcx - 1]
shl r9d, 8
add r9d, eax
jne 0x1400c4732
lea r9d, [rdx - 2]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x50]
mov r8d, r13d
mov edx, 0x83bb
call fcn.1400c2a30
cmp byte [rsi + 0x14a], dil
je 0x1400c478f
mov rcx, qword [rsi + 0x70]
test rcx, rcx
je 0x1400c478f
nop dword [rax + rax]
cmp dword [rcx], 3
je 0x1400c4770
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400c4760
jmp 0x1400c478f
mov rax, qword [rcx + 8]
mov r9d, dword [rcx + 4]
lea rcx, [rsp + 0x50]
mov r8d, r13d
mov edx, 0x2bc
mov qword [rsp + 0x20], rax
call fcn.1400c2a30
test dword [rsi + 0x84], 0x2000000
je 0x1400c47d6
mov rcx, qword [rsi + 0x70]
test rcx, rcx
je 0x1400c47d6
cmp dword [rcx], 4
je 0x1400c47b4
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400c47a4
jmp 0x1400c47d6
mov rax, qword [rcx + 8]
mov r9d, dword [rcx + 4]
lea rcx, [rsp + 0x50]
mov edx, 0x8773
mov r8d, 7
mov qword [rsp + 0x20], rax
call fcn.1400c2a30
mov rcx, qword [rsi + 0x70]
test rcx, rcx
je 0x1400c49b7
cmp dword [rcx], 1
je 0x1400c47f6
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x1400c47e3
jmp 0x1400c49b7
mov edx, r13d
mov esi, edi
call fcn.14003c5a0
mov r12d, edi
mov r13, rax
mov qword [rsp + 0x30], rax
cmp dword [rax + 8], edi
jle 0x1400c49b7
mov rbx, rdi
movabs r9, 0x201000ce6004f
mov r8d, 0xc4a5
mov edi, 0x100
mov r14d, 1
mov r15d, ebx
nop word [rax + rax]
mov r10, qword [r13]
add r10, rbx
mov ecx, dword [r10 + 4]
cmp ecx, r14d
jne 0x1400c4955
movzx edx, word [r10]
movzx eax, dx
sub ax, di
cmp ax, 0x31
ja 0x1400c4871
movzx eax, ax
bt r9, rax
jb 0x1400c4955
cmp dx, r8w
je 0x1400c4955
movzx r8d, word [r10 + 2]
cmp r8w, 5
je 0x1400c4944
cmp r8w, 0xa
je 0x1400c4944
mov r9d, dword [r10 + 0x10]
cmp r9d, 4
jle 0x1400c48b3
mov rax, qword [r10 + 0x18]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
call fcn.1400c2a30
mov r8d, 0xc4a5
movabs r9, 0x201000ce6004f
inc r12d
add rbx, 0x20
cmp r12d, dword [r13 + 8]
jl 0x1400c4840
mov r14, qword [rsp + 0x38]
test r15d, r15d
mov r15, qword [rsp + 0x40]
mov edi, 0
je 0x1400c496e
lea r9, [rbp + 0x570]
lea edx, [rdi + 2]
xor r8d, r8d
mov rcx, r13
call fcn.14005c650
mov edx, dword [rbp + 0x570]
lea rcx, str.__d__n
mov rbx, rax
call fcn.1401bdc60
mov r9d, dword [rbp + 0x570]
mov r12d, 1
lea rcx, [rsp + 0x50]
mov edx, 0x8769
mov r8d, r12d
mov qword [rsp + 0x20], rdi
call fcn.1400c2a30
mov rcx, rbx
call fcn.1401be23c
jmp 0x1400c4974
mov rax, qword [r10 + 0x18]
mov r9d, r14d
mov qword [rsp + 0x20], rax
jmp 0x1400c48a9
cmp ecx, 2
jne 0x1400c4962
mov r15d, r14d
jmp 0x1400c48c3
cmp ecx, 0x10
cmove esi, r14d
jmp 0x1400c48c3
mov r12d, 1
test esi, esi
je 0x1400c49b7
xor r8d, r8d
lea r9, [rbp + 0x570]
mov rcx, r13
lea edx, [r8 + 0x10]
call fcn.14005c650
mov r9d, dword [rbp + 0x570]
lea rcx, [rsp + 0x50]
mov r8d, r12d
mov edx, 0x8825
mov rbx, rax
mov qword [rsp + 0x20], rdi
call fcn.1400c2a30
mov rcx, rbx
call fcn.1401be23c
mov ebx, dword [rbp + 0x5f0]
lea rcx, [rsp + 0x50]
mov edx, ebx
call fcn.1400c2b00
lea rcx, [rsp + 0x50]
mov edx, 0x111
call fcn.1400c2ca0
lea rcx, [rsp + 0x50]
mov edx, 0x117
movsxd r11, eax
call fcn.1400c2ca0
lea rcx, [rsp + 0x50]
mov edx, 0x15b
movsxd r10, eax
call fcn.1400c2ca0
lea rcx, [rsp + 0x50]
mov edx, 0x8769
mov r13d, eax
call fcn.1400c2ca0
lea rcx, [rsp + 0x50]
mov edx, 0x8825
movsxd rsi, eax
call fcn.1400c2ca0
movsxd r12, eax
test r11d, r11d
je 0x1400c4a4b
cmp dword [r14 + 0x18], 1
jne 0x1400c4a3f
lea ecx, [r11 + r11*2]
lea edx, [rbx + 0xa]
lea edx, [rdx + rcx*4]
mov dword [r14 + 0x20], edx
jmp 0x1400c4a4b
lea rcx, [r11 + r11*2]
mov eax, dword [rsp + rcx*8 + 0x58]
mov dword [r14 + 0x20], eax
test r10d, r10d
je 0x1400c4a73
cmp dword [r14 + 0x18], 1
jne 0x1400c4a67
lea eax, [r10 + r10*2]
lea ecx, [rbx + 0xa]
lea ecx, [rcx + rax*4]
mov dword [r14 + 0x24], ecx
jmp 0x1400c4a73
lea rcx, [r10 + r10*2]
mov eax, dword [rsp + rcx*8 + 0x58]
mov dword [r14 + 0x24], eax
test r13d, r13d
je 0x1400c4a8d
lea eax, [r13*2]
lea ecx, [rbx + 6]
add eax, r13d
lea ecx, [rcx + rax*4]
mov dword [r14 + 0x2c], ecx
mov edx, 4
lea r13d, [rdx - 3]
test esi, esi
jle 0x1400c4aa8
lea rcx, [rsi + rsi*2]
mov word [rsp + rcx*8 + 0x52], dx
mov dword [rsp + rcx*8 + 0x54], r13d
test r12d, r12d
jle 0x1400c4abb
lea rcx, [r12 + r12*2]
mov word [rsp + rcx*8 + 0x52], dx
mov dword [rsp + rcx*8 + 0x54], r13d
mov r9, qword [r15]
lea rcx, [rbp + 0x550]
mov r8, r13
mov edx, 2
call fcn.1401c24f8
cmp di, word [rbp + 0x550]
jae 0x1400c4b6d
mov r14d, 4
nop word [rax + rax]
mov r9, qword [r15]
movsxd rax, edi
mov r8, r13
lea rcx, [rax + rax*2]
mov edx, 2
lea rbx, [rcx*8]
lea rcx, [rsp + 0x50]
add rcx, rbx
call fcn.1401c24f8
mov r9, qword [r15]
lea rcx, [rsp + 0x52]
add rcx, rbx
mov r8, r13
mov edx, 2
call fcn.1401c24f8
mov r9, qword [r15]
lea rcx, [rsp + 0x54]
add rcx, rbx
mov r8, r13
mov rdx, r14
call fcn.1401c24f8
mov r9, qword [r15]
lea rcx, [rsp + 0x58]
add rcx, rbx
mov r8, r13
mov rdx, r14
call fcn.1401c24f8
movzx eax, word [rbp + 0x550]
inc edi
cmp edi, eax
jl 0x1400c4af0
mov r14, qword [rsp + 0x38]
mov rcx, qword [r15]
call fcn.1401c2310
mov rdx, r15
xor ecx, ecx
mov dword [r14 + 0x28], eax
call fcn.1400670d0
mov rcx, qword [rbp + 0x558]
test rcx, rcx
je 0x1400c4ba0
mov edx, dword [rbp + 0x560]
mov r9, qword [r15]
mov r8, r13
call fcn.1401c24f8
mov rcx, qword [r15]
call fcn.1401c2310
mov rdi, qword [rsp + 0x30]
mov r14d, eax
test rdi, rdi
je 0x1400c4c6f
test esi, esi
jle 0x1400c4c14
mov rcx, qword [r15]
lea r8, [rsi + rsi*2]
lea rbx, [rsp + 0x58]
mov edx, dword [rbx + r8*8]
lea rbx, [rbx + r8*8]
xor r8d, r8d
call fcn.1401c1f88
mov r8d, dword [rbx]
lea r9, [rbp + 0x570]
sub r8d, 8
mov edx, 2
mov rcx, rdi
call fcn.14005c650
movsxd rdx, dword [rbp + 0x570]
mov r9, qword [r15]
mov rcx, rax
mov r8, r13
mov rbx, rax
call fcn.1401c24f8
mov rcx, rbx
call fcn.1401be23c
test r12d, r12d
jle 0x1400c4c6f
lea rcx, [r12 + r12*2]
lea rbx, [rsp + 0x58]
xor r8d, r8d
mov edx, dword [rbx + rcx*8]
lea rbx, [rbx + rcx*8]
mov rcx, qword [r15]
call fcn.1401c1f88
mov r8d, dword [rbx]
lea r9, [rbp + 0x570]
sub r8d, 8
mov edx, 0x10
mov rcx, rdi
call fcn.14005c650
movsxd rdx, dword [rbp + 0x570]
mov r9, qword [r15]
mov rcx, rax
mov r8, r13
mov rbx, rax
call fcn.1401c24f8
mov rcx, rbx
call fcn.1401be23c
mov rcx, qword [r15]
xor r8d, r8d
mov edx, r14d
call fcn.1401c1f88
test rdi, rdi
je 0x1400c4c8a
mov rcx, rdi
call fcn.14003c6f0
lea rcx, [rsp + 0x50]
call fcn.1400c2c70
mov rcx, qword [rbp + 0x578]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0x688
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret