Function at 0x140008440
Capabilities:
Write file on windows

Disassembly:
push rbx
push r12
sub rsp, 0x38
mov rbx, qword [0x1400c7f18]
cmp qword [rbx + 0xa0], 0
je 0x14000848d
lea rcx, str.Forgot_to_shutdown_Platform_backend_
call fcn.140019b00
test al, al
je 0x14000848d
cmp qword [rbx + 0xa0], 0
je 0x14000848d
mov r8d, 0x1001
lea rdx, str.C:UsersiphonDesktopinterfaceshavochavoc_ui_2imgui.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 + 0xa8], 0
je 0x1400084cb
lea rcx, str.Forgot_to_shutdown_Renderer_backend_
call fcn.140019b00
test al, al
je 0x1400084cb
cmp qword [rbx + 0xa8], 0
je 0x1400084cb
mov r8d, 0x1002
lea rdx, str.C:UsersiphonDesktopinterfaceshavochavoc_ui_2imgui.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 0x1400084e7
cmp byte [rbx + 1], 0
je 0x1400084e7
mov byte [rax + 0x18], 0
mov rcx, qword [rbx + 0x38]
call fcn.1400263c0
xor r12d, r12d
lea rcx, [rbx + 0x10e0]
mov qword [rbx + 0x38], r12
call fcn.1400010e0
cmp byte [rbx], r12b
je 0x140008da9
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], r15
cmp byte [rbx + 0x2590], r12b
je 0x14000857f
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14000857f
mov rax, qword [0x1400c7f18]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r12
mov dword [rax + 0x2594], r12d
call fcn.1400232a0
lea rdx, [0x14006da4c]
mov rcx, rdi
mov rsi, rax
call fcn.140002c20
mov rdi, rax
test rax, rax
je 0x14000857f
mov r8, qword [rsp + 0x50]
mov r9, rax
mov edx, 1
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 rdi, qword [rbx + 0x25e0]
movsxd rsi, dword [rbx + 0x25d8]
shl rsi, 5
add rsi, rdi
cmp rdi, rsi
je 0x1400085b8
nop dword [rax]
cmp dword [rdi + 4], 6
jne 0x1400085af
mov rdx, rdi
mov rcx, rbx
call qword [rdi + 0x10]
add rdi, 0x20
cmp rdi, rsi
jne 0x1400085a0
mov ebp, r12d
cmp dword [rbx + 0x1330], r12d
jle 0x140008676
mov qword [rsp + 0x28], r14
mov r14, r12
mov rax, qword [rbx + 0x1338]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x14000865f
mov rcx, rsi
call fcn.140009400
mov rdi, qword [0x1400c7f18]
test rdi, rdi
je 0x140008656
movsx rdx, word [rdi + 0x2778]
lea rcx, [rdi + 0x277c]
mov r8d, dword [rdi + 0x12d8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x14000864c
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 + 0x2778], cx
movsx rax, cx
lea rcx, [rdi + 0x277c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r8d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x2774]
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 + 0x1330]
jl 0x1400085d0
mov r14, qword [rsp + 0x28]
lea rcx, [rbx + 0x1330]
call fcn.1400010e0
lea rcx, [rbx + 0x1340]
call fcn.1400010e0
lea rcx, [rbx + 0x1350]
call fcn.1400010e0
mov r15, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
mov qword [rbx + 0x1390], r12
mov r8, qword [rbx + 0x1368]
test r8, r8
je 0x14000873c
mov rdi, qword [0x1400c7f18]
mov qword [rbx + 0x1360], r12
test rdi, rdi
je 0x14000872c
movsx rdx, word [rdi + 0x2778]
lea rcx, [rdi + 0x277c]
mov r9d, dword [rdi + 0x12d8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140008722
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 + 0x2778], cx
movsx rax, cx
lea rcx, [rdi + 0x277c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x2774]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1368], r12
lea rcx, [rbx + 0x1370]
call fcn.1400010e0
mov qword [rbx + 0x1ed0], r12
lea rdi, [rbx + 0x1bb8]
mov qword [rbx + 0x13a0], r12
mov eax, 0xffffffff
movsx rax, ax
mov ecx, 0x9a
mov qword [rbx + 0x1398], r12
mov qword [rbx + 0x1440], r12
mov qword [rbx + 0x1428], r12
mov qword [rbx + 0x13b0], r12
rep stosw word [rdi], ax
lea rcx, [rbx + 0x1cf0]
call fcn.1400010e0
lea rcx, [rbx + 0x1d00]
call fcn.1400010e0
mov r8, qword [rbx + 0x1e30]
test r8, r8
je 0x140008833
mov rdi, qword [0x1400c7f18]
mov qword [rbx + 0x1e28], r12
test rdi, rdi
je 0x140008823
movsx rdx, word [rdi + 0x2778]
lea rcx, [rdi + 0x277c]
mov r9d, dword [rdi + 0x12d8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140008819
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 + 0x2778], cx
movsx rax, cx
lea rcx, [rdi + 0x277c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x2774]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e30], r12
mov r8, qword [rbx + 0x1e40]
test r8, r8
je 0x1400088c4
mov rdi, qword [0x1400c7f18]
mov qword [rbx + 0x1e38], r12
test rdi, rdi
je 0x1400088b4
movsx rdx, word [rdi + 0x2778]
lea rcx, [rdi + 0x277c]
mov r9d, dword [rdi + 0x12d8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400088aa
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 + 0x2778], cx
movsx rax, cx
lea rcx, [rdi + 0x277c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x2774]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e40], r12
lea rcx, [rbx + 0x1e48]
call fcn.1400010e0
lea rcx, [rbx + 0x1e88]
call fcn.1400010e0
lea rcx, [rbx + 0x1e98]
call fcn.1400010e0
mov r8, qword [rbx + 0x1eb0]
test r8, r8
je 0x140008979
mov rdi, qword [0x1400c7f18]
mov qword [rbx + 0x1ea8], r12
test rdi, rdi
je 0x140008969
movsx rdx, word [rdi + 0x2778]
lea rcx, [rdi + 0x277c]
mov r9d, dword [rdi + 0x12d8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14000895f
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 + 0x2778], cx
movsx rax, cx
lea rcx, [rdi + 0x277c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x2774]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1eb0], r12
lea rcx, [rbx + 0x1eb8]
call fcn.140024e80
lea rcx, [rbx + 0x2220]
call fcn.1400249c0
mov r8, qword [rbx + 0x2250]
test r8, r8
je 0x140008a22
mov rdi, qword [0x1400c7f18]
mov qword [rbx + 0x2248], r12
test rdi, rdi
je 0x140008a12
movsx rdx, word [rdi + 0x2778]
lea rcx, [rdi + 0x277c]
mov r9d, dword [rdi + 0x12d8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140008a08
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 + 0x2778], cx
movsx rax, cx
lea rcx, [rdi + 0x277c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x2774]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2250], r12
mov r8, qword [rbx + 0x2260]
test r8, r8
je 0x140008ab3
mov rdi, qword [0x1400c7f18]
mov qword [rbx + 0x2258], r12
test rdi, rdi
je 0x140008aa3
movsx rdx, word [rdi + 0x2778]
lea rcx, [rdi + 0x277c]
mov r9d, dword [rdi + 0x12d8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140008a99
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 + 0x2778], cx
movsx rax, cx
lea rcx, [rdi + 0x277c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x2774]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2260], r12
mov edi, r12d
cmp dword [rbx + 0x21a0], r12d
jle 0x140008ae1
nop
movsxd rax, edi
lea rcx, [rax + rax*4]
mov rax, qword [rbx + 0x21a8]
lea rcx, [rax + rcx*8]
call fcn.140003ed0
inc edi
cmp edi, dword [rbx + 0x21a0]
jl 0x140008ac0
mov r8, qword [rbx + 0x21a8]
test r8, r8
je 0x140008b72
mov rdi, qword [0x1400c7f18]
mov qword [rbx + 0x21a0], r12
test rdi, rdi
je 0x140008b62
movsx rdx, word [rdi + 0x2778]
lea rcx, [rdi + 0x277c]
mov r9d, dword [rdi + 0x12d8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140008b58
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 + 0x2778], cx
movsx rax, cx
lea rcx, [rdi + 0x277c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x2774]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21a8], r12
lea rcx, [rbx + 0x21d0]
call fcn.140024b70
mov edi, r12d
mov rsi, qword [rsp + 0x60]
cmp dword [rbx + 0x21c0], r12d
jle 0x140008bb0
nop
movsxd rax, edi
imul rcx, rax, 0x88
add rcx, qword [rbx + 0x21c8]
call fcn.140025c50
inc edi
cmp edi, dword [rbx + 0x21c0]
jl 0x140008b90
mov r8, qword [rbx + 0x21c8]
test r8, r8
je 0x140008c41
mov rdi, qword [0x1400c7f18]
mov qword [rbx + 0x21c0], r12
test rdi, rdi
je 0x140008c31
movsx rdx, word [rdi + 0x2778]
lea rcx, [rdi + 0x277c]
mov r9d, dword [rdi + 0x12d8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140008c27
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 + 0x2778], cx
movsx rax, cx
lea rcx, [rdi + 0x277c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x2774]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21c8], r12
lea rcx, [rbx + 0x2208]
call fcn.1400010e0
lea rcx, [rbx + 0x22f0]
call fcn.140024760
lea rcx, [rbx + 0x22e0]
call fcn.1400248e0
lea rcx, [rbx + 0x24e8]
call fcn.1400010e0
lea rcx, [rbx + 0x24f8]
call fcn.1400010e0
lea rcx, [rbx + 0x2358]
call fcn.1400010e0
lea rcx, [rbx + 0x2368]
call fcn.1400010e0
lea rcx, [rbx + 0x23b8]
mov dword [rbx + 0x23b0], r12d
call fcn.1400010e0
lea rcx, [rbx + 0x25b8]
call fcn.1400010e0
mov r8, qword [rbx + 0x25b0]
test r8, r8
je 0x140008d46
mov rdi, qword [0x1400c7f18]
mov qword [rbx + 0x25a8], r12
test rdi, rdi
je 0x140008d36
movsx r10, word [rdi + 0x2778]
lea rdx, [rdi + 0x277c]
mov r9d, dword [rdi + 0x12d8]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x140008d2c
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 + 0x277c]
sub ecx, eax
mov word [rdi + 0x2778], 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 + 0x2774]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x25b0], r12
cmp qword [rbx + 0x2650], r12
je 0x140008d76
mov rdi, qword [rbx + 0x2650]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x140008d6f
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x2650], r12
lea rcx, [rbx + 0x2658]
call fcn.1400010e0
lea rcx, [rbx + 0x26d8]
call fcn.1400010e0
lea rcx, [rbx + 0x26e8]
call fcn.1400010e0
mov rdi, qword [rsp + 0x30]
mov dword [rbx + 0x26f8], r12d
mov byte [rbx], r12b
add rsp, 0x38
pop r12
pop rbx
ret