Function at 0x14011fcf0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
push rsi
push r13
sub rsp, 0x68
dec ecx
mov r13d, r9d
mov r8, rdx
cmp ecx, 9
ja 0x140120487
lea rsi, [0x140e26ea0]
movsxd rax, ecx
mov rsi, qword [rsi + rax*8]
test rsi, rsi
je 0x140120487
lea rdx, [0x140326fec]
mov rcx, r8
mov qword [rsp + 0x60], rbp
call sub.MSVCR90.dll_fopen
mov rbp, rax
test rax, rax
jne 0x14011fd50
lea eax, [rbp + 1]
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
pop r13
pop rsi
ret
mov edx, 1
lea rcx, [rsp + 0x28]
mov r9, rax
lea r8d, [rdx + 3]
mov qword [rsp + 0x88], rbx
mov dword [rsp + 0x28], 0x595052
mov qword [rsp + 0x50], r12
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsp + 0x2c]
lea r8d, [rdx + 3]
mov r9, rbp
mov dword [rsp + 0x2c], 0xa
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea r8d, [rdx + 9]
mov r9, rbp
mov rcx, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsi + 0xc]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsi + 0x10]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov ecx, dword [rsp + 0x90]
xor r12d, r12d
mov qword [rsp + 0x38], r12
cmp ecx, 0xffffffff
jne 0x14011fdfd
mov edx, dword [rsi + 0x1b7788]
mov dword [rsp + 0x90], edx
jmp 0x14011fe7d
mov edx, dword [rsi + 0x1b7788]
cmp ecx, edx
jge 0x14011fe10
mov dword [rsp + 0x90], edx
jmp 0x14011fe7d
mov eax, dword [rsi + 0x1b77bc]
sub eax, 0x1e
cmp ecx, eax
jg 0x14011fe99
mov ecx, dword [rsi + 0x1b7780]
call fcn.14014a890
movsxd r8, dword [rsi + 0x1b7780]
mov rdx, qword [rsi + 0x1b7790]
mov rcx, rax
mov rbx, rax
mov qword [rsp + 0x38], rax
call sub.MSVCR90.dll_memcpy
mov ecx, dword [rsi + 0x1b7788]
mov r11d, dword [rsi + 0x1b7784]
mov dword [rsi + 0x1b77ac], ecx
mov dword [rsi + 0x1b77a8], r11d
mov qword [rsi + 0x1b77b0], rbx
mov edx, dword [rsp + 0x90]
mov rcx, rsi
call fcn.14011ce00
mov edx, dword [rsp + 0x90]
cmp r13d, 0xffffffff
jne 0x14011fe90
mov r13d, dword [rsi + 0x1b77bc]
sub r13d, 0x1e
jmp 0x14011fec8
cmp r13d, dword [rsi + 0x1b7788]
jge 0x14011feb8
mov eax, 1
mov rbx, qword [rsp + 0x88]
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
pop r13
pop rsi
ret
mov eax, dword [rsi + 0x1b77bc]
add eax, 0xffffffe2
cmp r13d, eax
cmovg r13d, eax
mov rcx, rsi
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x40], r15
call fcn.14011c610
mov ecx, dword [rsp + 0x90]
or r10d, 0xffffffff
cmp ecx, r13d
mov r11d, eax
mov dword [rsp + 0x80], ecx
jge 0x14011ff7c
nop dword [rax]
mov edx, dword [rsi + 0x1b77a8]
mov rax, qword [rsi + 0x18]
lea r8d, [r11 + 4]
mov dword [rsi + 0x1b77a8], r8d
movsxd r9, r11d
mov ecx, dword [r9 + rax]
mov dword [rsi + 0x1b77a8], edx
mov eax, dword [rsp + 0x20]
lea ecx, [rax + rcx + 8]
mov dword [rsp + 0x20], ecx
mov ecx, dword [rsi + 0x1b77a8]
mov rax, qword [rsi + 0x18]
mov dword [rsi + 0x1b77a8], r8d
mov eax, dword [r9 + rax]
mov dword [rsi + 0x1b77a8], ecx
lea ecx, [rax + r11 + 8]
mov eax, dword [rsp + 0x80]
cmp ecx, dword [rsi + 0x1b777c]
mov r11d, ecx
cmove r11d, r12d
cmp r11d, dword [rsi + 0x1b77b8]
cmove r11d, r10d
add eax, 0x1e
cmp eax, r13d
mov dword [rsp + 0x80], eax
jl 0x14011ff00
mov edx, 1
lea rcx, [rsp + 0xa8]
mov r9, rbp
lea r8d, [rdx + 3]
mov qword [rsp + 0x58], rdi
call sub.MSVCR90.dll_fwrite
movsxd r8, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
mov r9, rbp
mov edx, 1
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsp + 0x90]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsp + 0x80]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsi + 0x20]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
cmp dword [rsi + 0x20], r12d
mov r14d, r12d
jle 0x14012015a
lea rdi, [rsi + 0x34]
nop
mov edx, 1
movsxd rbx, r14d
mov r9, rbp
lea r8d, [rdx + 3]
imul rbx, rbx, 0x8ca0
lea rcx, [rbx + rsi + 0x28]
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + rsi + 0x2c]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + rsi + 0x30]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + rsi + 0x34]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov eax, dword [rdi - 8]
sub eax, 2
je 0x1401200d8
cmp eax, 1
jne 0x140120146
lea rcx, [rbx + rsi + 0x90]
mov r9, rbp
mov edx, eax
mov r8d, 0x8c08
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + rsi + 0x8c98]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov r11d, dword [rdi]
mov rcx, qword [rdi + 0x8c8c]
lea eax, [r11 + r11*2]
mov r9, rbp
mov edx, 1
movsxd r8, eax
shl r8, 2
call sub.MSVCR90.dll_fwrite
jmp 0x140120146
mov edx, 1
lea rcx, [rbx + rsi + 0x44]
mov r9, rbp
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + rsi + 0x48]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + rsi + 0x4c]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + rsi + 0x50]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + rsi + 0x54]
lea r8d, [rdx + 3]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
inc r14d
add rdi, 0x8ca0
cmp r14d, dword [rsi + 0x20]
jl 0x140120010
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rbp
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
mov r15, qword [rsp + 0x38]
test r15, r15
je 0x140120193
movsxd r8, dword [rsi + 0x1b7780]
mov r9, rbp
mov edx, 1
mov rcx, r15
call sub.MSVCR90.dll_fwrite
jmp 0x1401201ae
movsxd r8, dword [rsi + 0x1b7780]
mov rcx, qword [rsi + 0x1b7790]
mov r9, rbp
mov edx, 1
call sub.MSVCR90.dll_fwrite
mov edx, dword [rsp + 0x90]
mov rcx, rsi
call fcn.14011c610
mov r10d, dword [rsp + 0x90]
cmp r10d, r13d
mov r14d, eax
mov dword [rsp + 0x80], r10d
jge 0x140120274
or r15d, 0xffffffff
nop dword [rax]
mov edx, dword [rsi + 0x1b77a8]
mov rax, qword [rsi + 0x18]
movsxd rdi, r14d
lea rcx, [rdi + rax]
lea ebx, [r14 + 4]
mov r9, rbp
mov dword [rsi + 0x1b77a8], ebx
mov r8d, dword [rcx]
mov dword [rsi + 0x1b77a8], edx
add r8d, 8
mov edx, 1
call sub.MSVCR90.dll_fwrite
mov r11d, dword [rsi + 0x1b77a8]
mov rax, qword [rsi + 0x18]
mov dword [rsi + 0x1b77a8], ebx
mov eax, dword [rdi + rax]
mov dword [rsi + 0x1b77a8], r11d
lea ecx, [rax + r14 + 8]
mov eax, dword [rsp + 0x80]
cmp ecx, dword [rsi + 0x1b777c]
mov r14d, ecx
cmove r14d, r12d
cmp r14d, dword [rsi + 0x1b77b8]
cmove r14d, r15d
add eax, 0x1e
cmp eax, r13d
mov dword [rsp + 0x80], eax
jl 0x1401201e0
mov r10d, dword [rsp + 0x90]
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x48]
mov ecx, r12d
mov edx, r12d
mov dword [rsp + 0x24], ecx
cmp dword [rsi + 0x1b7768], ecx
jle 0x1401202c1
mov rax, r12
nop
mov r9, qword [rsi + 0x1b7770]
mov r8d, dword [r9 + rax + 8]
cmp r8d, r10d
jl 0x1401202b3
cmp r8d, r13d
jg 0x1401202b3
cmp dword [r9 + rax + 0x18], r12d
je 0x1401202b3
inc ecx
mov dword [rsp + 0x24], ecx
inc edx
add rax, 0x2c
cmp edx, dword [rsi + 0x1b7768]
jl 0x140120290
mov edx, 1
lea rcx, [rsp + 0x24]
mov r9, rbp
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
cmp dword [rsi + 0x1b7768], r12d
jle 0x140120461
mov rdi, r12
nop word [rax + rax]
mov rax, qword [rsi + 0x1b7770]
mov ecx, dword [rax + rdi + 8]
cmp ecx, dword [rsp + 0x90]
jl 0x14012044d
cmp ecx, r13d
jg 0x14012044d
cmp dword [rax + rdi + 0x18], 0
je 0x14012044d
mov edx, 1
movsxd rbx, r12d
mov r9, rbp
lea r8d, [rdx + 3]
imul rbx, rbx, 0x2c
lea rcx, [rbx + rax]
call sub.MSVCR90.dll_fwrite
mov r11, qword [rsi + 0x1b7770]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [rbx + r11 + 4]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov r11, qword [rsi + 0x1b7770]
mov edx, 1
mov eax, dword [r11 + rdi + 8]
lea r8d, [rdx + 3]
lea rcx, [rsp + 0x30]
sub eax, dword [rsp + 0x90]
mov r9, rbp
mov dword [rsp + 0x30], eax
call sub.MSVCR90.dll_fwrite
mov r11, qword [rsi + 0x1b7770]
mov edx, 1
lea rcx, [rbx + r11 + 0xc]
mov r9, rbp
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
mov r11, qword [rsi + 0x1b7770]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [rbx + r11 + 0x10]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov r11, qword [rsi + 0x1b7770]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [rbx + r11 + 0x14]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov r11, qword [rsi + 0x1b7770]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [rbx + r11 + 0x1c]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov r11, qword [rsi + 0x1b7770]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [rbx + r11 + 0x20]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov r11, qword [rsi + 0x1b7770]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [rbx + r11 + 0x24]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
mov r11, qword [rsi + 0x1b7770]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [rbx + r11 + 0x28]
mov r9, rbp
call sub.MSVCR90.dll_fwrite
inc r12d
add rdi, 0x2c
cmp r12d, dword [rsi + 0x1b7768]
jl 0x1401202f0
mov rcx, rbp
call sub.MSVCR90.dll_fclose
mov rdi, qword [rsp + 0x58]
test r15, r15
je 0x14012047b
mov rcx, r15
call fcn.14014a8e0
mov r15, qword [rsp + 0x40]
xor eax, eax
jmp 0x14011fe9e
mov eax, 1
add rsp, 0x68
pop r13
pop rsi
ret