Function at 0x14000a260
Capabilities:
Write file on windows

Disassembly:
push rbx
push r12
sub rsp, 0x38
mov rbx, qword [0x1400d1b50]
cmp qword [rbx + 0x98], 0
je 0x14000a293
mov r8d, 0xedc
lea rdx, [0x140080dd0]
lea rcx, str._g.IO.BackendPlatformUserData__0____Forgot_to_shutdown_Platform_backend__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp qword [rbx + 0xa0], 0
je 0x14000a2b7
mov r8d, 0xedd
lea rdx, [0x140080f20]
lea rcx, str._g.IO.BackendRendererUserData__0____Forgot_to_shutdown_Renderer_backend__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x14000a2d3
cmp byte [rbx + 1], 0
je 0x14000a2d3
mov byte [rax + 0x18], 0
mov rcx, qword [rbx + 0x38]
call fcn.1400379a0
xor r12d, r12d
lea rcx, [rbx + 0x3ee0]
mov qword [rbx + 0x38], r12
call fcn.140002b60
cmp byte [rbx], r12b
je 0x14000acb2
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], r15
cmp byte [rbx + 0x61a8], r12b
je 0x14000a36b
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14000a36b
mov rax, qword [0x1400d1b50]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r12
mov dword [rax + 0x61ac], r12d
call fcn.140025c20
lea rdx, [0x1400845ec]
mov rcx, rdi
mov rsi, rax
call fcn.1400057d0
mov rdi, rax
test rax, rax
je 0x14000a36b
mov r8, qword [rsp + 0x50]
lea edx, [r12 + 1]
mov r9, rax
mov rcx, rsi
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 [0x1400d1b50]
mov rdi, qword [rax + 0x4cb8]
movsxd rax, dword [rax + 0x4cb0]
lea rsi, [rdi + rax*8]
cmp rdi, rsi
je 0x14000a3a1
nop dword [rax]
mov rcx, qword [rdi]
call fcn.140029070
add rdi, 8
cmp rdi, rsi
jne 0x14000a390
mov eax, dword [rbx + 0x6168]
mov ebp, r12d
mov qword [rsp + 0x28], r14
test eax, eax
jle 0x14000a486
mov r14, r12
mov r15, r12
nop dword [rax]
test r14, r14
js 0x14000a3c9
cmp ebp, eax
jl 0x14000a3e3
mov r8d, 0x828
lea rdx, str.F:devcfgimguidockimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0x6170]
mov rsi, qword [rax + r15 + 8]
test rsi, rsi
je 0x14000a46f
mov rcx, rsi
call fcn.14002b100
mov rdi, qword [0x1400d1b50]
test rdi, rdi
je 0x14000a466
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r8d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x14000a45c
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 + 0x6348], cx
movsx rax, cx
lea rcx, [rdi + 0x634c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r8d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6344]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rbx + 0x6168]
inc ebp
inc r14
add r15, 0x10
cmp ebp, eax
jl 0x14000a3c0
mov rdi, qword [rbx + 0x61f8]
movsxd rsi, dword [rbx + 0x61f0]
shl rsi, 5
add rsi, rdi
cmp rdi, rsi
je 0x14000a4b8
cmp dword [rdi + 4], 6
jne 0x14000a4af
mov rdx, rdi
mov rcx, rbx
call qword [rdi + 0x10]
add rdi, 0x20
cmp rdi, rsi
jne 0x14000a4a0
mov ebp, r12d
cmp dword [rbx + 0x4110], r12d
jle 0x14000a56d
mov r14, r12
nop dword [rax + rax]
mov rax, qword [rbx + 0x4118]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x14000a55b
mov rcx, rsi
call fcn.14000b3c0
mov rdi, qword [0x1400d1b50]
test rdi, rdi
je 0x14000a552
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r8d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x14000a548
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 + 0x6348], cx
movsx rax, cx
lea rcx, [rdi + 0x634c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r8d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6344]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x4110]
jl 0x14000a4d0
lea rcx, [rbx + 0x4110]
call fcn.140002b60
lea rcx, [rbx + 0x4120]
call fcn.140002b60
lea rcx, [rbx + 0x4130]
call fcn.140002b60
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x58]
mov qword [rbx + 0x4170], r12
mov r8, qword [rbx + 0x4148]
test r8, r8
je 0x14000a638
mov rdi, qword [0x1400d1b50]
mov qword [rbx + 0x4140], r12
test rdi, rdi
je 0x14000a628
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14000a61e
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 + 0x6348], cx
movsx rax, cx
lea rcx, [rdi + 0x634c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6344]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4148], r12
lea rcx, [rbx + 0x4150]
call fcn.140002b60
mov qword [rbx + 0x4d30], r12
lea rdi, [rbx + 0x4988]
mov qword [rbx + 0x4180], r12
mov eax, 0xffffffff
movsx rax, ax
mov ecx, 0x9a
mov qword [rbx + 0x4178], r12
mov qword [rbx + 0x4210], r12
mov qword [rbx + 0x41f8], r12
mov qword [rbx + 0x4188], r12
rep stosw word [rdi], ax
lea rcx, [rbx + 0x4ac0]
call fcn.140002b60
lea rcx, [rbx + 0x4ad0]
call fcn.140002b60
mov r8, qword [rbx + 0x4c28]
test r8, r8
je 0x14000a72f
mov rdi, qword [0x1400d1b50]
mov qword [rbx + 0x4c20], r12
test rdi, rdi
je 0x14000a71f
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14000a715
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 + 0x6348], cx
movsx rax, cx
lea rcx, [rdi + 0x634c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6344]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4c28], r12
mov r8, qword [rbx + 0x4c38]
test r8, r8
je 0x14000a7c0
mov rdi, qword [0x1400d1b50]
mov qword [rbx + 0x4c30], r12
test rdi, rdi
je 0x14000a7b0
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14000a7a6
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 + 0x6348], cx
movsx rax, cx
lea rcx, [rdi + 0x634c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6344]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4c38], r12
lea rcx, [rbx + 0x4c40]
call fcn.140002b60
lea rcx, [rbx + 0x4c80]
call fcn.140002b60
lea rcx, [rbx + 0x4c90]
call fcn.140002b60
mov r8, qword [rbx + 0x4ca8]
test r8, r8
je 0x14000a875
mov rdi, qword [0x1400d1b50]
mov qword [rbx + 0x4ca0], r12
test rdi, rdi
je 0x14000a865
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14000a85b
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 + 0x6348], cx
movsx rax, cx
lea rcx, [rdi + 0x634c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6344]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4ca8], r12
lea rcx, [rbx + 0x4cb0]
mov qword [rbx + 0x4cd0], r12
mov qword [rbx + 0x4cc8], r12
mov qword [rbx + 0x4cc0], r12
call fcn.1400365a0
lea rcx, [rbx + 0x5078]
call fcn.140036010
mov r8, qword [rbx + 0x50a8]
test r8, r8
je 0x14000a933
mov rdi, qword [0x1400d1b50]
mov qword [rbx + 0x50a0], r12
test rdi, rdi
je 0x14000a923
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14000a919
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 + 0x6348], cx
movsx rax, cx
lea rcx, [rdi + 0x634c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6344]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x50a8], r12
mov r8, qword [rbx + 0x50b8]
test r8, r8
je 0x14000a9c4
mov rdi, qword [0x1400d1b50]
mov qword [rbx + 0x50b0], r12
test rdi, rdi
je 0x14000a9b4
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14000a9aa
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 + 0x6348], cx
movsx rax, cx
lea rcx, [rdi + 0x634c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6344]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x50b8], r12
mov edi, r12d
cmp dword [rbx + 0x4ff8], r12d
jle 0x14000a9f5
movsxd rax, edi
lea rcx, [rax + rax*4]
mov rax, qword [rbx + 0x5000]
lea rcx, [rcx + 3]
lea rcx, [rax + rcx*8]
call fcn.140003dc0
inc edi
cmp edi, dword [rbx + 0x4ff8]
jl 0x14000a9d0
mov r8, qword [rbx + 0x5000]
test r8, r8
je 0x14000aa86
mov rdi, qword [0x1400d1b50]
mov qword [rbx + 0x4ff8], r12
test rdi, rdi
je 0x14000aa76
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14000aa6c
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 + 0x6348], cx
movsx rax, cx
lea rcx, [rdi + 0x634c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6344]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x5000], r12
lea rcx, [rbx + 0x5028]
call fcn.140036190
mov edi, r12d
cmp dword [rbx + 0x5018], r12d
jle 0x14000aac0
nop
movsxd rax, edi
imul rcx, rax, 0x88
add rcx, qword [rbx + 0x5020]
call fcn.1400371d0
inc edi
cmp edi, dword [rbx + 0x5018]
jl 0x14000aaa0
mov r8, qword [rbx + 0x5020]
test r8, r8
je 0x14000ab51
mov rdi, qword [0x1400d1b50]
mov qword [rbx + 0x5018], r12
test rdi, rdi
je 0x14000ab41
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14000ab37
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 + 0x6348], cx
movsx rax, cx
lea rcx, [rdi + 0x634c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6344]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x5020], r12
lea rcx, [rbx + 0x5060]
call fcn.140002b60
lea rcx, [rbx + 0x60b8]
call fcn.140002b60
lea rcx, [rbx + 0x60c8]
call fcn.140002b60
lea rcx, [rbx + 0x5100]
call fcn.140002b60
lea rcx, [rbx + 0x5110]
call fcn.140002b60
lea rcx, [rbx + 0x5120]
call fcn.140002b60
lea rcx, [rbx + 0x5f88]
mov dword [rbx + 0x5f80], r12d
call fcn.140002b60
lea rcx, [rbx + 0x61d0]
call fcn.140002b60
mov r8, qword [rbx + 0x61c8]
mov rsi, qword [rsp + 0x60]
test r8, r8
je 0x14000ac4f
mov rdi, qword [0x1400d1b50]
mov qword [rbx + 0x61c0], r12
test rdi, rdi
je 0x14000ac3f
movsx r10, word [rdi + 0x6348]
lea rdx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x14000ac35
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
lea rdx, [rdi + 0x634c]
sub ecx, eax
mov word [rdi + 0x6348], cx
movsx rax, cx
lea rdx, [rdx + rax*8]
mov dword [rdx], r9d
mov dword [rdx + 4], r12d
inc word [rdx + 6]
inc dword [rdi + 0x6344]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x61c8], r12
cmp qword [rbx + 0x6268], r12
je 0x14000ac7f
mov rdi, qword [rbx + 0x6268]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x14000ac78
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x6268], r12
lea rcx, [rbx + 0x6270]
call fcn.140002b60
lea rcx, [rbx + 0x62a8]
call fcn.140002b60
lea rcx, [rbx + 0x62b8]
call fcn.140002b60
mov rdi, qword [rsp + 0x30]
mov dword [rbx + 0x62c8], r12d
mov byte [rbx], r12b
add rsp, 0x38
pop r12
pop rbx
ret