Function at 0x1400087c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x14000881e
cmp byte [rcx + 1], 0
je 0x14000881e
mov byte [rax + 0x18], 0
mov rbx, qword [rcx + 0xa8]
test rbx, rbx
je 0x14000881e
mov rcx, rbx
call fcn.14002aca0
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008815
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0xa8], r12
cmp byte [rdi], r12b
je 0x140008fbd
cmp byte [rdi + 0x3101], r12b
je 0x1400088a7
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400088a7
mov rsi, qword [0x1400c9a50]
mov qword [0x1400c9a50], rdi
mov dword [rdi + 0x3104], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.140019fd0
mov rbp, rax
lea rdx, [0x14005fe6c]
mov rcx, rbx
call fcn.140002920
mov rbx, rax
test rax, rax
je 0x1400088a0
mov r9, rax
mov r8, qword [rsp + 0x50]
lea edx, [r12 + 1]
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]
mov qword [0x1400c9a50], rsi
mov edx, 6
mov rcx, rdi
call fcn.140005870
mov esi, r12d
cmp dword [rdi + 0x1bf0], r12d
jle 0x140008911
mov r14, r12
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x1bf8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140008903
mov rcx, rbx
call fcn.140004ef0
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x1400088fa
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add r14, 8
cmp esi, dword [rdi + 0x1bf0]
jl 0x1400088d0
mov rcx, qword [rdi + 0x1bf8]
test rcx, rcx
je 0x140008943
mov qword [rdi + 0x1bf0], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008936
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1bf8], r12
mov rcx, qword [rdi + 0x1c08]
test rcx, rcx
je 0x140008975
mov qword [rdi + 0x1c00], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008968
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1c08], r12
mov rcx, qword [rdi + 0x1c18]
test rcx, rcx
je 0x1400089a7
mov qword [rdi + 0x1c10], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x14000899a
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1c18], r12
mov qword [rdi + 0x1c50], r12
mov rcx, qword [rdi + 0x1c28]
test rcx, rcx
je 0x1400089e0
mov qword [rdi + 0x1c20], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x1400089d3
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1c28], r12
mov rcx, qword [rdi + 0x1c38]
test rcx, rcx
je 0x140008a12
mov qword [rdi + 0x1c30], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008a05
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1c38], r12
mov qword [rdi + 0x1e50], r12
mov qword [rdi + 0x1c60], r12
mov qword [rdi + 0x1c58], r12
mov qword [rdi + 0x1ce0], r12
mov qword [rdi + 0x1cc8], r12
mov qword [rdi + 0x1c68], r12
mov rcx, qword [rdi + 0x1dc0]
test rcx, rcx
je 0x140008a6e
mov qword [rdi + 0x1db8], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008a61
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1dc0], r12
mov rcx, qword [rdi + 0x1dd0]
test rcx, rcx
je 0x140008aa0
mov qword [rdi + 0x1dc8], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008a93
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1dd0], r12
mov rcx, qword [rdi + 0x1de0]
test rcx, rcx
je 0x140008ad2
mov qword [rdi + 0x1dd8], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008ac5
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1de0], r12
mov rcx, qword [rdi + 0x1e20]
test rcx, rcx
je 0x140008b04
mov qword [rdi + 0x1e18], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008af7
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1e20], r12
mov rcx, qword [rdi + 0x1e30]
test rcx, rcx
je 0x140008b36
mov qword [rdi + 0x1e28], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008b29
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1e30], r12
mov ebp, r12d
cmp dword [rdi + 0x1e40], r12d
jle 0x140008c04
mov r14, r12
nop dword [rax]
mov rax, qword [rdi + 0x1e48]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140008bf2
mov rsi, qword [rbx + 0x30]
test rsi, rsi
je 0x140008b90
mov rcx, rsi
call fcn.140001020
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008b87
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140008bbd
mov rcx, rsi
call fcn.140001020
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008bb3
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x70]
lea r9, [0x14001ad20]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.14005a094
nop
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008be9
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x1e40]
jl 0x140008b50
mov rcx, qword [rdi + 0x1e48]
test rcx, rcx
je 0x140008c36
mov qword [rdi + 0x1e40], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008c29
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1e48], r12
lea rcx, [rdi + 0x2110]
call fcn.14001aef0
mov rcx, qword [rdi + 0x2140]
test rcx, rcx
je 0x140008c74
mov qword [rdi + 0x2138], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008c67
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2140], r12
mov rcx, qword [rdi + 0x2150]
test rcx, rcx
je 0x140008ca6
mov qword [rdi + 0x2148], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008c99
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2150], r12
mov ebx, r12d
cmp dword [rdi + 0x2090], r12d
jle 0x140008cf8
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x2098]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140008cea
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008ce3
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x2090]
jl 0x140008cc0
mov rcx, qword [rdi + 0x2098]
test rcx, rcx
je 0x140008d2a
mov qword [rdi + 0x2090], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008d1d
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2098], r12
lea rcx, [rdi + 0x20c0]
call fcn.14001b0d0
mov esi, r12d
cmp dword [rdi + 0x20b0], r12d
jle 0x140008d95
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x20b8]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14002a0b0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140008d87
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008d80
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x20b0]
jl 0x140008d50
mov rcx, qword [rdi + 0x20b8]
test rcx, rcx
je 0x140008dc7
mov qword [rdi + 0x20b0], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008dba
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x20b8], r12
mov rcx, qword [rdi + 0x2100]
test rcx, rcx
je 0x140008df9
mov qword [rdi + 0x20f8], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008dec
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2100], r12
mov rcx, qword [rdi + 0x30d8]
test rcx, rcx
je 0x140008e2b
mov qword [rdi + 0x30d0], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008e1e
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x30d8], r12
mov rcx, qword [rdi + 0x30e8]
test rcx, rcx
je 0x140008e5d
mov qword [rdi + 0x30e0], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008e50
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x30e8], r12
mov rcx, qword [rdi + 0x2178]
test rcx, rcx
je 0x140008e8f
mov qword [rdi + 0x2170], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008e82
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2178], r12
mov rcx, qword [rdi + 0x2188]
test rcx, rcx
je 0x140008ec1
mov qword [rdi + 0x2180], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008eb4
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2188], r12
mov rcx, qword [rdi + 0x2198]
test rcx, rcx
je 0x140008ef3
mov qword [rdi + 0x2190], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008ee6
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2198], r12
mov rcx, qword [rdi + 0x3130]
test rcx, rcx
je 0x140008f25
mov qword [rdi + 0x3128], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008f18
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3130], r12
mov rcx, qword [rdi + 0x3120]
test rcx, rcx
je 0x140008f57
mov qword [rdi + 0x3118], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008f4a
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3120], r12
cmp qword [rdi + 0x3168], 0
je 0x140008f88
mov rbx, qword [rdi + 0x3168]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140008f81
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x3168], r12
mov rcx, qword [rdi + 0x3178]
test rcx, rcx
je 0x140008fba
mov qword [rdi + 0x3170], r12
mov rax, qword [0x1400c9a50]
test rax, rax
je 0x140008fad
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3178], r12
mov byte [rdi], 0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret