Function at 0x1401c1d80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push r15
sub rsp, 0x40
mov rdi, r8
mov rbp, rdx
call fcn.1401a0c80
mov r15, rax
test rax, rax
jne 0x1401c1da9
lea eax, [r15 + 1]
add rsp, 0x40
pop r15
pop rdi
pop rbp
ret
lea rdx, [0x140326fec]
mov rcx, rdi
mov qword [rsp + 0x68], rsi
call sub.MSVCR90.dll_fopen
mov rsi, rax
test rax, rax
jne 0x1401c1dd6
lea eax, [rsi + 1]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop rdi
pop rbp
ret
mov qword [rsp + 0x60], rbx
mov edx, 1
mov qword [rsp + 0x70], r12
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 3]
mov r9, rax
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x24], 0x89abcdef
mov qword [rsp + 0x30], r14
call sub.MSVCR90.dll_fwrite
mov edx, 0x110
mov r13d, 2
mov word [rsp + 0x78], dx
lea rcx, [rsp + 0x78]
lea edx, [r13 - 1]
mov r9, rsi
mov r8, r13
call sub.MSVCR90.dll_fwrite
lea rcx, [r15 + 0x10]
lea edx, [r13 - 1]
lea r8d, [r13 + 0x1e]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
lea rcx, [rbp + 0x18]
lea edx, [r13 - 1]
lea r8d, [r13 + 2]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov ebx, 6
lea rdi, [rbp + 0x1c]
mov r12, rbx
mov edx, 1
mov r9, rsi
mov rcx, rdi
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
add rdi, 4
sub r12, 1
jne 0x1401c1e60
mov r12d, 3
lea rdi, [rbp + 0x40]
mov r14, r12
nop dword [rax + rax]
mov edx, 1
lea rcx, [rdi - 0xc]
mov r9, rsi
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
mov edx, 1
mov r9, rsi
lea r8d, [rdx + 3]
mov rcx, rdi
call sub.MSVCR90.dll_fwrite
add rdi, 4
sub r14, 1
jne 0x1401c1e90
lea rdi, [rbp + 0x64]
mov r14, rbx
nop word [rax + rax]
mov edx, 1
lea rcx, [rdi - 0x18]
mov r9, rsi
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
mov edx, 1
mov r9, rsi
lea r8d, [rdx + 3]
mov rcx, rdi
call sub.MSVCR90.dll_fwrite
add rdi, 4
sub r14, 1
jne 0x1401c1ed0
lea rcx, [rbp + 0xc]
lea edx, [r14 + 1]
lea r8d, [r14 + 4]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
lea rcx, [rbp + 0x10]
lea edx, [r14 + 1]
lea r8d, [r14 + 4]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
lea rcx, [rbp + 0x14]
lea edx, [r14 + 1]
lea r8d, [r14 + 4]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
lea rdi, [rbp + 0xc8]
mov r14, rbx
nop dword [rax]
mov edx, 1
lea rcx, [rdi - 4]
mov r9, rsi
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
mov edx, 1
mov r9, rsi
lea r8d, [rdx + 3]
mov rcx, rdi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rdi + 4]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rdi + 8]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rdi + 0xc]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
add rdi, 0x14
sub r14, 1
jne 0x1401c1f50
mov r14, qword [rsp + 0x30]
lea rdi, [rbp + 0x13c]
nop
mov edx, 1
mov r9, rsi
mov rcx, rdi
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
add rdi, 4
sub r12, 1
jne 0x1401c1fd0
lea rcx, [rbp + 0x7c]
lea edx, [r12 + 1]
lea r8d, [r12 + 4]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov r12, qword [rsp + 0x70]
xor edi, edi
cmp dword [r15 + 0x24e3c], edi
jle 0x1401c203b
movsxd rax, edi
mov edx, 1
mov r9, rsi
lea rcx, [rbp + rax*4 + 0x80]
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
inc edi
cmp edi, dword [r15 + 0x24e3c]
jl 0x1401c2014
mov edx, 1
lea rcx, [rbp + 0xa8]
mov r9, rsi
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbp + 0xac]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbp + 0xb0]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbp + 0xb4]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbp + 0xb8]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbp + 0xbc]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbp + 0xc0]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbp + 0x148]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbp + 0x14c]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbp + 0x150]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
lea rdi, [rbp + 0x154]
nop word [rax + rax]
mov edx, 1
mov r9, rsi
mov rcx, rdi
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
add rdi, 4
sub rbx, 1
jne 0x1401c2140
lea edx, [rbx + 1]
lea r8d, [rbx + 4]
mov r9, rsi
mov rcx, rbp
call sub.MSVCR90.dll_fwrite
lea rdi, [rbp + 4]
mov rbx, r13
nop word [rax + rax]
mov edx, 1
mov r9, rsi
mov rcx, rdi
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
add rdi, 4
sub rbx, 1
jne 0x1401c2180
lea rdi, [rbp + 0x16c]
nop word [rax + rax]
mov edx, 1
mov r9, rsi
mov rcx, rdi
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
add rdi, 4
sub r13, 1
jne 0x1401c21b0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x174]
repne scasb al, byte [rdi]
lea r8d, [r13 + 4]
lea edx, [rax + 1]
not rcx
mov r9, rsi
dec rcx
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x20]
call sub.MSVCR90.dll_fwrite
movsxd r8, dword [rsp + 0x20]
lea edx, [r13 + 1]
lea rcx, [rbp + 0x174]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
lea rcx, [rbp + 0x368]
lea edx, [r13 + 1]
lea r8d, [r13 + 4]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov rcx, rsi
call sub.MSVCR90.dll_fclose
mov r13, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x40
pop r15
pop rdi
pop rbp
ret