Function at 0x1400134f0
Capabilities:
Write file on windows

Disassembly:
push rbx
push r12
sub rsp, 0x38
mov rbx, qword [0x1400baf00]
cmp qword [rbx + 0x98], 0
je 0x140013523
mov r8d, 0xedc
lea rdx, str.F:devcfgimguidockimguiimgui.cpp
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 0x140013547
mov r8d, 0xedd
lea rdx, str.F:devcfgimguidockimguiimgui.cpp
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 0x140013563
cmp byte [rbx + 1], 0
je 0x140013563
mov byte [rax + 0x18], 0
mov rcx, qword [rbx + 0x38]
call fcn.140040e20
xor r12d, r12d
lea rcx, [rbx + 0x3ee0]
mov qword [rbx + 0x38], r12
call fcn.14000bec0
cmp byte [rbx], r12b
je 0x140013f42
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 0x1400135fb
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x1400135fb
mov rax, qword [0x1400baf00]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r12
mov dword [rax + 0x61ac], r12d
call fcn.14002f090
lea rdx, [0x14009c60c]
mov rcx, rdi
mov rsi, rax
call fcn.14000ea10
mov rdi, rax
test rax, rax
je 0x1400135fb
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 [0x1400baf00]
mov rdi, qword [rax + 0x4cb8]
movsxd rax, dword [rax + 0x4cb0]
lea rsi, [rdi + rax*8]
cmp rdi, rsi
je 0x140013631
nop dword [rax]
mov rcx, qword [rdi]
call fcn.1400324e0
add rdi, 8
cmp rdi, rsi
jne 0x140013620
mov eax, dword [rbx + 0x6168]
mov ebp, r12d
mov qword [rsp + 0x28], r14
test eax, eax
jle 0x140013716
mov r14, r12
mov r15, r12
nop dword [rax]
test r14, r14
js 0x140013659
cmp ebp, eax
jl 0x140013673
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 0x1400136ff
mov rcx, rsi
call fcn.140034550
mov rdi, qword [0x1400baf00]
test rdi, rdi
je 0x1400136f6
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r8d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x1400136ec
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 0x140013650
mov rdi, qword [rbx + 0x61f8]
movsxd rsi, dword [rbx + 0x61f0]
shl rsi, 5
add rsi, rdi
cmp rdi, rsi
je 0x140013748
cmp dword [rdi + 4], 6
jne 0x14001373f
mov rdx, rdi
mov rcx, rbx
call qword [rdi + 0x10]
add rdi, 0x20
cmp rdi, rsi
jne 0x140013730
mov ebp, r12d
cmp dword [rbx + 0x4110], r12d
jle 0x1400137fd
mov r14, r12
nop dword [rax + rax]
mov rax, qword [rbx + 0x4118]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x1400137eb
mov rcx, rsi
call fcn.140014650
mov rdi, qword [0x1400baf00]
test rdi, rdi
je 0x1400137e2
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r8d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x1400137d8
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 0x140013760
lea rcx, [rbx + 0x4110]
call fcn.14000bec0
lea rcx, [rbx + 0x4120]
call fcn.14000bec0
lea rcx, [rbx + 0x4130]
call fcn.14000bec0
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 0x1400138c8
mov rdi, qword [0x1400baf00]
mov qword [rbx + 0x4140], r12
test rdi, rdi
je 0x1400138b8
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400138ae
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.14000bec0
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.14000bec0
lea rcx, [rbx + 0x4ad0]
call fcn.14000bec0
mov r8, qword [rbx + 0x4c28]
test r8, r8
je 0x1400139bf
mov rdi, qword [0x1400baf00]
mov qword [rbx + 0x4c20], r12
test rdi, rdi
je 0x1400139af
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400139a5
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 0x140013a50
mov rdi, qword [0x1400baf00]
mov qword [rbx + 0x4c30], r12
test rdi, rdi
je 0x140013a40
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140013a36
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.14000bec0
lea rcx, [rbx + 0x4c80]
call fcn.14000bec0
lea rcx, [rbx + 0x4c90]
call fcn.14000bec0
mov r8, qword [rbx + 0x4ca8]
test r8, r8
je 0x140013b05
mov rdi, qword [0x1400baf00]
mov qword [rbx + 0x4ca0], r12
test rdi, rdi
je 0x140013af5
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140013aeb
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.14003fa20
lea rcx, [rbx + 0x5078]
call fcn.14003f490
mov r8, qword [rbx + 0x50a8]
test r8, r8
je 0x140013bc3
mov rdi, qword [0x1400baf00]
mov qword [rbx + 0x50a0], r12
test rdi, rdi
je 0x140013bb3
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140013ba9
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 0x140013c54
mov rdi, qword [0x1400baf00]
mov qword [rbx + 0x50b0], r12
test rdi, rdi
je 0x140013c44
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140013c3a
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 0x140013c85
movsxd rax, edi
lea rcx, [rax + rax*4]
mov rax, qword [rbx + 0x5000]
lea rcx, [rcx + 3]
lea rcx, [rax + rcx*8]
call fcn.14000d120
inc edi
cmp edi, dword [rbx + 0x4ff8]
jl 0x140013c60
mov r8, qword [rbx + 0x5000]
test r8, r8
je 0x140013d16
mov rdi, qword [0x1400baf00]
mov qword [rbx + 0x4ff8], r12
test rdi, rdi
je 0x140013d06
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140013cfc
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.14003f610
mov edi, r12d
cmp dword [rbx + 0x5018], r12d
jle 0x140013d50
nop
movsxd rax, edi
imul rcx, rax, 0x88
add rcx, qword [rbx + 0x5020]
call fcn.140040650
inc edi
cmp edi, dword [rbx + 0x5018]
jl 0x140013d30
mov r8, qword [rbx + 0x5020]
test r8, r8
je 0x140013de1
mov rdi, qword [0x1400baf00]
mov qword [rbx + 0x5018], r12
test rdi, rdi
je 0x140013dd1
movsx rdx, word [rdi + 0x6348]
lea rcx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140013dc7
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.14000bec0
lea rcx, [rbx + 0x60b8]
call fcn.14000bec0
lea rcx, [rbx + 0x60c8]
call fcn.14000bec0
lea rcx, [rbx + 0x5100]
call fcn.14000bec0
lea rcx, [rbx + 0x5110]
call fcn.14000bec0
lea rcx, [rbx + 0x5120]
call fcn.14000bec0
lea rcx, [rbx + 0x5f88]
mov dword [rbx + 0x5f80], r12d
call fcn.14000bec0
lea rcx, [rbx + 0x61d0]
call fcn.14000bec0
mov r8, qword [rbx + 0x61c8]
mov rsi, qword [rsp + 0x60]
test r8, r8
je 0x140013edf
mov rdi, qword [0x1400baf00]
mov qword [rbx + 0x61c0], r12
test rdi, rdi
je 0x140013ecf
movsx r10, word [rdi + 0x6348]
lea rdx, [rdi + 0x634c]
mov r9d, dword [rdi + 0x40c8]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x140013ec5
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 0x140013f0f
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 0x140013f08
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.14000bec0
lea rcx, [rbx + 0x62a8]
call fcn.14000bec0
lea rcx, [rbx + 0x62b8]
call fcn.14000bec0
mov rdi, qword [rsp + 0x30]
mov dword [rbx + 0x62c8], r12d
mov byte [rbx], r12b
add rsp, 0x38
pop r12
pop rbx
ret