Function at 0x140009370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x1400093cf
cmp byte [rcx + 1], 0
je 0x1400093cf
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x1400093cf
mov rcx, rdi
call fcn.14002f750
mov rax, qword [0x14008ae30]
test rax, rax
je 0x1400093c6
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 0x140009b14
cmp byte [rbx + 0x3048], r15b
je 0x140009453
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140009453
mov rsi, qword [0x14008ae30]
mov qword [0x14008ae30], rbx
mov dword [rbx + 0x304c], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140018530
mov rbp, rax
lea rdx, [0x140077c64]
mov rcx, rdi
call fcn.140004330
mov rdi, rax
test rax, rax
je 0x14000945a
mov r9, rax
mov r8, qword [rsp + 0x40]
mov edx, 1
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 0x14000945a
mov rsi, qword [0x14008ae30]
mov qword [0x14008ae30], rbx
call fcn.14001a9f0
mov qword [0x14008ae30], rsi
mov esi, r15d
cmp dword [rbx + 0x3010], r15d
jle 0x1400094c2
mov rbp, r15
nop dword [rax]
mov rax, qword [rbx + 0x3018]
mov rdi, qword [rax + rbp + 8]
test rdi, rdi
je 0x1400094b4
mov rcx, rdi
call fcn.14001c010
mov rax, qword [0x14008ae30]
test rax, rax
je 0x1400094ab
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rbx + 0x3010]
jl 0x140009480
mov edi, r15d
cmp dword [rbx + 0x3080], r15d
jle 0x140009502
mov rsi, r15
mov rdx, qword [rbx + 0x3088]
cmp dword [rsi + rdx], 6
jne 0x1400094f4
mov r8, qword [rsi + rdx + 8]
movsxd rax, edi
lea rcx, [rax + rax*2]
lea rdx, [rdx + rcx*8]
mov rcx, rbx
call r8
inc edi
add rsi, 0x18
cmp edi, dword [rbx + 0x3080]
jl 0x1400094d1
mov ebp, r15d
cmp dword [rbx + 0x1bc8], r15d
jle 0x140009636
mov r14, r15
nop word [rax + rax]
mov rax, qword [rbx + 0x1bd0]
mov rdi, qword [r14 + rax]
test rdi, rdi
je 0x140009624
mov rcx, qword [rdi]
test rcx, rcx
je 0x140009554
mov rax, qword [0x14008ae30]
test rax, rax
je 0x14000954e
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, r15d
cmp dword [rdi + 0x2f8], r15d
je 0x140009580
movsxd rax, esi
imul rcx, rax, 0x88
add rcx, qword [rdi + 0x300]
call fcn.1400061d0
inc esi
cmp esi, dword [rdi + 0x2f8]
jne 0x140009560
lea rcx, [rdi + 0x320]
call fcn.140002a60
nop
mov rcx, qword [rdi + 0x300]
test rcx, rcx
je 0x1400095b2
mov rax, qword [0x14008ae30]
test rax, rax
je 0x1400095ab
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rdi + 0x2f0]
test rcx, rcx
je 0x1400095d7
mov rax, qword [0x14008ae30]
test rax, rax
je 0x1400095d0
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rdi + 0x118]
call fcn.140006100
nop
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x140009609
mov rax, qword [0x14008ae30]
test rax, rax
je 0x140009602
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x14008ae30]
test rax, rax
je 0x14000961b
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x1bc8]
jl 0x140009520
mov rcx, qword [rbx + 0x1bd0]
test rcx, rcx
je 0x140009668
mov qword [rbx + 0x1bc8], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x14000965b
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 0x14000969a
mov qword [rbx + 0x1bd8], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x14000968d
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 0x1400096cc
mov qword [rbx + 0x1be8], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x1400096bf
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 0x140009705
mov qword [rbx + 0x1bf8], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x1400096f8
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 0x140009737
mov qword [rbx + 0x1c08], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x14000972a
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 0x14000979a
mov qword [rbx + 0x1d78], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x14000978d
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 0x1400097cc
mov qword [rbx + 0x1d88], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x1400097bf
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 0x1400097fe
mov qword [rbx + 0x1d98], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x1400097f1
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 0x140009830
mov qword [rbx + 0x1da8], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x140009823
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 0x140009862
mov qword [rbx + 0x1db8], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x140009855
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1dc0], r15
mov qword [rbx + 0x1df0], r15
mov qword [rbx + 0x1de8], r15
mov qword [rbx + 0x1de0], r15
mov esi, r15d
cmp dword [rbx + 0x1dc8], r15d
jle 0x1400098ae
mov rdi, r15
nop word [rax + rax]
mov rcx, qword [rbx + 0x1dd0]
mov rcx, qword [rdi + rcx]
call fcn.140024860
inc esi
lea rdi, [rdi + 8]
cmp esi, dword [rbx + 0x1dc8]
jl 0x140009890
mov rcx, qword [rbx + 0x1dd0]
test rcx, rcx
je 0x1400098e0
mov qword [rbx + 0x1dc8], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x1400098d3
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.140023870
mov rcx, qword [rbx + 0x2060]
test rcx, rcx
je 0x14000991e
mov qword [rbx + 0x2058], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x140009911
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 0x140009950
mov qword [rbx + 0x2068], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x140009943
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 0x140009982
mov qword [rbx + 0x2fd0], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x140009975
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 0x1400099b4
mov qword [rbx + 0x2fe0], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x1400099a7
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 0x1400099e6
mov qword [rbx + 0x2090], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x1400099d9
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 0x140009a18
mov qword [rbx + 0x20a0], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x140009a0b
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 0x140009a4a
mov qword [rbx + 0x20b0], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x140009a3d
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 0x140009a7c
mov qword [rbx + 0x3070], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x140009a6f
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 0x140009aae
mov qword [rbx + 0x3060], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x140009aa1
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], 0
je 0x140009adf
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 0x140009ad8
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 0x140009b11
mov qword [rbx + 0x30a0], r15
mov rax, qword [0x14008ae30]
test rax, rax
je 0x140009b04
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], 0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret