Function at 0x140054cc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.140056d50
mov rcx, qword [rbx + 0x40]
lea rdx, str.HEADER
call fcn.14007da10
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a67c]
xor esi, esi
mov dword [rbx + 0x304], esi
call fcn.14007da10
mov eax, dword [rbx + 0x300]
cmp dword [rbx + 0x304], esi
jne 0x140054d3c
mov edi, esi
test eax, eax
jle 0x140054d3c
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
mov eax, dword [rbx + 0x300]
inc edi
cmp edi, eax
jl 0x140054d20
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a688]
add eax, 2
mov dword [rbx + 0x304], esi
mov dword [rbx + 0x300], eax
call fcn.14007da10
cmp dword [rbx + 0x304], esi
jne 0x140054d94
mov edi, esi
cmp dword [rbx + 0x300], esi
jle 0x140054d8a
nop dword [rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc edi
cmp edi, dword [rbx + 0x300]
jl 0x140054d70
mov dword [rbx + 0x304], 1
mov rcx, qword [rbx + 0x40]
lea rdx, str.VERSION
call fcn.14007da10
cmp dword [rbx + 0x304], esi
jne 0x140054de4
mov edi, esi
cmp dword [rbx + 0x300], esi
jle 0x140054dda
nop word [rax + rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc edi
cmp edi, dword [rbx + 0x300]
jl 0x140054dc0
mov dword [rbx + 0x304], 1
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a694]
mov r8d, 2
call fcn.14007da90
cmp dword [rbx + 0x304], esi
jne 0x140054e34
mov edi, esi
cmp dword [rbx + 0x300], esi
jle 0x140054e2a
nop dword [rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc edi
cmp edi, dword [rbx + 0x300]
jl 0x140054e10
mov dword [rbx + 0x304], 1
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a88c]
call fcn.14007da10
cmp dword [rbx + 0x304], esi
jne 0x140054e84
mov edi, esi
cmp dword [rbx + 0x300], esi
jle 0x140054e7a
nop word [rax + rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc edi
cmp edi, dword [rbx + 0x300]
jl 0x140054e60
mov dword [rbx + 0x304], 1
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a890]
call fcn.14007da10
cmp dword [rbx + 0x304], esi
jne 0x140054ed4
mov edi, esi
cmp dword [rbx + 0x300], esi
jle 0x140054eca
nop word [rax + rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc edi
cmp edi, dword [rbx + 0x300]
jl 0x140054eb0
mov dword [rbx + 0x304], 1
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a694]
mov r8d, 8
call fcn.14007da90
cmp dword [rbx + 0x304], esi
jne 0x140054f24
mov edi, esi
cmp dword [rbx + 0x300], esi
jle 0x140054f1a
nop dword [rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc edi
cmp edi, dword [rbx + 0x300]
jl 0x140054f00
mov dword [rbx + 0x304], 1
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a894]
call fcn.14007da10
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a67c]
mov dword [rbx + 0x304], esi
call fcn.14007da10
cmp dword [rbx + 0x304], esi
jne 0x140054f84
mov edi, esi
cmp dword [rbx + 0x300], esi
jle 0x140054f7a
nop dword [rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc edi
cmp edi, dword [rbx + 0x300]
jl 0x140054f60
mov dword [rbx + 0x304], 1
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a898]
call fcn.14007da10
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a67c]
mov dword [rbx + 0x304], esi
call fcn.14007da10
cmp qword [rbx + 0x10], rsi
jne 0x14005501a
cmp dword [rbx + 0x304], esi
jne 0x140054ff4
mov edi, esi
cmp dword [rbx + 0x300], esi
jle 0x140054fea
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc edi
cmp edi, dword [rbx + 0x300]
jl 0x140054fd0
mov dword [rbx + 0x304], 1
mov rcx, qword [rbx + 0x40]
lea rdx, str.FILETYPEMATERIAL_
call fcn.14007da10
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a67c]
mov dword [rbx + 0x304], esi
call fcn.14007da10
mov eax, dword [rbx + 0x300]
add eax, 0xfffffffe
mov dword [rbx + 0x300], eax
cmp dword [rbx + 0x304], esi
jne 0x14005505a
mov edi, esi
test eax, eax
jle 0x14005505a
nop word [rax + rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc edi
cmp edi, dword [rbx + 0x300]
jl 0x140055040
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a68c]
mov dword [rbx + 0x304], esi
call fcn.14007da10
mov eax, dword [rbx + 0x300]
cmp dword [rbx + 0x304], esi
jne 0x1400550ac
mov edi, esi
test eax, eax
jle 0x1400550ac
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
mov eax, dword [rbx + 0x300]
inc edi
cmp edi, eax
jl 0x140055090
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a680]
add eax, 2
mov dword [rbx + 0x304], esi
mov dword [rbx + 0x300], eax
call fcn.14007da10
mov eax, dword [rbx + 0x300]
add eax, 0xfffffffe
mov dword [rbx + 0x300], eax
cmp dword [rbx + 0x304], esi
jne 0x14005510a
mov edi, esi
test eax, eax
jle 0x14005510a
nop dword [rax + rax]
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a5c4]
call fcn.14007da10
inc edi
cmp edi, dword [rbx + 0x300]
jl 0x1400550f0
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a684]
mov dword [rbx + 0x304], esi
call fcn.14007da10
mov rcx, qword [rbx + 0x40]
lea rdx, [0x14018a67c]
mov dword [rbx + 0x304], esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14007da10