Function at 0x140004ba0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r12
push r13
push r15
sub rsp, 0x140
mov eax, dword [0x1401f6270]
mov r15, rcx
movsd xmm0, qword [str.MODELSTARTS]
xor esi, esi
mov dword [rsp + 0x28], eax
movzx eax, word [0x1401f6274]
mov word [rsp + 0x2c], ax
xor eax, eax
mov word [rsp + 0x2e], ax
movsd qword [rsp + 0x20], xmm0
call fcn.140003030
mov r12d, 1
lea r8d, [rsi + 0x10]
mov edx, r12d
lea rcx, [rsp + 0x30]
mov r9, r15
call fcn.1401c4e74
cmp rax, 0x10
lea r8, [rsp + 0x20]
mov ebx, esi
lea rax, [rsp + 0x30]
mov r13d, 0x12d
cmovb ebx, r13d
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140004c33
inc rax
test ecx, ecx
jne 0x140004c20
mov qword [rsp + 0x170], rbp
mov qword [rsp + 0x138], rdi
mov qword [rsp + 0x130], r14
test edx, edx
je 0x140004c59
mov ebx, 0x12e
jmp 0x140005117
test ebx, ebx
jne 0x140005112
lea rbp, [0x14028ee90]
mov r9, r15
mov rcx, rbp
mov r8, r12
mov edx, 0xf8
call fcn.1401c4e74
cmp rax, r12
mov ecx, 0x139
mov edi, esi
cmovb ebx, ecx
cmp dword [0x14028ee94], esi
cmovne edi, r12d
test ebx, ebx
jne 0x140004dcf
movsxd r10, dword [0x14028eedc]
cmp r10d, 2
jl 0x140004ce0
mov eax, r10d
cdq
sub eax, edx
sar eax, 1
movsxd r9, eax
test eax, eax
jle 0x140004ce0
lea rdx, [0x14028ee9b]
mov r8, rsi
add rdx, r10
movzx eax, byte [rdx]
lea rdx, [rdx - 1]
movzx ecx, byte [r8 + rbp + 0xc]
mov byte [r8 + rbp + 0xc], al
inc r8
mov byte [rdx + 1], cl
cmp r8, r9
jl 0x140004cc3
mov byte [r10 + rbp + 0xc], sil
movsxd r10, dword [0x14028ef00]
cmp r10d, 2
jl 0x140004d2d
mov eax, r10d
cdq
sub eax, edx
sar eax, 1
movsxd r9, eax
test eax, eax
jle 0x140004d2d
lea rdx, [0x14028eedf]
mov r8, rsi
add rdx, r10
nop
movzx eax, byte [rdx]
lea rdx, [rdx - 1]
movzx ecx, byte [r8 + rbp + 0x50]
mov byte [r8 + rbp + 0x50], al
inc r8
mov byte [rdx + 1], cl
cmp r8, r9
jl 0x140004d10
mov byte [r10 + rbp + 0x50], sil
movsxd r10, dword [0x14028ef24]
cmp r10d, 2
jl 0x140004d7d
mov eax, r10d
cdq
sub eax, edx
sar eax, 1
movsxd r9, eax
test eax, eax
jle 0x140004d7d
lea rdx, [0x14028ef03]
mov r8, rsi
add rdx, r10
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx - 1]
movzx ecx, byte [r8 + rbp + 0x74]
mov byte [r8 + rbp + 0x74], al
inc r8
mov byte [rdx + 1], cl
cmp r8, r9
jl 0x140004d60
lea rdx, [0x14028ef90]
mov byte [r10 + rbp + 0x74], sil
mov rcx, r15
call fcn.1400054f0
test eax, eax
jns 0x140004d9c
mov ebx, 0x13a
jmp 0x140004dcf
lea rdx, [0x14028f398]
mov rcx, r15
call fcn.1400054f0
test eax, eax
jns 0x140004db6
mov ebx, 0x13b
jmp 0x140004dcf
lea rdx, [0x14028f7a0]
mov rcx, r15
call fcn.1400054f0
test eax, eax
mov ecx, 0x13c
cmovs ebx, ecx
test edi, edi
je 0x140004ddf
cmp dword [0x14035fed4], esi
jne 0x14000510e
test ebx, ebx
jne 0x140005112
mov r8d, dword [0x14028ee98]
test r8d, r8d
jle 0x140004f1d
lea r14, [0x14028fbb0]
mov r9, r15
mov rcx, r14
lea r8d, [rbx + 0x10]
mov rdx, r12
call fcn.1401c4e74
cmp rax, 0x10
mov ecx, 0x142
mov r9, r15
mov r8, r12
cmovb ebx, ecx
mov edx, 4
lea rcx, [0x14028fbc0]
call fcn.1401c4e74
cmp rax, r12
jae 0x140004e42
mov ebx, 0x143
jmp 0x140005117
test ebx, ebx
jne 0x140005112
cmp dword [0x14028fbc0], esi
jle 0x140005143
lea rdi, [0x14028fbc4]
mov ebp, 0x144
movsxd rax, esi
lea rcx, [r14 + 0x14]
mov r9, r15
mov r8, r12
mov edx, 0x18
lea rax, [rax + rax*2]
lea rcx, [rcx + rax*8]
call fcn.1401c4e74
cmp rax, r12
lea rcx, [rsp + 0x178]
mov r9, r15
mov r8, r12
mov edx, 2
cmovb ebx, ebp
call fcn.1401c4e74
cmp rax, r12
jb 0x140004f16
test ebx, ebx
jne 0x140005112
movsx r10, word [rsp + 0x178]
cmp r10d, 2
jl 0x140004efa
mov eax, r10d
cdq
sub eax, edx
sar eax, 1
movsxd r9, eax
test eax, eax
jle 0x140004efa
lea rdx, [r10 - 1]
mov r8, rdi
add rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx - 1]
movzx ecx, byte [r8]
mov byte [r8], al
lea r8, [r8 + 1]
mov byte [rdx + 1], cl
sub r9, r12
jne 0x140004ee0
mov byte [r10 + rdi], 0
inc esi
add rdi, 0x18
cmp esi, dword [0x14028fbc0]
jl 0x140004e62
jmp 0x140005143
mov ebx, ebp
jmp 0x140005117
jne 0x14000517b
mov r9, r15
lea rcx, [0x14029b99c]
mov r8, r12
mov edx, 4
call fcn.1401c4e74
cmp rax, r12
lea rcx, [0x140298998]
mov edi, 0x14d
mov r9, r15
mov r8, r12
mov edx, 4
cmovb ebx, edi
call fcn.1401c4e74
cmp rax, r12
lea r14, [0x140292bd0]
mov r9, r15
mov r8, r12
mov edx, 4
mov rcx, r14
cmovb ebx, edi
call fcn.1401c4e74
cmp rax, r12
jae 0x140004f89
lea ebx, [rdi + 2]
jmp 0x140005117
test ebx, ebx
jne 0x140005112
cmp dword [0x14029b99c], esi
mov edi, esi
jle 0x140004fe0
lea rbp, [0x14029b9a0]
nop dword [rax]
nop word [rax + rax]
movsxd rcx, edi
mov r9, r15
shl rcx, 5
mov r8, r12
add rcx, rbp
mov edx, 0x20
call fcn.1401c4e74
cmp rax, r12
jb 0x140004fdb
inc edi
cmp edi, dword [0x14029b99c]
jl 0x140004fb0
jmp 0x140004fe0
mov ebx, 0x14e
cmp dword [0x140298998], esi
mov edi, esi
jle 0x140005028
nop word [rax + rax]
movsxd rax, edi
mov r9, r15
mov r8, r12
mov edx, 0x18
lea rcx, [rax + rax*2]
lea rcx, [rcx*8 + 0x5dcc]
add rcx, r14
call fcn.1401c4e74
cmp rax, r12
jb 0x140005023
inc edi
cmp edi, dword [0x140298998]
jl 0x140004ff0
jmp 0x140005028
mov ebx, 0x14f
cmp dword [0x140292bd0], esi
mov ebp, esi
jle 0x14000510e
lea r14, [0x140292bd8]
nop dword [rax]
mov r9, r15
mov byte [rsp + 0x30], sil
mov r8, r12
lea rcx, [rsp + 0x180]
mov edx, 4
call fcn.1401c4e74
cmp rax, r12
jb 0x140005174
movsxd rdi, dword [rsp + 0x180]
test edi, edi
jle 0x1400050e4
cmp edi, 0x100
jg 0x1400050ea
lea eax, [rdi + 1]
mov r9, r15
movsxd rdx, eax
lea rcx, [rsp + 0x30]
mov r8, r12
call fcn.1401c4e74
cmp rax, r12
jb 0x140005174
cmp edi, 2
jl 0x1400050dd
mov eax, edi
mov r8, rsi
cdq
sub eax, edx
sar eax, 1
movsxd r9, eax
test eax, eax
jle 0x1400050dd
lea rax, [rsp + rdi + 0x2f]
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [rax]
lea rax, [rax - 1]
movzx edx, byte [rsp + r8 + 0x30]
mov byte [rsp + r8 + 0x30], cl
inc r8
mov byte [rax + 1], dl
cmp r8, r9
jl 0x1400050c0
mov byte [rsp + rdi + 0x30], sil
test edi, edi
js 0x140005174
lea rcx, [rsp + 0x30]
call fcn.1401d4970
mov qword [r14], rax
test rax, rax
je 0x14000516d
inc ebp
add r14, 8
cmp ebp, dword [0x140292bd0]
jl 0x140005040
test ebx, ebx
je 0x140005143
cmp ebx, r13d
je 0x140005132
mov rcx, qword [0x14028ece0]
test rcx, rcx
je 0x140005132
mov r8d, ebx
lea rdx, str.ERROR:__d_reading_model_data_n
call fcn.140002f70
mov rcx, r15
call fcn.1401ca6b0
test eax, eax
mov eax, 0xffffffff
jne 0x140005145
mov eax, ebx
mov r14, qword [rsp + 0x130]
mov rdi, qword [rsp + 0x138]
mov rbp, qword [rsp + 0x170]
add rsp, 0x140
pop r15
pop r13
pop r12
pop rsi
pop rbx
ret
mov ebx, 0x151
jmp 0x140005117
mov ebx, 0x150
jmp 0x140005117
mov rcx, qword [0x14028ece0]
mov ebx, 0x15e
test rcx, rcx
je 0x140005132
lea rdx, str.ERROR:_invalid_model_type__d_n
call fcn.140002f70
jmp 0x140005117