Function at 0x4f6440
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
mov rbx, qword [rdx]
mov qword [rsp + 0x40], rdx
mov rdi, rcx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x3c], r9d
test rbx, rbx
je 0x4f66c9
mov esi, r8d
mov ebp, dword [rdx + 8]
mov edx, 4
mov rcx, rsi
call sub.msvcrt.dll_calloc
mov r12, rax
test rax, rax
je 0x4f66a2
lea rdx, str.0123456789_
mov rcx, rbx
call sub.msvcrt.dll_strspn
cmp rbp, rax
je 0x4f65d8
mov rcx, rbx
mov esi, 1
lea r13, [rbx + rbp]
jmp 0x4f64cb
cmp rax, r13
jae 0x4f64dd
lea rcx, [rax + 1]
mov esi, edx
mov edx, 0x3a
call sub.msvcrt.dll_strchr
lea edx, [rsi + 1]
test rax, rax
jne 0x4f64c0
mov eax, edx
lea rcx, [rax + rax*2]
mov qword [rsp + 0x48], rax
shl rcx, 2
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x28], rax
test rax, rax
je 0x4f65ba
movzx eax, byte [rbx]
sub eax, 0x30
cmp al, 9
ja 0x4f66e0
mov ebp, dword [rsp + 0x30]
mov dword [rsp + 0x50], esi
mov r14d, 1
xor edi, edi
lea r15, [rsp + 0x88]
lea r13, [rsp + 0x90]
mov rsi, rbx
mov rcx, rsi
xor r8d, r8d
mov rdx, r15
call sub.msvcrt.dll_strtol
mov rcx, qword [rsp + 0x88]
mov ebx, eax
cmp rcx, rsi
je 0x4f68b0
cmp byte [rcx], 0x2a
jne 0x4f68b0
test eax, eax
je 0x4f6ab7
add rcx, 1
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x88], rcx
call sub.msvcrt.dll_strtol
mov rcx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
cmp rcx, r8
je 0x4f659a
movzx edx, byte [rcx]
cmp dl, 0x3a
jbe 0x4f6648
mov ebp, dword [rsp + 0x3c]
test ebp, ebp
jne 0x4f6a95
nop word cs:[rax + rax]
mov rcx, qword [rsp + 0x28]
call fcn.0052ed18
mov rcx, r12
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.0052ed18
mov eax, dword [rsp + 0x30]
xor edi, edi
lea r14, [rsp + 0x90]
lea ebp, [rax - 1]
test rsi, rsi
jne 0x4f6612
jmp 0x4f6820
cmp byte [rdx], 0x2c
jne 0x4f68e0
lea rbx, [rdx + 1]
add rdi, 1
cmp rsi, rdi
je 0x4f6820
mov rdx, r14
mov r8d, 0xa
mov rcx, rbx
call sub.msvcrt.dll_strtoul
mov rdx, qword [rsp + 0x90]
cmp rdx, rbx
je 0x4f6830
mov dword [r12 + rdi*4], eax
cmp rbp, rdi
jne 0x4f65f8
mov rbx, rdx
jmp 0x4f6605
movabs r11, 0x400020100000001
bt r11, rdx
jae 0x4f659a
test eax, eax
je 0x4f6b27
mov r8d, edi
mov rsi, qword [rsp + 0x28]
cmp ebp, ebx
lea r8, [r8 + r8*2]
cmova ebp, ebx
add edi, 1
imul r14d, eax
lea r8, [rsi + r8*4]
mov dword [r8], ebx
mov dword [r8 + 4], eax
cmp dl, 0x29
je 0x4f6b5c
cmp dl, 0x20
je 0x4f6b5c
lea rsi, [rcx + 1]
jmp 0x4f6530
cmp dword [rsp + 0x3c], 0
je 0x4f66c9
mov ecx, 2
call qword [fcn.0052ef40]
mov r8d, dword [rsp + 0x30]
lea rdx, str.Failed_to_allocate_synthetic_index_array_of_size__lu_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
nop
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r10, rbx
mov qword [rsp + 0x58], rbx
add rbp, rbx
xor r13d, r13d
mov qword [rsp + 0x50], r12
mov rbx, qword [rsp + 0x28]
mov r12, r10
lea r14, [rsp + 0x90]
lea r15, [rsp + 0x88]
jmp 0x4f6761
cmp r8d, 0xc
jne 0x4f6726
cmp r9d, 0xffffffff
je 0x4f6726
cmp r9d, dword [rax + 4]
jne 0x4f67b2
mov eax, r13d
lea rax, [rax + rax*2]
mov dword [rbx + rax*4 + 8], edx
cmp edx, 0xffffffff
je 0x4f6d2f
mov edx, 0x3a
mov rcx, r12
call sub.msvcrt.dll_strchr
test rax, rax
je 0x4f6918
cmp rax, rbp
ja 0x4f6918
lea r12, [rax + 1]
add r13d, 1
mov r9d, 0x28
mov r8, r14
mov rdx, r15
mov rcx, r12
call fcn.004eb7c0
test eax, eax
js 0x4f6ae7
mov r8d, dword [rsp + 0x88]
lea eax, [r8 - 0xe]
cmp eax, 3
jbe 0x4f6868
mov r11d, dword [rdi + 0x30]
test r11d, r11d
je 0x4f67c3
mov r9d, dword [rsp + 0x90]
lea rax, [rdi + 0x38]
xor edx, edx
cmp dword [rax], r8d
je 0x4f6710
mov r10d, dword [rax + 0x40]
add rax, 0x48
add rdx, 1
test r10d, r10d
jne 0x4f67a9
mov rdi, qword [rsp + 0x28]
lea rax, [r13 + r13*2]
mov r10, r12
mov r12, qword [rsp + 0x50]
mov dword [rdi + rax*4 + 8], 0xffffffff
mov r9d, dword [rsp + 0x3c]
test r9d, r9d
je 0x4f65b0
mov qword [rsp + 0x30], r10
mov ecx, 2
call qword [fcn.0052ef40]
mov r10, qword [rsp + 0x30]
lea rdx, str.Failed_to_find_level_for_synthetic_index_interleaving_loop_type__s_n
mov rcx, rax
mov r8, r10
call sub.msvcrt.dll_fprintf
jmp 0x4f65b0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], r12
jmp 0x4f66c9
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x4f65ba
mov ecx, 2
call qword [fcn.0052ef40]
mov r9, rbx
mov r8d, edi
lea rdx, str.Failed_to_read_synthetic_index__lu_at__s_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x4f65ba
mov ebx, dword [rsp + 0x3c]
mov r10, r12
mov r12, qword [rsp + 0x50]
test ebx, ebx
je 0x4f65b0
mov qword [rsp + 0x30], r10
mov ecx, 2
call qword [fcn.0052ef40]
mov r10, qword [rsp + 0x30]
lea rdx, str.Misc_object_type_disallowed_in_synthetic_index_interleaving_loop_type__s_n
mov rcx, rax
mov r8, r10
call sub.msvcrt.dll_fprintf
jmp 0x4f65b0
mov r14d, dword [rsp + 0x3c]
test r14d, r14d
je 0x4f65b0
mov ecx, 2
call qword [fcn.0052ef40]
mov r8, rsi
lea rdx, str.Failed_to_read_synthetic_index_interleaving_loop__s_without_number_before__n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x4f65b0
mov r15d, dword [rsp + 0x3c]
test r15d, r15d
je 0x4f65ba
mov ecx, 2
call qword [fcn.0052ef40]
mov r9, rbx
mov r8d, edi
lea rdx, str.Missing_comma_after_synthetic_index__lu_at__s_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x4f65ba
mov rbx, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
test esi, esi
je 0x4f6cce
mov rax, qword [rsp + 0x28]
lea ecx, [rsi - 1]
mov ebp, dword [rsp + 0x30]
mov dword [rsp + 0x7c], esi
mov qword [rsp + 0x58], rcx
mov r14d, 1
mov r13d, esi
xor r15d, r15d
mov r11, rax
add rax, 8
mov qword [rsp + 0x70], rbx
mov ebx, ebp
mov qword [rsp + 0x50], rax
mov rax, qword [sym.imp.msvcrt.dll__assert]
mov qword [rsp + 0x60], r12
mov r12d, r14d
mov r14, rdi
mov rdi, r11
mov qword [rsp + 0x68], rax
nop dword [rax + rax]
mov esi, dword [rdi + 8]
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
xor eax, eax
jmp 0x4f69a6
jae 0x4f6999
cmp ecx, r8d
cmovb rcx, r8
add rax, 1
add rdx, 0xc
cmp r13, rax
je 0x4f69f0
mov r8d, dword [rdx]
cmp r8d, esi
jne 0x4f6990
cmp r15, rax
je 0x4f6999
mov r8d, dword [rsp + 0x3c]
mov rbx, qword [rsp + 0x70]
mov r12, qword [rsp + 0x60]
test r8d, r8d
je 0x4f65b0
mov ecx, 2
call qword [fcn.0052ef40]
mov r8, rbx
lea rdx, str.Invalid_duplicate_interleaving_loop_type_in_synthetic_index__s_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x4f65b0
lea rax, [rsi + rsi*8]
xor edx, edx
mov esi, dword [r14 + rax*8 + 0x34]
mov eax, dword [rsp + 0x30]
div esi
xor edx, edx
mov ebp, eax
lea rax, [rcx + rcx*8]
mov ecx, dword [r14 + rax*8 + 0x34]
mov eax, esi
mov dword [rdi], ebp
div ecx
mov dword [rdi + 4], eax
cmp esi, ecx
jb 0x4f6a48
cmp esi, dword [rsp + 0x30]
ja 0x4f6a70
cmp ebx, ebp
cmova ebx, ebp
imul r12d, eax
lea rax, [r15 + 1]
add rdi, 0xc
cmp qword [rsp + 0x58], r15
je 0x4f6d1c
mov r15, rax
jmp 0x4f6980
mov dword [rsp + 0x78], eax
mov r8d, 0x103
lea rdx, str.topology_synthetic.c
lea rcx, [0x007228cf]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsp + 0x78]
jmp 0x4f6a1b
mov dword [rsp + 0x78], eax
mov r8d, 0x104
mov rax, qword [rsp + 0x68]
lea rdx, str.topology_synthetic.c
lea rcx, str.step
call rax
mov eax, dword [rsp + 0x78]
jmp 0x4f6a21
mov ecx, 2
call qword [fcn.0052ef40]
mov r8, rsi
lea rdx, str.Failed_to_read_synthetic_index_interleaving_loop__s_without_number_between__and_:_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x4f65b0
mov r13d, dword [rsp + 0x3c]
test r13d, r13d
je 0x4f65b0
mov ecx, 2
call qword [fcn.0052ef40]
mov r8, rsi
lea rdx, str.Invalid_interleaving_loop_with_step_0_at__s_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x4f65b0
mov esi, dword [rsp + 0x3c]
mov r10, r12
mov r12, qword [rsp + 0x50]
test esi, esi
je 0x4f65b0
mov qword [rsp + 0x30], r10
mov ecx, 2
call qword [fcn.0052ef40]
mov r10, qword [rsp + 0x30]
lea rdx, str.Failed_to_read_synthetic_index_interleaving_loop_type__s_n
mov rcx, rax
mov r8, r10
call sub.msvcrt.dll_fprintf
jmp 0x4f65b0
mov edi, dword [rsp + 0x3c]
test edi, edi
je 0x4f65b0
mov qword [rsp + 0x30], r8
mov ecx, 2
call qword [fcn.0052ef40]
mov r8, qword [rsp + 0x30]
lea rdx, str.Invalid_interleaving_loop_with_number_0_at__s_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x4f65b0
mov esi, dword [rsp + 0x50]
test r14d, r14d
jne 0x4f6b7f
mov r8d, 0x10a
lea rdx, str.topology_synthetic.c
lea rcx, [0x007228d7]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsp + 0x30]
cmp r14d, eax
je 0x4f6cdd
xor edx, edx
div r14d
cmp eax, ebp
jne 0x4f6ce9
mov rdi, qword [rsp + 0x28]
lea rdx, [rsi + rsi*2]
lea rdx, [rdi + rdx*4]
mov dword [rdx], 1
mov dword [rdx + 4], eax
cmp qword [rsp + 0x48], 0
je 0x4f6c1d
mov rax, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x28]
mov r10d, 1
lea rax, [rax + rax*2]
mov rbx, rdi
lea rsi, [rdi + rax*4]
mov edi, dword [rsp + 0x30]
lea r11d, [rdi - 1]
nop word [rax + rax]
mov r9d, dword [rbx]
mov r8d, dword [rbx + 4]
xor ecx, ecx
test edi, edi
je 0x4f6c10
nop dword [rax]
mov eax, ecx
xor edx, edx
div r9d
xor edx, edx
div r8d
mov rax, rcx
imul edx, r10d
add dword [r12 + rcx*4], edx
add rcx, 1
cmp rax, r11
jne 0x4f6bf0
add rbx, 0xc
imul r10d, r8d
cmp rsi, rbx
jne 0x4f6be0
mov rcx, qword [rsp + 0x28]
call fcn.0052ed18
mov edi, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x30]
xor eax, eax
lea ecx, [rdi - 1]
test edi, edi
je 0x4f6820
mov ebx, dword [r12 + rax*4]
cmp ebx, r8d
jae 0x4f6c67
test eax, eax
je 0x4f6c4e
test ebx, ebx
je 0x4f6c98
lea rdx, [rax + 1]
cmp rcx, rax
je 0x4f6820
mov rax, rdx
mov ebx, dword [r12 + rax*4]
cmp ebx, r8d
jb 0x4f6c46
mov edx, dword [rsp + 0x3c]
test edx, edx
je 0x4f65ba
mov ecx, 2
call qword [fcn.0052ef40]
mov r8d, ebx
lea rdx, str.Invalid_index_interleaving_generates_out_of_range_index__u_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x4f65ba
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x4f65ba
mov ecx, 2
call qword [fcn.0052ef40]
mov r8d, 0x3c
mov edx, 1
lea rcx, str.Invalid_index_interleaving_generates_duplicate_index_values_n
mov r9, rax
call sub.msvcrt.dll_fwrite
jmp 0x4f65ba
mov edi, dword [rsp + 0x30]
mov eax, edi
cmp edi, 1
jne 0x4f6b99
mov eax, esi
mov qword [rsp + 0x48], rax
jmp 0x4f6baf
mov ecx, dword [rsp + 0x3c]
test ecx, ecx
je 0x4f65b0
mov ecx, 2
call qword [fcn.0052ef40]
mov r9d, dword [rsp + 0x30]
mov r8d, r14d
lea rdx, str.Invalid_index_interleaving_total_width__lu_instead_of__lu_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x4f65b0
mov r14d, r12d
mov esi, dword [rsp + 0x7c]
mov r12, qword [rsp + 0x60]
mov ebp, ebx
jmp 0x4f6b60
mov r10, r12
mov r12, qword [rsp + 0x50]
jmp 0x4f67dd