Function at 0x4202c0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1e8
mov rax, qword [rcx + 0xf0]
movsxd r15, dword [rax + 0x1a8]
mov rsi, rcx
mov rdi, rdx
mov qword [rsp + 0x78], 0
test r15, r15
je 0x4203a3
mov rbp, qword [rcx + 0x88]
mov rbx, qword [rax + 0xe0]
add rbx, qword [rax + 0x1a0]
test rbp, rbp
je 0x420335
mov rax, qword [rbp + 0x28]
cmp rax, rbx
ja 0x42032c
mov rdx, qword [rbp + 0x38]
add rax, rdx
cmp rax, rbx
ja 0x4203c0
mov rbp, qword [rbp + 0x10]
test rbp, rbp
jne 0x420313
mov r9, rdi
mov r8d, 0x4e
mov edx, 1
lea rcx, [0x004d3120]
call sub.msvcrt.dll_fwrite
mov eax, 1
jmp 0x4203a8
mov r15, qword [rsp + 0x58]
movabs rcx, 0x4924924924924925
mov rdx, r15
shr rdx, 2
mov rax, rdx
mul rcx
shr rdx, 1
lea rax, [rdx*8]
sub rax, rdx
shl rax, 2
cmp r15, rax
je 0x4203a3
mov r9, rdi
mov r8d, 0x4d
mov edx, 1
lea rcx, [0x004d30d0]
call sub.msvcrt.dll_fwrite
mov eax, 1
add rsp, 0x1e8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test byte [rbp + 0x21], 1
mov r8, qword [rbp]
je 0x420610
cmp rdx, r15
jb 0x4205f0
lea rdx, [0x004d2fd0]
mov r9d, ebx
mov rcx, rdi
call sub.msvcrt.dll_fprintf
sub rbx, qword [rbp + 0x28]
mov r9, rdi
mov rax, qword [rbp + 0x38]
sub rax, rbx
cmp rax, r15
jb 0x420630
mov r8d, 0x2d
mov edx, 1
lea rcx, [0x004d3050]
call sub.msvcrt.dll_fwrite
lea r8, [rsp + 0x78]
mov rdx, rbp
mov rcx, rsi
call fcn.00413e50
test eax, eax
je 0x420650
movabs rcx, 0x4924924924924925
mov rdx, r15
shr rdx, 2
mov rax, rdx
mul rcx
shr rdx, 1
mov qword [rsp + 0x48], rdx
je 0x42035b
lea rax, [rsp + 0xd0]
xor ebp, ebp
xor r11d, r11d
mov qword [rsp + 0x58], r15
lea r13, [rsp + 0x80]
mov qword [rsp + 0x50], rax
lea r14, [rsp + 0xd3]
jmp 0x420492
lea r11d, [rbp + 1]
mov rbp, r11
cmp qword [rsp + 0x48], r11
jbe 0x420356
lea rax, [r11*8]
mov r8, r13
mov rcx, rsi
sub rax, r11
lea rdx, [rbx + rax*4]
add rdx, qword [rsp + 0x78]
call fcn.00420040
mov r8d, dword [rsp + 0x8c]
lea r9, [0x004d2f25]
cmp r8d, 0xb
ja 0x4204d4
lea rdx, [0x004d4420]
mov eax, r8d
mov r9, qword [rdx + rax*8]
mov eax, dword [rsp + 0x98]
lea rdx, [0x004d3080]
mov rcx, rdi
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x94]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
call sub.msvcrt.dll_fprintf
cmp dword [rsp + 0x8c], 2
jne 0x420480
mov edx, dword [rsp + 0x98]
mov rcx, rsi
mov r9, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x90]
call fcn.00420190
test rax, rax
je 0x420480
mov eax, dword [rsp + 0xe4]
test eax, eax
je 0x420670
lea rax, [rsp + 0xa0]
mov r15d, 1
mov qword [rsp + 0x60], rax
lea rbp, [0x004d309f]
mov r12, rax
movzx r8d, byte [r14 + r15]
mov rcx, r12
mov rdx, rbp
add r12, 2
call sub.msvcrt.dll_sprintf
mov eax, r15d
add r15, 1
cmp dword [rsp + 0xe4], eax
ja 0x420563
lea r11d, [rax + 1]
mov rbp, r11
mov eax, dword [rsp + 0xe8]
mov rcx, rdi
mov qword [rsp + 0x68], r11
movsx r9d, byte [rsp + 0xd1]
lea rdx, [0x004d30a8]
movsx r8d, byte [rsp + 0xd0]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
movsx eax, byte [rsp + 0xd3]
mov dword [rsp + 0x28], eax
movsx eax, byte [rsp + 0xd2]
mov dword [rsp + 0x20], eax
call sub.msvcrt.dll_fprintf
mov r11, qword [rsp + 0x68]
jmp 0x420487
lea rdx, [0x004d2f78]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
xor eax, eax
jmp 0x4203a8
lea rdx, [0x004d2f30]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
mov eax, 1
jmp 0x4203a8
mov r8d, 0x4a
mov edx, 1
lea rcx, [0x004d3000]
call sub.msvcrt.dll_fwrite
xor eax, eax
jmp 0x4203a8
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x4203a8
mov dword [rsp + 0x48], eax
call sub.msvcrt.dll_free
mov eax, dword [rsp + 0x48]
jmp 0x4203a8
lea rax, [rsp + 0xa0]
mov r11d, 1
mov ebp, 1
mov qword [rsp + 0x60], rax
jmp 0x42058e