Function at 0x1401d11f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x108]
sub rsp, 0x208
mov rax, qword [0x14040f040]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rdi, r9
mov r15, r8
mov rbx, rdx
mov rsi, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.1401739b0
nop
lea rcx, [rsi + 0x3a0]
call fcn.140172830
test eax, eax
jne 0x1401d1269
mov rax, qword [rdi]
mov rdx, qword [str.No_cache_roots_have_been_set.__Need_to_call_AddRoot_at_least_once.]
mov rcx, rdi
call qword [rax + 0x28]
xor bl, bl
jmp 0x1401d14b0
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x80]
call fcn.14010a510
nop
mov r9, rdi
lea r8, [rbp - 0x80]
mov rdx, rbx
mov rcx, rsi
call fcn.1401d06a0
test al, al
jne 0x1401d12b1
mov rax, qword [rdi]
mov rdx, qword [str.Failed_to_convert_resource_name_to_filename]
mov rcx, rdi
call qword [rax + 0x28]
xor bl, bl
jmp 0x1401d14a6
cmp byte [rsi + 0x398], 0
je 0x1401d12d7
lea rcx, [rbp - 0x80]
call fcn.14010ddb0
mov rcx, rax
lea rdx, [rsi + 0x48]
call fcn.1401d0b50
test al, al
je 0x1401d13ac
lea rcx, [rbp - 0x80]
call fcn.14010ddb0
mov rcx, rax
lea rdx, [0x14035afe4]
call fcn.14015ac70
mov r14, rax
test rax, rax
jne 0x1401d1347
cmp byte [rsi + 0x398], al
je 0x1401d1314
lea rcx, [rbp - 0x80]
call fcn.14010ddb0
mov rcx, rax
lea rdx, [rsi + 0x48]
call fcn.1401d1100
mov rax, qword [rdi]
lea rdx, str.Failed_to_open_file
mov rcx, rdi
call qword [rax + 0x28]
mov rbx, qword [rdi]
lea rcx, [rbp - 0x80]
call fcn.14010ddb0
mov r8, rax
lea rdx, str.filename
mov rcx, rdi
call qword [rbx + 0x58]
xor bl, bl
jmp 0x1401d14a6
xor r8d, r8d
lea edx, [r8 + 0xa]
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
je 0x1401d13b3
cmp byte [rsi + 0x398], 0
je 0x1401d1378
lea rcx, [rbp - 0x80]
call fcn.14010ddb0
mov rcx, rax
lea rdx, [rsi + 0x48]
call fcn.1401d1100
mov rax, qword [rdi]
lea rdx, str.Failed_to_seek_to_position_in_cache_file.
mov rcx, rdi
call qword [rax + 0x28]
mov rbx, qword [rdi]
lea rcx, [rbp - 0x80]
call fcn.14010ddb0
mov r8, rax
lea rdx, str.filename
mov rcx, rdi
call qword [rbx + 0x58]
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
xor bl, bl
jmp 0x1401d14a6
lea rcx, [rsp + 0x28]
call fcn.140150cc0
nop
mov rcx, r15
call fcn.1401514d0
movsd qword [rsp + 0x20], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
lea rcx, [rsp + 0x48]
call fcn.140146c30
nop
mov r8d, 8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.1401472b0
call fcn.14011a6d0
test al, al
jne 0x1401d1411
lea rcx, [rsp + 0x48]
call fcn.14014d440
lea rcx, [rsp + 0x48]
call fcn.14014b520
mov rcx, rax
mov r9, r14
mov edx, 8
lea r8d, [rdx - 7]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r15, rax
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
cmp byte [rsi + 0x398], 0
je 0x1401d1458
lea rcx, [rbp - 0x80]
call fcn.14010ddb0
mov rcx, rax
lea rdx, [rsi + 0x48]
call fcn.1401d1100
cmp r15d, 1
je 0x1401d148e
mov rax, qword [rdi]
lea rdx, str.Failed_to_update_cache_file.
mov rcx, rdi
call qword [rax + 0x28]
mov rbx, qword [rdi]
lea rcx, [rbp - 0x80]
call fcn.14010ddb0
mov r8, rax
lea rdx, str.filename
mov rcx, rdi
call qword [rbx + 0x58]
xor bl, bl
jmp 0x1401d1490
mov bl, 1
lea rcx, [rsp + 0x48]
call fcn.140146de0
nop
lea rcx, [rsp + 0x28]
call fcn.140150cd0
nop
lea rcx, [rbp - 0x80]
call fcn.14010a570
nop
lea rcx, [rsp + 0x30]
call fcn.140173a80
movzx eax, bl
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140109210
add rsp, 0x208
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret