Function at 0x1401e5f60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rsi, qword [0x141443c60]
mov rax, qword [rsi + 0x38]
xor r12d, r12d
test rax, rax
je 0x1401e603f
cmp byte [rsi + 1], r12b
je 0x1401e603f
mov byte [rax + 0x18], r12b
mov rbx, qword [rsi + 0x38]
test rbx, rbx
je 0x1401e603f
mov rcx, rbx
call fcn.1401da5f0
lea rcx, [rbx + 0x78]
call fcn.140002a00
lea rcx, [rbx + 0x68]
call fcn.140002a00
lea rcx, [rbx + 0x58]
call fcn.140002a00
nop
mov rdi, qword [0x141443c60]
test rdi, rdi
je 0x1401e6036
mov r8d, dword [rdi + 0x40a8]
movsx rdx, word [rdi + 0x6320]
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x1401e602c
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6320], cx
movsx rax, cx
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rax*8]
mov dword [rcx], r8d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x631c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x38], r12
lea rcx, [rsi + 0x3ec0]
call fcn.1401de4a0
cmp byte [rsi], 0
je 0x1401e69e0
cmp byte [rsi + 0x6180], 0
je 0x1401e60c0
mov rdi, qword [rsi + 0x20]
test rdi, rdi
je 0x1401e60c0
mov rax, qword [0x141443c60]
mov dword [rax + 0x6184], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.1401fe290
mov rbx, rax
lea rdx, [0x1413cf9bc]
mov rcx, rdi
call fcn.1401e18e0
mov rdi, rax
test rax, rax
je 0x1401e60c0
mov r9, rax
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x141443c60]
mov rdi, qword [rax + 0x4c98]
movsxd rax, dword [rax + 0x4c90]
lea rbx, [rdi + rax*8]
cmp rdi, rbx
je 0x1401e60f1
nop
mov rcx, qword [rdi]
call fcn.1402009d0
add rdi, 8
cmp rdi, rbx
jne 0x1401e60e0
mov ebp, r12d
cmp dword [rsi + 0x6140], r12d
jle 0x1401e61ae
mov r14, r12
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rsi + 0x6148]
mov rbx, qword [r14 + rax + 8]
test rbx, rbx
je 0x1401e619c
mov rcx, rbx
call fcn.1402024e0
mov rdi, qword [0x141443c60]
test rdi, rdi
je 0x1401e6193
mov r8d, dword [rdi + 0x40a8]
movsx rdx, word [rdi + 0x6320]
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x1401e6189
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6320], cx
movsx rax, cx
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rax*8]
mov dword [rcx], r8d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x631c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 0x10
cmp ebp, dword [rsi + 0x6140]
jl 0x1401e6110
mov rdi, qword [rsi + 0x61d0]
movsxd rbx, dword [rsi + 0x61c8]
shl rbx, 5
add rbx, rdi
cmp rdi, rbx
je 0x1401e61e3
cmp dword [rdi + 4], 6
jne 0x1401e61da
mov rax, qword [rdi + 0x10]
mov rdx, rdi
mov rcx, rsi
call rax
add rdi, 0x20
cmp rdi, rbx
jne 0x1401e61c8
mov ebp, r12d
cmp dword [rsi + 0x40f0], r12d
jle 0x1401e629d
mov r14, r12
nop word [rax + rax]
mov rax, qword [rsi + 0x40f8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1401e628b
mov rcx, rbx
call fcn.1401e6f60
mov rdi, qword [0x141443c60]
test rdi, rdi
je 0x1401e6282
mov r8d, dword [rdi + 0x40a8]
movsx rdx, word [rdi + 0x6320]
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x1401e6278
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6320], cx
movsx rax, cx
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rax*8]
mov dword [rcx], r8d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x631c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rsi + 0x40f0]
jl 0x1401e6200
lea rcx, [rsi + 0x40f0]
call fcn.1401de4a0
lea rcx, [rsi + 0x4100]
call fcn.1401de4a0
lea rcx, [rsi + 0x4110]
call fcn.1401de4a0
mov qword [rsi + 0x4150], r12
mov r8, qword [rsi + 0x4128]
test r8, r8
je 0x1401e6359
mov qword [rsi + 0x4120], r12
mov rdi, qword [0x141443c60]
test rdi, rdi
je 0x1401e6349
mov r9d, dword [rdi + 0x40a8]
movsx rdx, word [rdi + 0x6320]
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1401e633f
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6320], cx
movsx rax, cx
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x631c]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x4128], r12
lea rcx, [rsi + 0x4130]
call fcn.1401de4a0
mov qword [rsi + 0x4d10], r12
mov qword [rsi + 0x4160], r12
mov qword [rsi + 0x4158], r12
mov qword [rsi + 0x41f0], r12
mov qword [rsi + 0x41d8], r12
mov qword [rsi + 0x4168], r12
mov eax, 0xffffffff
lea rdi, [rsi + 0x4968]
movsx rax, ax
mov ecx, 0x9a
rep stosw word [rdi], ax
lea rcx, [rsi + 0x4aa0]
call fcn.1401de4a0
lea rcx, [rsi + 0x4ab0]
call fcn.1401de4a0
mov r8, qword [rsi + 0x4c08]
test r8, r8
je 0x1401e6450
mov qword [rsi + 0x4c00], r12
mov rdi, qword [0x141443c60]
test rdi, rdi
je 0x1401e6440
mov r9d, dword [rdi + 0x40a8]
movsx rdx, word [rdi + 0x6320]
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1401e6436
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6320], cx
movsx rax, cx
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x631c]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x4c08], r12
mov r8, qword [rsi + 0x4c18]
test r8, r8
je 0x1401e64e1
mov qword [rsi + 0x4c10], r12
mov rdi, qword [0x141443c60]
test rdi, rdi
je 0x1401e64d1
mov r9d, dword [rdi + 0x40a8]
movsx rdx, word [rdi + 0x6320]
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1401e64c7
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6320], cx
movsx rax, cx
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x631c]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x4c18], r12
lea rcx, [rsi + 0x4c20]
call fcn.1401de4a0
lea rcx, [rsi + 0x4c60]
call fcn.1401de4a0
lea rcx, [rsi + 0x4c70]
call fcn.1401de4a0
mov r8, qword [rsi + 0x4c88]
test r8, r8
je 0x1401e6596
mov qword [rsi + 0x4c80], r12
mov rdi, qword [0x141443c60]
test rdi, rdi
je 0x1401e6586
mov r9d, dword [rdi + 0x40a8]
movsx rdx, word [rdi + 0x6320]
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1401e657c
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6320], cx
movsx rax, cx
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x631c]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x4c88], r12
mov qword [rsi + 0x4cb0], r12
mov qword [rsi + 0x4ca8], r12
mov qword [rsi + 0x4ca0], r12
lea rcx, [rsi + 0x4c90]
call fcn.14020b3b0
lea rcx, [rsi + 0x5058]
call fcn.14020ae80
mov r8, qword [rsi + 0x5088]
test r8, r8
je 0x1401e6654
mov qword [rsi + 0x5080], r12
mov rdi, qword [0x141443c60]
test rdi, rdi
je 0x1401e6644
mov r9d, dword [rdi + 0x40a8]
movsx rdx, word [rdi + 0x6320]
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1401e663a
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6320], cx
movsx rax, cx
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x631c]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x5088], r12
mov r8, qword [rsi + 0x5098]
test r8, r8
je 0x1401e66e5
mov qword [rsi + 0x5090], r12
mov rdi, qword [0x141443c60]
test rdi, rdi
je 0x1401e66d5
mov r9d, dword [rdi + 0x40a8]
movsx rdx, word [rdi + 0x6320]
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1401e66cb
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6320], cx
movsx rax, cx
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x631c]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x5098], r12
mov edi, r12d
cmp dword [rsi + 0x4fd8], r12d
jle 0x1401e6716
movsxd rax, edi
lea rcx, [rax + rax*4]
mov rax, qword [rsi + 0x4fe0]
lea rcx, [rcx + 3]
lea rcx, [rax + rcx*8]
call fcn.140002a00
inc edi
cmp edi, dword [rsi + 0x4fd8]
jl 0x1401e66f1
mov r8, qword [rsi + 0x4fe0]
test r8, r8
je 0x1401e67a7
mov qword [rsi + 0x4fd8], r12
mov rdi, qword [0x141443c60]
test rdi, rdi
je 0x1401e6797
mov r9d, dword [rdi + 0x40a8]
movsx rdx, word [rdi + 0x6320]
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1401e678d
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6320], cx
movsx rax, cx
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x631c]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x4fe0], r12
lea rcx, [rsi + 0x5008]
call fcn.14020afd0
mov ebp, r12d
cmp dword [rsi + 0x4ff8], r12d
jle 0x1401e67f7
nop
movsxd rax, ebp
imul rbx, rax, 0x88
add rbx, qword [rsi + 0x5000]
lea rcx, [rbx + 0x28]
call fcn.1401d9730
lea rcx, [rbx + 0x30]
call fcn.140002a00
nop
lea rcx, [rbx + 0x10]
call fcn.140002a00
inc ebp
cmp ebp, dword [rsi + 0x4ff8]
jl 0x1401e67c0
mov r8, qword [rsi + 0x5000]
test r8, r8
je 0x1401e6888
mov qword [rsi + 0x4ff8], r12
mov rdi, qword [0x141443c60]
test rdi, rdi
je 0x1401e6878
mov r9d, dword [rdi + 0x40a8]
movsx rdx, word [rdi + 0x6320]
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1401e686e
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6320], cx
movsx rax, cx
lea rcx, [rdi + 0x6324]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x631c]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x5000], r12
lea rcx, [rsi + 0x5040]
call fcn.1401de4a0
lea rcx, [rsi + 0x6090]
call fcn.1401de4a0
lea rcx, [rsi + 0x60a0]
call fcn.1401de4a0
lea rcx, [rsi + 0x50e0]
call fcn.1401de4a0
lea rcx, [rsi + 0x50f0]
call fcn.1401de4a0
lea rcx, [rsi + 0x5100]
call fcn.1401de4a0
mov dword [rsi + 0x5f60], r12d
lea rcx, [rsi + 0x5f68]
call fcn.1401de4a0
lea rcx, [rsi + 0x61a8]
call fcn.1401de4a0
mov r8, qword [rsi + 0x61a0]
test r8, r8
je 0x1401e6981
mov qword [rsi + 0x6198], r12
mov rdi, qword [0x141443c60]
test rdi, rdi
je 0x1401e6971
mov r9d, dword [rdi + 0x40a8]
movsx r10, word [rdi + 0x6320]
lea rdx, [rdi + 0x6324]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x1401e6967
lea ecx, [r10 + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6320], cx
movsx rax, cx
lea rdx, [rdi + 0x6324]
lea rdx, [rdx + rax*8]
mov dword [rdx], r9d
mov dword [rdx + 4], r12d
inc word [rdx + 6]
inc dword [rdi + 0x631c]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x61a0], r12
cmp qword [rsi + 0x6240], 0
je 0x1401e69b2
mov rdi, qword [rsi + 0x6240]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x1401e69ab
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsi + 0x6240], r12
lea rcx, [rsi + 0x6248]
call fcn.1401de4a0
lea rcx, [rsi + 0x6280]
call fcn.1401de4a0
lea rcx, [rsi + 0x6290]
call fcn.1401de4a0
mov dword [rsi + 0x62a0], r12d
mov byte [rsi], 0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret