Function at 0x438720
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 0x438803
mov rbp, qword [rcx + 0x88]
mov rbx, qword [rax + 0xe0]
add rbx, qword [rax + 0x1a0]
test rbp, rbp
je 0x438795
mov rax, qword [rbp + 0x28]
cmp rax, rbx
ja 0x43878c
mov rdx, qword [rbp + 0x38]
add rax, rdx
cmp rax, rbx
ja 0x438820
mov rbp, qword [rbp + 0x10]
test rbp, rbp
jne 0x438773
mov r9, rdi
mov r8d, 0x4e
mov edx, 1
lea rcx, [0x004ee9a0]
call sub.msvcrt.dll_fwrite
mov eax, 1
jmp 0x438808
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 0x438803
mov r9, rdi
mov r8d, 0x4d
mov edx, 1
lea rcx, [0x004ee950]
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 0x438a70
cmp rdx, r15
jb 0x438a50
lea rdx, [0x004ee850]
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 0x438a90
mov r8d, 0x2d
mov edx, 1
lea rcx, [0x004ee8d0]
call sub.msvcrt.dll_fwrite
lea r8, [rsp + 0x78]
mov rdx, rbp
mov rcx, rsi
call fcn.0042ae20
test eax, eax
je 0x438ab0
movabs rcx, 0x4924924924924925
mov rdx, r15
shr rdx, 2
mov rax, rdx
mul rcx
shr rdx, 1
mov qword [rsp + 0x48], rdx
je 0x4387bb
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 0x4388f2
lea r11d, [rbp + 1]
mov rbp, r11
cmp qword [rsp + 0x48], r11
jbe 0x4387b6
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.004384a0
mov r8d, dword [rsp + 0x8c]
lea r9, [0x004ee7a5]
cmp r8d, 0xb
ja 0x438934
lea rdx, [0x004efca0]
mov eax, r8d
mov r9, qword [rdx + rax*8]
mov eax, dword [rsp + 0x98]
lea rdx, [0x004ee900]
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 0x4388e0
mov edx, dword [rsp + 0x98]
mov rcx, rsi
mov r9, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x90]
call fcn.004385f0
test rax, rax
je 0x4388e0
mov eax, dword [rsp + 0xe4]
test eax, eax
je 0x438ad0
lea rax, [rsp + 0xa0]
mov r15d, 1
mov qword [rsp + 0x60], rax
lea rbp, [0x004ee91f]
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 0x4389c3
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, [0x004ee928]
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 0x4388e7
lea rdx, [0x004ee7f8]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
xor eax, eax
jmp 0x438808
lea rdx, [0x004ee7b0]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
mov eax, 1
jmp 0x438808
mov r8d, 0x4a
mov edx, 1
lea rcx, [0x004ee880]
call sub.msvcrt.dll_fwrite
xor eax, eax
jmp 0x438808
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x438808
mov dword [rsp + 0x48], eax
call fcn.004d4f88
mov eax, dword [rsp + 0x48]
jmp 0x438808
lea rax, [rsp + 0xa0]
mov r11d, 1
mov ebp, 1
mov qword [rsp + 0x60], rax
jmp 0x4389ee