Function at 0x140009810
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0xa8]
mov rbx, rcx
test rax, rax
je 0x140009860
cmp byte [rcx + 1], 0
je 0x140009860
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x140009860
mov rcx, rdi
call fcn.1400362f0
mov rax, qword [0x14008b010]
test rax, rax
je 0x140009857
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r15d, r15d
mov qword [rbx + 0xa8], r15
cmp byte [rbx], r15b
je 0x140009f1c
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
cmp byte [rbx + 0x3048], r15b
je 0x1400098ed
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x1400098ed
mov rsi, qword [0x14008b010]
lea rcx, [rsp + 0x40]
mov qword [0x14008b010], rbx
mov dword [rbx + 0x304c], r15d
mov qword [rsp + 0x40], r15
call fcn.14001af00
lea rdx, [0x140070f14]
mov rcx, rdi
mov rbp, rax
call fcn.140004000
mov rdi, rax
test rax, rax
je 0x1400098f4
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 1]
mov r9, rax
mov rcx, rbp
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]
jmp 0x1400098f4
mov rsi, qword [0x14008b010]
mov qword [0x14008b010], rbx
call fcn.14001de60
mov eax, dword [rbx + 0x3010]
mov qword [0x14008b010], rsi
mov esi, r15d
test eax, eax
jle 0x14000998f
mov qword [rsp + 0x58], r14
mov rbp, r15
mov r14, r15
nop
test rbp, rbp
js 0x140009929
cmp esi, eax
jl 0x140009943
mov r8d, 0x5c8
lea rdx, str.C:UsersArgonjkeeeDocumentsLeaked_Rust_Script_mainimguiimgui.h
lea rcx, [0x140072d68]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0x3018]
mov rdi, qword [rax + r14 + 8]
test rdi, rdi
je 0x140009977
mov rcx, rdi
call fcn.14001fdb0
mov rax, qword [0x14008b010]
test rax, rax
je 0x14000996e
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rbx + 0x3010]
inc esi
inc rbp
add r14, 0x10
cmp esi, eax
jl 0x140009920
mov r14, qword [rsp + 0x58]
mov edx, 6
mov rcx, rbx
call fcn.140006c90
mov eax, dword [rbx + 0x1bc8]
mov ebp, r15d
test eax, eax
jle 0x140009a15
mov rsi, r15
nop dword [rax]
test rsi, rsi
js 0x1400099b9
cmp ebp, eax
jl 0x1400099d3
mov r8d, 0x5c8
lea rdx, str.C:UsersArgonjkeeeDocumentsLeaked_Rust_Script_mainimguiimgui.h
lea rcx, [0x140072d68]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0x1bd0]
mov rdi, qword [rax + rsi*8]
test rdi, rdi
je 0x140009a06
mov rcx, rdi
call fcn.14002a600
mov rax, qword [0x14008b010]
test rax, rax
je 0x1400099fd
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rbx + 0x1bc8]
inc ebp
inc rsi
cmp ebp, eax
jl 0x1400099b0
mov rcx, qword [rbx + 0x1bd0]
mov rbp, qword [rsp + 0x48]
test rcx, rcx
je 0x140009a4c
mov rax, qword [0x14008b010]
mov qword [rbx + 0x1bc8], r15
test rax, rax
je 0x140009a3f
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1bd0], r15
mov rcx, qword [rbx + 0x1be0]
test rcx, rcx
je 0x140009a7e
mov rax, qword [0x14008b010]
mov qword [rbx + 0x1bd8], r15
test rax, rax
je 0x140009a71
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1be0], r15
mov rcx, qword [rbx + 0x1bf0]
test rcx, rcx
je 0x140009ab0
mov rax, qword [0x14008b010]
mov qword [rbx + 0x1be8], r15
test rax, rax
je 0x140009aa3
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1bf0], r15
mov qword [rbx + 0x1c20], r15
mov rcx, qword [rbx + 0x1c00]
test rcx, rcx
je 0x140009ae9
mov rax, qword [0x14008b010]
mov qword [rbx + 0x1bf8], r15
test rax, rax
je 0x140009adc
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c00], r15
mov rcx, qword [rbx + 0x1c10]
test rcx, rcx
je 0x140009b1b
mov rax, qword [0x14008b010]
mov qword [rbx + 0x1c08], r15
test rax, rax
je 0x140009b0e
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1c10], r15
mov qword [rbx + 0x1e00], r15
mov qword [rbx + 0x1c38], r15
mov qword [rbx + 0x1c30], r15
mov qword [rbx + 0x1c28], r15
mov qword [rbx + 0x1cc0], r15
mov qword [rbx + 0x1ca8], r15
mov qword [rbx + 0x1c48], r15
mov rcx, qword [rbx + 0x1d80]
test rcx, rcx
je 0x140009b7e
mov rax, qword [0x14008b010]
mov qword [rbx + 0x1d78], r15
test rax, rax
je 0x140009b71
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d80], r15
mov rcx, qword [rbx + 0x1d90]
test rcx, rcx
je 0x140009bb0
mov rax, qword [0x14008b010]
mov qword [rbx + 0x1d88], r15
test rax, rax
je 0x140009ba3
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d90], r15
mov rcx, qword [rbx + 0x1da0]
test rcx, rcx
je 0x140009be2
mov rax, qword [0x14008b010]
mov qword [rbx + 0x1d98], r15
test rax, rax
je 0x140009bd5
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1da0], r15
mov rcx, qword [rbx + 0x1db0]
test rcx, rcx
je 0x140009c14
mov rax, qword [0x14008b010]
mov qword [rbx + 0x1da8], r15
test rax, rax
je 0x140009c07
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1db0], r15
mov rcx, qword [rbx + 0x1dc0]
test rcx, rcx
je 0x140009c46
mov rax, qword [0x14008b010]
mov qword [rbx + 0x1db8], r15
test rax, rax
je 0x140009c39
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1dc0], r15
mov eax, dword [rbx + 0x1dc8]
mov edi, r15d
mov qword [rbx + 0x1df0], r15
mov qword [rbx + 0x1de8], r15
mov qword [rbx + 0x1de0], r15
test eax, eax
jle 0x140009cb2
mov rsi, r15
nop dword [rax + rax]
test rsi, rsi
js 0x140009c79
cmp edi, eax
jl 0x140009c93
mov r8d, 0x5c8
lea rdx, str.C:UsersArgonjkeeeDocumentsLeaked_Rust_Script_mainimguiimgui.h
lea rcx, [0x140072d68]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 0x1dd0]
mov rcx, qword [rcx + rsi*8]
call fcn.14002a060
mov eax, dword [rbx + 0x1dc8]
inc edi
inc rsi
cmp edi, eax
jl 0x140009c70
mov rcx, qword [rbx + 0x1dd0]
mov rsi, qword [rsp + 0x50]
test rcx, rcx
je 0x140009ce9
mov rax, qword [0x14008b010]
mov qword [rbx + 0x1dc8], r15
test rax, rax
je 0x140009cdc
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1dd0], r15
lea rcx, [rbx + 0x2030]
call fcn.140028d70
mov rcx, qword [rbx + 0x2060]
test rcx, rcx
je 0x140009d27
mov rax, qword [0x14008b010]
mov qword [rbx + 0x2058], r15
test rax, rax
je 0x140009d1a
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2060], r15
mov rcx, qword [rbx + 0x2070]
test rcx, rcx
je 0x140009d59
mov rax, qword [0x14008b010]
mov qword [rbx + 0x2068], r15
test rax, rax
je 0x140009d4c
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2070], r15
mov rcx, qword [rbx + 0x2fd8]
test rcx, rcx
je 0x140009d8b
mov rax, qword [0x14008b010]
mov qword [rbx + 0x2fd0], r15
test rax, rax
je 0x140009d7e
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2fd8], r15
mov rcx, qword [rbx + 0x2fe8]
test rcx, rcx
je 0x140009dbd
mov rax, qword [0x14008b010]
mov qword [rbx + 0x2fe0], r15
test rax, rax
je 0x140009db0
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2fe8], r15
mov rcx, qword [rbx + 0x2098]
test rcx, rcx
je 0x140009def
mov rax, qword [0x14008b010]
mov qword [rbx + 0x2090], r15
test rax, rax
je 0x140009de2
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2098], r15
mov rcx, qword [rbx + 0x20a8]
test rcx, rcx
je 0x140009e21
mov rax, qword [0x14008b010]
mov qword [rbx + 0x20a0], r15
test rax, rax
je 0x140009e14
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20a8], r15
mov rcx, qword [rbx + 0x20b8]
test rcx, rcx
je 0x140009e53
mov rax, qword [0x14008b010]
mov qword [rbx + 0x20b0], r15
test rax, rax
je 0x140009e46
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x20b8], r15
mov rcx, qword [rbx + 0x3078]
test rcx, rcx
je 0x140009e85
mov rax, qword [0x14008b010]
mov qword [rbx + 0x3070], r15
test rax, rax
je 0x140009e78
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3078], r15
mov rcx, qword [rbx + 0x3068]
test rcx, rcx
je 0x140009eb7
mov rax, qword [0x14008b010]
mov qword [rbx + 0x3060], r15
test rax, rax
je 0x140009eaa
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3068], r15
cmp qword [rbx + 0x3098], r15
je 0x140009ee7
mov rdi, qword [rbx + 0x3098]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x140009ee0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3098], r15
mov rcx, qword [rbx + 0x30a8]
test rcx, rcx
je 0x140009f19
mov rax, qword [0x14008b010]
mov qword [rbx + 0x30a0], r15
test rax, rax
je 0x140009f0c
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30a8], r15
mov byte [rbx], r15b
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret