Function at 0x140004be0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x468
xor eax, eax
mov r10, qword [rsp + 0x4c0]
mov rdi, rdx
mov r14, qword [r9]
mov r12, rcx
mov dword [rsp + 0x45c], eax
mov r15, qword [r10]
mov dword [rsp + 0x460], eax
mov dword [rsp + 0x464], eax
mov rcx, rdx
and rdx, 0xfffffffffffffff0
pxor xmm0, xmm0
pcmpeqb xmm0, xmmword [rdx]
pmovmskb eax, xmm0
and ecx, 0xf
shr eax, cl
bsf eax, eax
jne 0x140004c44
mov rax, rdx
add rdx, rcx
call fcn.14000d500
movsxd rcx, eax
mov edx, 1
add rcx, 0x15
call sub.meshgems_stubs.dll_meshgems_calloc
mov rsi, rax
test rsi, rsi
je 0x1400059fe
mov rdx, rsi
mov rcx, rdi
test cl, 3
je 0x140004c7f
mov al, byte [rcx]
inc rcx
test al, al
mov byte [rdx], al
je 0x140004c84
inc rdx
test cl, 3
jne 0x140004c6c
call fcn.14000d5b0
mov rcx, rsi
lea rdx, str..mesh
call fcn.14000cc90
test rax, rax
je 0x140004c9b
mov byte [rax], 0
cmp qword [0x14001c788], 0
jne 0x140004cb6
mov rax, rsi
lea rdx, str..boite.mesh
call fcn.14000d710
jmp 0x140004cc5
mov rax, rsi
lea rdx, str..boite.meshb
call fcn.14000d710
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._____Reading_input_boite_mesh_in__s_n
mov r8, rsi
call fcn.140004ac0
mov rcx, r12
mov rdx, rsi
call sub.meshgems.dll_meshgems_mesh_new_read_mesh
mov r13, rax
test r13, r13
je 0x1400059c2
mov rcx, r13
lea rdx, [rsp + 0x460]
call sub.meshgems.dll_meshgems_mesh_get_edge_count
mov rcx, r13
lea rdx, [rsp + 0x45c]
call sub.meshgems.dll_meshgems_mesh_get_triangle_count
mov rcx, r13
lea rdx, [rsp + 0x464]
call sub.meshgems.dll_meshgems_mesh_get_tetrahedron_count
mov rcx, r13
lea rdx, [rsp + 0x458]
call sub.meshgems.dll_meshgems_mesh_get_vertex_count
cmp dword [rsp + 0x458], 0
jle 0x140005903
cmp dword [rsp + 0x45c], 0
jle 0x140005854
cmp dword [rsp + 0x464], 0
jle 0x140005795
mov rcx, rsi
call sub.meshgems_stubs.dll_meshgems_free
mov rdx, rdi
mov rcx, rdx
and rdx, 0xfffffffffffffff0
pxor xmm0, xmm0
pcmpeqb xmm0, xmmword [rdx]
pmovmskb eax, xmm0
and ecx, 0xf
shr eax, cl
bsf eax, eax
jne 0x140004d96
mov rax, rdx
add rdx, rcx
call fcn.14000d500
movsxd rcx, eax
mov edx, 1
add rcx, 0x15
call sub.meshgems_stubs.dll_meshgems_calloc
mov r12, rax
test r12, r12
jne 0x140004de0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.ERROR_1_:_Unable_to_alloc_tmp_buffer_n
call fcn.140004ac0
mov eax, 0xfffffffb
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov rsi, r12
mov dl, byte [rdi]
inc rdi
mov byte [rsi], dl
inc rsi
test dl, dl
jne 0x140004de3
mov rcx, r12
lea rdx, str..mesh
call fcn.14000cc90
test rax, rax
je 0x140004e08
mov byte [rax], 0
lea rdx, str..boite
mov rax, r12
call fcn.14000d710
mov edx, 8
movsxd rcx, dword [rsp + 0x458]
call sub.meshgems_stubs.dll_meshgems_calloc
mov qword [rsp + 0x428], rax
xor r9d, r9d
xor edx, edx
cmp dword [rsp + 0x458], 0
jle 0x140004e57
mov r11, rax
mov qword [r11 + r9*8], rdx
inc r9
movsxd r10, dword [rsp + 0x458]
cmp r9, r10
jl 0x140004e43
mov rdi, r12
lea r9, [rsp + 0x20]
mov rsi, r9
mov dl, byte [rdi]
inc rdi
mov byte [rsi], dl
inc rsi
test dl, dl
jne 0x140004e62
lea rdx, str..map
mov rax, r9
call fcn.14000d710
lea rdx, [0x1400108f4]
mov rcx, r9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x420], rax
cmp qword [rsp + 0x420], 0
je 0x140005762
mov r9, rax
lea rcx, [0x14001c700]
mov edx, 8
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r9, qword [rsp + 0x420]
lea rcx, [0x14001c708]
mov edx, 8
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r9, qword [rsp + 0x420]
lea rcx, [0x14001c710]
mov edx, 8
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r9, qword [rsp + 0x420]
lea rcx, [0x14001c718]
mov edx, 8
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rsi, qword [rsp + 0x4d8]
mov rcx, rsi
mov r9, qword [rsp + 0x420]
mov edx, 8
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r9, qword [rsp + 0x420]
lea rcx, [rsi + 8]
mov edx, 8
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r9, qword [rsp + 0x420]
lea rcx, [rsi + 0x10]
mov edx, 8
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r9, qword [rsp + 0x420]
lea rcx, [rsi + 0x18]
mov edx, 8
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r9, qword [rsp + 0x420]
lea rcx, [rsi + 0x20]
mov edx, 8
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r9, qword [rsp + 0x420]
lea rcx, [rsi + 0x28]
mov edx, 8
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x420]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, qword [0x14001c720]
cmp rdx, 1
jne 0x14000502f
mov edx, 1
cmp dword [rsp + 0x458], 0
jle 0x140005071
mov r10, qword [rsp + 0x428]
lea rax, [r10 + rdx*8 - 8]
movsd xmm0, qword [rax]
mulsd xmm0, qword [0x14001c718]
movsd qword [rax], xmm0
inc rdx
movsxd r9, dword [rsp + 0x458]
cmp rdx, r9
jle 0x140005008
jmp 0x140005071
cmp rdx, 2
jne 0x140005071
mov edx, 1
cmp dword [rsp + 0x458], 0
jle 0x140005071
mov r10, qword [rsp + 0x428]
lea rax, [r10 + rdx*8 - 8]
movsd xmm0, qword [rax]
mulsd xmm0, qword [0x14001c718]
movsd qword [rax], xmm0
inc rdx
movsxd r9, dword [rsp + 0x458]
cmp rdx, r9
jle 0x14000504c
xor ecx, ecx
inc ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, r14
lea rdx, [rsp + 0x420]
call sub.meshgems.dll_meshgems_mesh_get_vertex_count
mov qword [rsp + 0x448], 0
mov edx, 1
cmp dword [rsp + 0x458], 0
jle 0x1400050d4
mov r11, qword [rsp + 0x428]
mov r9, qword [rsp + 0x448]
mov qword [r11 + rdx*8 - 8], r9
inc rdx
movsxd r10, dword [rsp + 0x458]
cmp rdx, r10
jle 0x1400050b7
movsxd r9, dword [rsp + 0x420]
test r15, r15
je 0x14000514b
mov esi, 1
test r9, r9
jle 0x14000514b
mov qword [rsp + 0x438], rbx
lea rdi, [rsp + 0x448]
mov qword [rsp + 0x440], rbp
mov rbx, qword [rdi - 0x20]
mov rcx, r15
mov edx, esi
mov r8, rdi
call sub.meshgems.dll_meshgems_sizemap_iso_mesh_vertex_get_size
movsd xmm0, qword [rsp + 0x448]
mulsd xmm0, qword [0x14001c718]
movsd qword [rbx + rsi*8 + 0x38], xmm0
inc rsi
movsxd r9, dword [rsp + 0x420]
cmp rsi, r9
jle 0x140005107
mov rbx, qword [rsp + 0x438]
mov rbp, qword [rsp + 0x440]
xor edi, edi
xor esi, esi
inc esi
test r9, r9
jle 0x14000524e
mov qword [rsp + 0x438], rbx
lea r15, [rsp + 0x424]
mov qword [rsp + 0x440], rbp
mov rcx, r14
mov edx, esi
mov r8, r15
call sub.meshgems.dll_meshgems_mesh_get_vertex_required_property
test eax, eax
jne 0x140005191
cmp dword [rsp + 0x424], 0
lea ebx, [rdi + 1]
cmovne edi, ebx
inc esi
mov r9d, dword [rsp + 0x420]
cmp esi, r9d
jle 0x140005172
mov rbx, qword [rsp + 0x438]
test edi, edi
mov rbp, qword [rsp + 0x440]
je 0x14000524e
xor esi, esi
inc esi
mov dword [rsp + 0x424], 0
cmp dword [rsp + 0x458], 0
jle 0x140005201
mov qword [rsp + 0x440], rbp
mov rcx, r13
mov edx, esi
mov r8, r15
call sub.meshgems.dll_meshgems_mesh_set_vertex_required_property
inc esi
cmp esi, dword [rsp + 0x458]
jle 0x1400051d9
mov rbp, qword [rsp + 0x440]
mov r9d, dword [rsp + 0x420]
xor esi, esi
inc esi
test r9d, r9d
jle 0x14000524e
mov qword [rsp + 0x440], rbp
mov rcx, r14
mov edx, esi
mov r8, r15
call sub.meshgems.dll_meshgems_mesh_get_vertex_required_property
test eax, eax
jne 0x14000523b
cmp dword [rsp + 0x424], 0
je 0x14000523b
mov rcx, r13
lea edx, [rsi + 8]
mov r8, r15
call sub.meshgems.dll_meshgems_mesh_set_vertex_required_property
inc esi
cmp esi, dword [rsp + 0x420]
jle 0x140005212
mov rbp, qword [rsp + 0x440]
lea r8, [0x1400061f0]
mov rcx, r13
mov edx, 4
mov r9, qword [rsp + 0x428]
call sub.meshgems.dll_meshgems_sizemap_new
mov qword [rsp + 0x450], rax
cmp qword [rsp + 0x450], 0
je 0x140005723
cmp qword [0x14001c780], 0
jl 0x140005701
test r14, r14
je 0x1400056c6
mov rcx, r14
lea rdx, [rsp + 0x460]
call sub.meshgems.dll_meshgems_mesh_get_edge_count
mov rcx, r14
lea rdx, [rsp + 0x45c]
call sub.meshgems.dll_meshgems_mesh_get_triangle_count
mov rcx, r14
lea rdx, [rsp + 0x464]
call sub.meshgems.dll_meshgems_mesh_get_tetrahedron_count
mov rcx, r14
lea rdx, [rsp + 0x458]
call sub.meshgems.dll_meshgems_mesh_get_vertex_count
cmp dword [rsp + 0x458], 0
jle 0x14000560b
cmp dword [rsp + 0x45c], 0
jle 0x140005560
cmp dword [rsp + 0x464], 0
jg 0x1400054a5
mov rcx, r13
mov edx, dword [rsp + 0x460]
call sub.meshgems.dll_meshgems_mesh_set_edge_count
mov rcx, r13
mov edx, dword [rsp + 0x45c]
call sub.meshgems.dll_meshgems_mesh_set_triangle_count
xor r15d, r15d
inc r15d
cmp dword [rsp + 0x45c], 0
jle 0x1400053d0
mov qword [rsp + 0x438], rbx
lea rdi, [rsp + 0x42c]
mov qword [rsp + 0x440], rbp
lea rsi, [rdi - 4]
mov rcx, r14
mov edx, r15d
mov r8, rdi
call sub.meshgems.dll_meshgems_mesh_get_triangle_vertices
mov rcx, r14
mov edx, r15d
mov r8, rsi
call sub.meshgems.dll_meshgems_mesh_get_triangle_tag
test eax, eax
jne 0x140005a2f
mov rcx, r13
mov edx, r15d
mov r8, rdi
lea rax, [rsp + 0x42c]
add dword [rax], 8
add dword [rax + 4], 8
add dword [rax + 8], 8
call sub.meshgems.dll_meshgems_mesh_set_triangle_vertices
test eax, eax
jne 0x140005a2f
mov rcx, r13
mov edx, r15d
mov r8, rsi
call sub.meshgems.dll_meshgems_mesh_set_triangle_tag
test eax, eax
jne 0x140005a2f
inc r15d
cmp r15d, dword [rsp + 0x45c]
jle 0x140005350
mov rbx, qword [rsp + 0x438]
mov rbp, qword [rsp + 0x440]
xor r15d, r15d
inc r15d
cmp dword [rsp + 0x460], 0
jle 0x14000546c
mov qword [rsp + 0x440], rbp
lea rdi, [rsp + 0x42c]
lea rsi, [rdi - 4]
mov rcx, r14
mov edx, r15d
mov r8, rdi
call sub.meshgems.dll_meshgems_mesh_get_edge_vertices
mov rcx, r14
mov edx, r15d
mov r8, rsi
call sub.meshgems.dll_meshgems_mesh_get_edge_tag
test eax, eax
jne 0x140005a51
mov rcx, r13
mov edx, r15d
mov r8, rdi
lea rax, [rsp + 0x42c]
add dword [rax], 8
add dword [rax + 4], 8
call sub.meshgems.dll_meshgems_mesh_set_edge_vertices
test eax, eax
jne 0x140005a51
mov rcx, r13
mov edx, r15d
mov r8, rsi
call sub.meshgems.dll_meshgems_mesh_set_edge_tag
test eax, eax
jne 0x140005a51
inc r15d
cmp r15d, dword [rsp + 0x460]
jle 0x1400053f8
mov rbp, qword [rsp + 0x440]
mov rcx, r12
call sub.meshgems_stubs.dll_meshgems_free
lea rdx, [rsp + 0x4c8]
mov rax, qword [rdx]
mov rdx, qword [rdx + 8]
mov qword [rax], r13
xor eax, eax
mov r13, qword [rsp + 0x450]
mov qword [rdx], r13
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
xor ecx, ecx
inc ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rsi, rax
mov rax, qword [0x14001b948]
mov edx, 0x86
mov ecx, dword [rax + 0x30]
call sub.mg_tetra.dll_meshgems_tetra_newcoderr_str
lea rdx, str._n__ERR__s:_TETRAHEDRA._STOP_n
mov rcx, rsi
mov r8, rax
call fcn.140004ac0
xor ecx, ecx
inc ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._____Number_of_tetrahedra___lld_n
mov rcx, rax
movsxd r8, dword [rsp + 0x464]
call fcn.140004ac0
xor ecx, ecx
inc ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rsi, [0x14001b840]
lea rdx, [0x14001097c]
mov rcx, rsi
mov r8d, 0x86
mov qword [0x14001b940], 0x86
call fcn.140004b30
lea rdx, str.set_tetra_code_error
mov r8, rsi
mov rcx, qword [0x14001b948]
call sub.mg_tetra.dll_meshgems_tetra_set_param
mov eax, 0xffffffff
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
xor ecx, ecx
inc ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r15, rax
mov r9, qword [0x14001b948]
mov edx, 0x85
mov ecx, dword [r9 + 0x30]
call sub.mg_tetra.dll_meshgems_tetra_newcoderr_str
lea rdx, str._n__ERR__s:_NO_BOUNDARY_FACES._STOP_n
mov rcx, r15
mov r8, rax
call fcn.140004ac0
xor ecx, ecx
inc ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._____Number_of_bdry_faces___lld_n
mov rcx, rax
movsxd r8, dword [rsp + 0x45c]
call fcn.140004ac0
xor ecx, ecx
inc ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea r15, [0x14001b840]
lea rdx, [0x14001097c]
mov rcx, r15
mov r8d, 0x85
mov qword [0x14001b940], 0x85
call fcn.140004b30
lea rdx, str.set_tetra_code_error
mov r8, r15
mov rcx, qword [0x14001b948]
call sub.mg_tetra.dll_meshgems_tetra_set_param
nop
jmp 0x1400052f4
xor ecx, ecx
inc ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rsi, rax
mov rax, qword [0x14001b948]
mov edx, 0x84
mov ecx, dword [rax + 0x30]
call sub.mg_tetra.dll_meshgems_tetra_newcoderr_str
lea rdx, str._n__ERR__s:_NO_VERTICES._STOP_n
mov rcx, rsi
mov r8, rax
call fcn.140004ac0
xor ecx, ecx
inc ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._____Number_of_vertices___lld_n
mov rcx, rax
movsxd r8, dword [rsp + 0x458]
call fcn.140004ac0
xor ecx, ecx
inc ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rsi, [0x14001b840]
lea rdx, [0x14001097c]
mov rcx, rsi
mov r8d, 0x84
mov qword [0x14001b940], 0x84
call fcn.140004b30
lea rdx, str.set_tetra_code_error
mov r8, rsi
mov rcx, qword [0x14001b948]
call sub.mg_tetra.dll_meshgems_tetra_set_param
mov eax, 0xffffffff
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
xor ecx, ecx
inc ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._n__ERR__s:_unable_to_read_surface_mesh_STOP_n
mov rcx, rax
mov r8, r12
call fcn.140004ac0
mov rcx, r12
call sub.meshgems_stubs.dll_meshgems_free
mov eax, 0xffffffff
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
xor ecx, ecx
inc ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._Open_input_surface_mesh_and_size_map_in__s_n
mov rcx, rax
mov r8, r12
call fcn.140004ac0
nop
jmp 0x14000528f
xor ecx, ecx
inc ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, [0x14001085c]
lea r8, str.Sizemap_creation_failed
mov rcx, rax
call fcn.140004ac0
mov rcx, r12
call sub.meshgems_stubs.dll_meshgems_free
mov eax, 0xffffffff
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
xor ecx, ecx
inc ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.______ERROR:_CANNOT_OPEN_MAPPING_FILE__s_n
mov rcx, rax
mov r8, r12
call fcn.140004ac0
mov eax, 0xffffffff
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rsi, rax
mov rax, qword [0x14001b948]
mov edx, 0x86
mov ecx, dword [rax + 0x30]
call sub.mg_tetra.dll_meshgems_tetra_newcoderr_str
mov rcx, rsi
lea rdx, str._n__ERR__s:_NO_TETRAHEDRA._STOP_n
mov r8, rax
call fcn.140004ac0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._____Number_of_tetrahedra___lld_n
movsxd r8, dword [rsp + 0x464]
call fcn.140004ac0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rcx, [0x14001b840]
lea rdx, [0x14001097c]
mov r8d, 0x86
mov qword [0x14001b940], 0x86
call fcn.140004b30
lea rdx, str.set_tetra_code_error
lea r8, [0x14001b840]
mov rcx, qword [0x14001b948]
call sub.mg_tetra.dll_meshgems_tetra_set_param
mov eax, 0xffffffff
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r12, rax
mov r9, qword [0x14001b948]
mov edx, 0x85
mov ecx, dword [r9 + 0x30]
call sub.mg_tetra.dll_meshgems_tetra_newcoderr_str
mov rcx, r12
lea rdx, str._n__ERR__s:_NO_BOUNDARY_FACES._STOP_n
mov r8, rax
call fcn.140004ac0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._____Number_of_bdry_faces___lld_n
movsxd r8, dword [rsp + 0x45c]
call fcn.140004ac0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rcx, [0x14001b840]
lea rdx, [0x14001097c]
mov r8d, 0x85
mov qword [0x14001b940], 0x85
call fcn.140004b30
lea rdx, str.set_tetra_code_error
lea r8, [0x14001b840]
mov rcx, qword [0x14001b948]
call sub.mg_tetra.dll_meshgems_tetra_set_param
nop
jmp 0x140004d55
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rsi, rax
mov rax, qword [0x14001b948]
mov edx, 0x84
mov ecx, dword [rax + 0x30]
call sub.mg_tetra.dll_meshgems_tetra_newcoderr_str
mov rcx, rsi
lea rdx, str._n__ERR__s:_NO_VERTICES._STOP_n
mov r8, rax
call fcn.140004ac0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._____Number_of_vertices___lld_n
movsxd r8, dword [rsp + 0x458]
call fcn.140004ac0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rcx, [0x14001b840]
lea rdx, [0x14001097c]
mov r8d, 0x84
mov qword [0x14001b940], 0x84
call fcn.140004b30
lea rdx, str.set_tetra_code_error
lea r8, [0x14001b840]
mov rcx, qword [0x14001b948]
call sub.mg_tetra.dll_meshgems_tetra_set_param
mov eax, 0xffffffff
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.unable_to_create_a_new_mesh_from_file__s_n
mov r8, rdi
call fcn.140004ac0
mov rcx, rsi
call sub.meshgems_stubs.dll_meshgems_free
mov eax, 0xffffffff
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.ERROR_1_:_Unable_to_alloc_tmp_buffer_n
call fcn.140004ac0
mov eax, 0xfffffffb
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov rbx, qword [rsp + 0x438]
mov rbp, qword [rsp + 0x440]
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov rbp, qword [rsp + 0x440]
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret