Function at 0x140007a00
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 rdi, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x140007a66
cmp byte [rcx + 1], 0
je 0x140007a66
mov byte [rax + 0x18], 0
mov rbx, qword [rcx + 0xa8]
test rbx, rbx
je 0x140007a66
mov rcx, rbx
call fcn.1400163c0
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007a57
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r15d, r15d
mov qword [rdi + 0xa8], r15
cmp byte [rdi], r15b
je 0x14000827b
cmp byte [rdi + 0x3051], r15b
je 0x140007aee
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140007aee
mov rsi, qword [0x1400439d0]
mov qword [0x1400439d0], rdi
mov dword [rdi + 0x3054], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.1400146e0
mov rbp, rax
lea rdx, [0x140037928]
mov rcx, rbx
call fcn.1400035b0
mov rbx, rax
test rax, rax
je 0x140007ae7
mov r9, rax
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 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 [0x1400439d0], rsi
mov ebx, r15d
cmp dword [rdi + 0x3098], r15d
jle 0x140007b30
mov rsi, r15
nop dword [rax]
mov rcx, qword [rdi + 0x30a0]
cmp dword [rsi + rcx + 4], 6
jne 0x140007b22
mov rax, qword [rsi + rcx + 0x10]
movsxd rdx, ebx
shl rdx, 5
add rdx, rcx
mov rcx, rdi
call rax
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x3098]
jl 0x140007b00
mov esi, r15d
cmp dword [rdi + 0x1bd0], r15d
jle 0x140007b87
mov r14, r15
nop
mov rax, qword [rdi + 0x1bd8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140007b79
mov rcx, rbx
call fcn.140004cf0
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007b6a
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rdi + 0x1bd0]
jl 0x140007b40
mov rcx, qword [rdi + 0x1bd8]
test rcx, rcx
je 0x140007bbf
mov qword [rdi + 0x1bd0], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007bac
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1bd8], r15
mov rcx, qword [rdi + 0x1be8]
test rcx, rcx
je 0x140007bf7
mov qword [rdi + 0x1be0], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007be4
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1be8], r15
mov rcx, qword [rdi + 0x1bf8]
test rcx, rcx
je 0x140007c2f
mov qword [rdi + 0x1bf0], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007c1c
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1bf8], r15
mov qword [rdi + 0x1c30], r15
mov rcx, qword [rdi + 0x1c08]
test rcx, rcx
je 0x140007c6e
mov qword [rdi + 0x1c00], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007c5b
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1c08], r15
mov rcx, qword [rdi + 0x1c18]
test rcx, rcx
je 0x140007ca6
mov qword [rdi + 0x1c10], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007c93
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1c18], r15
mov qword [rdi + 0x1de8], r15
mov qword [rdi + 0x1c40], r15
mov qword [rdi + 0x1c38], r15
mov qword [rdi + 0x1cc0], r15
mov qword [rdi + 0x1ca8], r15
mov qword [rdi + 0x1c48], r15
mov rcx, qword [rdi + 0x1d60]
test rcx, rcx
je 0x140007d08
mov qword [rdi + 0x1d58], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007cf5
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1d60], r15
mov rcx, qword [rdi + 0x1d70]
test rcx, rcx
je 0x140007d40
mov qword [rdi + 0x1d68], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007d2d
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1d70], r15
mov rcx, qword [rdi + 0x1d80]
test rcx, rcx
je 0x140007d78
mov qword [rdi + 0x1d78], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007d65
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1d80], r15
mov rcx, qword [rdi + 0x1dc0]
test rcx, rcx
je 0x140007db0
mov qword [rdi + 0x1db8], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007d9d
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1dc0], r15
mov rcx, qword [rdi + 0x1dd0]
test rcx, rcx
je 0x140007de8
mov qword [rdi + 0x1dc8], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007dd5
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1dd0], r15
mov ebp, r15d
cmp dword [rdi + 0x1dd8], r15d
jle 0x140007ec6
mov r14, r15
nop dword [rax + rax]
mov rax, qword [rdi + 0x1de0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140007eb4
mov rsi, qword [rbx + 0x30]
test rsi, rsi
je 0x140007e46
mov rcx, rsi
call fcn.140001ec0
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007e37
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140007e79
mov rcx, rsi
call fcn.140001ec0
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007e69
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [rbx + 0x70]
lea r9, [0x1400150d0]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.1400355b0
nop
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007ea5
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x1dd8]
jl 0x140007e00
mov rcx, qword [rdi + 0x1de0]
test rcx, rcx
je 0x140007efe
mov qword [rdi + 0x1dd8], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007eeb
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1de0], r15
lea rcx, [rdi + 0x2080]
call fcn.140015220
mov rcx, qword [rdi + 0x20b0]
test rcx, rcx
je 0x140007f42
mov qword [rdi + 0x20a8], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007f2f
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20b0], r15
mov rcx, qword [rdi + 0x20c0]
test rcx, rcx
je 0x140007f7a
mov qword [rdi + 0x20b8], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007f67
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20c0], r15
lea rcx, [rdi + 0x2020]
call fcn.1400153c0
mov ebp, r15d
cmp dword [rdi + 0x2048], r15d
jle 0x140008017
mov rsi, r15
nop dword [rax]
mov rbx, qword [rdi + 0x2050]
mov rcx, qword [rsi + rbx + 0x40]
test rcx, rcx
je 0x140007fd0
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007fc3
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [rbx + 0x10]
add rcx, rsi
call fcn.140020f20
nop
mov rcx, qword [rbx + rsi + 0x20]
test rcx, rcx
je 0x140008006
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140007ff9
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc ebp
add rsi, 0x90
cmp ebp, dword [rdi + 0x2048]
jl 0x140007fa0
mov rcx, qword [rdi + 0x2050]
test rcx, rcx
je 0x14000804f
mov qword [rdi + 0x2048], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x14000803c
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2050], r15
mov rcx, qword [rdi + 0x2070]
test rcx, rcx
je 0x140008087
mov qword [rdi + 0x2068], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140008074
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2070], r15
mov rcx, qword [rdi + 0x3028]
test rcx, rcx
je 0x1400080bf
mov qword [rdi + 0x3020], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x1400080ac
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3028], r15
mov rcx, qword [rdi + 0x3038]
test rcx, rcx
je 0x1400080f7
mov qword [rdi + 0x3030], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x1400080e4
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3038], r15
mov rcx, qword [rdi + 0x20e8]
test rcx, rcx
je 0x14000812f
mov qword [rdi + 0x20e0], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x14000811c
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20e8], r15
mov rcx, qword [rdi + 0x20f8]
test rcx, rcx
je 0x140008167
mov qword [rdi + 0x20f0], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140008154
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20f8], r15
mov rcx, qword [rdi + 0x2108]
test rcx, rcx
je 0x14000819f
mov qword [rdi + 0x2100], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x14000818c
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2108], r15
mov rcx, qword [rdi + 0x3080]
test rcx, rcx
je 0x1400081d7
mov qword [rdi + 0x3078], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x1400081c4
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3080], r15
mov rcx, qword [rdi + 0x3070]
test rcx, rcx
je 0x14000820f
mov qword [rdi + 0x3068], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x1400081fc
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3070], r15
cmp qword [rdi + 0x30b8], 0
je 0x140008240
mov rbx, qword [rdi + 0x30b8]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140008239
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x30b8], r15
mov rcx, qword [rdi + 0x30c8]
test rcx, rcx
je 0x140008278
mov qword [rdi + 0x30c0], r15
mov rax, qword [0x1400439d0]
test rax, rax
je 0x140008265
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400439c0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x30c8], r15
mov byte [rdi], 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