Function at 0x140009330
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x30
mov rax, qword [rcx + 0xa8]
mov rdi, rcx
test rax, rax
je 0x1400093ef
cmp byte [rcx + 1], 0
je 0x1400093ef
mov byte [rax], 0
mov rbx, qword [rcx + 0xa8]
test rbx, rbx
je 0x1400093ef
mov rcx, rbx
call fcn.14002dd00
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x140009392
mov rax, qword [0x14006fc40]
test rax, rax
je 0x14000938c
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400093b3
mov rax, qword [0x14006fc40]
test rax, rax
je 0x1400093ad
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1400093d4
mov rax, qword [0x14006fc40]
test rax, rax
je 0x1400093ce
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x14006fc40]
test rax, rax
je 0x1400093e6
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r15d, r15d
mov qword [rdi + 0xa8], r15
cmp byte [rdi], r15b
je 0x140009c05
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], r12
cmp byte [rdi + 0x2fb8], r15b
je 0x140009481
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140009481
mov rsi, qword [0x14006fc40]
lea rcx, [rsp + 0x50]
mov qword [0x14006fc40], rdi
mov dword [rdi + 0x2fbc], r15d
mov qword [rsp + 0x50], r15
call fcn.1400181c0
lea rdx, [0x14005dd3c]
mov rcx, rbx
mov rbp, rax
call fcn.140004130
mov rbx, rax
test rax, rax
je 0x140009488
mov r8, qword [rsp + 0x50]
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, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140009488
mov rsi, qword [0x14006fc40]
mov qword [0x14006fc40], rdi
call fcn.14001a480
mov qword [0x14006fc40], rsi
mov esi, r15d
cmp dword [rdi + 0x2f80], r15d
jle 0x1400094f2
mov rbp, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x2f88]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x1400094e4
mov rcx, rbx
call fcn.14001b770
mov rax, qword [0x14006fc40]
test rax, rax
je 0x1400094db
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rdi + 0x2f80]
jl 0x1400094b0
mov ebx, r15d
cmp dword [rdi + 0x2ff0], r15d
jle 0x140009530
mov rsi, r15
mov r8, qword [rdi + 0x2ff8]
cmp dword [rsi + r8], 6
jne 0x140009522
movsxd rax, ebx
lea rcx, [rax + rax*2]
lea rdx, [r8 + rcx*8]
mov rcx, rdi
call qword [rsi + r8 + 8]
inc ebx
add rsi, 0x18
cmp ebx, dword [rdi + 0x2ff0]
jl 0x140009501
mov r12d, r15d
cmp dword [rdi + 0x1b38], r15d
jle 0x1400096cd
mov qword [rsp + 0x28], r13
mov r13, r15
mov qword [rsp + 0x20], r14
nop dword [rax]
mov rax, qword [rdi + 0x1b40]
mov rsi, qword [rax + r13]
test rsi, rsi
je 0x1400096af
mov rcx, qword [rsi]
test rcx, rcx
je 0x140009584
mov rax, qword [0x14006fc40]
test rax, rax
je 0x14000957e
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rsi + 0x2f8], 0
mov r14d, r15d
je 0x140009610
mov rbp, r15
nop word [rax + rax]
mov r15, qword [rsi + 0x300]
lea rbx, [r15 + rbp]
lea rcx, [rbx + 0x70]
call fcn.14002d1c0
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400095d8
mov rax, qword [0x14006fc40]
test rax, rax
je 0x1400095d2
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [r15 + rbp + 0x68]
test rcx, rcx
je 0x1400095fa
mov rax, qword [0x14006fc40]
test rax, rax
je 0x1400095f4
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc r14d
add rbp, 0x88
cmp r14d, dword [rsi + 0x2f8]
jne 0x1400095a0
xor r15d, r15d
lea rcx, [rsi + 0x320]
call fcn.1400025e0
mov rcx, qword [rsi + 0x300]
test rcx, rcx
je 0x140009640
mov rax, qword [0x14006fc40]
test rax, rax
je 0x14000963a
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsi + 0x2f0]
test rcx, rcx
je 0x140009664
mov rax, qword [0x14006fc40]
test rax, rax
je 0x14000965e
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsi + 0x118]
call fcn.140006380
mov rcx, qword [rsi + 0x110]
test rcx, rcx
je 0x140009694
mov rax, qword [0x14006fc40]
test rax, rax
je 0x14000968e
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x14006fc40]
test rax, rax
je 0x1400096a6
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc r12d
add r13, 8
cmp r12d, dword [rdi + 0x1b38]
jl 0x140009550
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov rcx, qword [rdi + 0x1b40]
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x14000970d
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x1b38], 0
test rax, rax
je 0x140009700
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1b40], r15
mov rcx, qword [rdi + 0x1b50]
test rcx, rcx
je 0x140009743
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x1b48], 0
test rax, rax
je 0x140009736
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1b50], r15
mov rcx, qword [rdi + 0x1b60]
test rcx, rcx
je 0x140009779
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x1b58], 0
test rax, rax
je 0x14000976c
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1b60], r15
mov qword [rdi + 0x1b90], r15
mov rcx, qword [rdi + 0x1b70]
test rcx, rcx
je 0x1400097b6
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x1b68], 0
test rax, rax
je 0x1400097a9
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1b70], r15
mov rcx, qword [rdi + 0x1b80]
test rcx, rcx
je 0x1400097ec
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x1b78], 0
test rax, rax
je 0x1400097df
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1b80], r15
mov qword [rdi + 0x1d70], r15
mov qword [rdi + 0x1ba8], r15
mov qword [rdi + 0x1ba0], r15
mov qword [rdi + 0x1b98], r15
mov qword [rdi + 0x1c30], r15
mov qword [rdi + 0x1c18], r15
mov qword [rdi + 0x1bb8], r15
mov rcx, qword [rdi + 0x1cf0]
test rcx, rcx
je 0x140009853
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x1ce8], 0
test rax, rax
je 0x140009846
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1cf0], r15
mov rcx, qword [rdi + 0x1d00]
test rcx, rcx
je 0x140009889
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x1cf8], 0
test rax, rax
je 0x14000987c
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d00], r15
mov rcx, qword [rdi + 0x1d10]
test rcx, rcx
je 0x1400098bf
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x1d08], 0
test rax, rax
je 0x1400098b2
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d10], r15
mov rcx, qword [rdi + 0x1d20]
test rcx, rcx
je 0x1400098f5
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x1d18], 0
test rax, rax
je 0x1400098e8
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d20], r15
mov rcx, qword [rdi + 0x1d30]
test rcx, rcx
je 0x14000992b
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x1d28], 0
test rax, rax
je 0x14000991e
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d30], r15
cmp dword [rdi + 0x1d38], 0
mov ebx, r15d
mov qword [rdi + 0x1d60], r15
mov qword [rdi + 0x1d58], r15
mov qword [rdi + 0x1d50], r15
jle 0x14000996e
mov rsi, r15
nop
mov rcx, qword [rdi + 0x1d40]
mov rcx, qword [rsi + rcx]
call fcn.140022ca0
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x1d38]
jl 0x140009950
mov rcx, qword [rdi + 0x1d40]
mov rsi, qword [rsp + 0x60]
test rcx, rcx
je 0x1400099a9
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x1d38], 0
test rax, rax
je 0x14000999c
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d40], r15
lea rcx, [rdi + 0x1fa0]
call fcn.1400222c0
mov rcx, qword [rdi + 0x1fd0]
test rcx, rcx
je 0x1400099eb
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x1fc8], 0
test rax, rax
je 0x1400099de
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1fd0], r15
mov rcx, qword [rdi + 0x1fe0]
test rcx, rcx
je 0x140009a21
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x1fd8], 0
test rax, rax
je 0x140009a14
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1fe0], r15
mov rcx, qword [rdi + 0x2f48]
test rcx, rcx
je 0x140009a57
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x2f40], 0
test rax, rax
je 0x140009a4a
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2f48], r15
mov rcx, qword [rdi + 0x2f58]
test rcx, rcx
je 0x140009a8d
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x2f50], 0
test rax, rax
je 0x140009a80
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2f58], r15
mov rcx, qword [rdi + 0x2008]
test rcx, rcx
je 0x140009ac3
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x2000], 0
test rax, rax
je 0x140009ab6
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2008], r15
mov rcx, qword [rdi + 0x2018]
test rcx, rcx
je 0x140009af9
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x2010], 0
test rax, rax
je 0x140009aec
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2018], r15
mov rcx, qword [rdi + 0x2028]
test rcx, rcx
je 0x140009b2f
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x2020], 0
test rax, rax
je 0x140009b22
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2028], r15
mov rcx, qword [rdi + 0x2fe8]
test rcx, rcx
je 0x140009b65
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x2fe0], 0
test rax, rax
je 0x140009b58
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2fe8], r15
mov rcx, qword [rdi + 0x2fd8]
test rcx, rcx
je 0x140009b9b
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x2fd0], 0
test rax, rax
je 0x140009b8e
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2fd8], r15
cmp qword [rdi + 0x3008], 0
je 0x140009bcc
mov rbx, qword [rdi + 0x3008]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140009bc5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x3008], r15
mov rcx, qword [rdi + 0x3018]
test rcx, rcx
je 0x140009c02
mov rax, qword [0x14006fc40]
mov qword [rdi + 0x3010], 0
test rax, rax
je 0x140009bf5
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3018], r15
mov byte [rdi], 0
add rsp, 0x30
pop r15
pop rdi
pop rbx
ret