Function at 0x140007c40
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 0x140007ca0
cmp byte [rcx + 1], 0
je 0x140007ca0
mov byte [rax + 0x18], 0
mov rbx, qword [rcx + 0xa8]
test rbx, rbx
je 0x140007ca0
mov rcx, rbx
call fcn.140022f80
mov rax, qword [0x140060c10]
test rax, rax
je 0x140007c97
dec dword [rax + 0x3b4]
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 0x140008404
cmp byte [rdi + 0x3031], r15b
je 0x140007d28
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140007d28
mov rsi, qword [0x140060c10]
mov qword [0x140060c10], rdi
mov dword [rdi + 0x3034], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.1400155b0
mov rbp, rax
lea rdx, [0x140052960]
mov rcx, rbx
call fcn.140002910
mov rbx, rax
test rax, rax
je 0x140007d21
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 [0x140060c10], rsi
mov ebx, r15d
cmp dword [rdi + 0x3078], r15d
jle 0x140007d70
mov rsi, r15
nop word [rax + rax]
mov rcx, qword [rdi + 0x3080]
cmp dword [rsi + rcx + 4], 6
jne 0x140007d62
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 + 0x3078]
jl 0x140007d40
mov esi, r15d
cmp dword [rdi + 0x1bb0], r15d
jle 0x140007dc1
mov r14, r15
nop
mov rax, qword [rdi + 0x1bb8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140007db3
mov rcx, rbx
call fcn.140004d50
mov rax, qword [0x140060c10]
test rax, rax
je 0x140007daa
dec dword [rax + 0x3b4]
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 + 0x1bb0]
jl 0x140007d80
mov rcx, qword [rdi + 0x1bb8]
test rcx, rcx
je 0x140007df3
mov qword [rdi + 0x1bb0], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140007de6
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1bb8], r15
mov rcx, qword [rdi + 0x1bc8]
test rcx, rcx
je 0x140007e25
mov qword [rdi + 0x1bc0], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140007e18
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1bc8], r15
mov rcx, qword [rdi + 0x1bd8]
test rcx, rcx
je 0x140007e57
mov qword [rdi + 0x1bd0], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140007e4a
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1bd8], r15
mov qword [rdi + 0x1c10], r15
mov rcx, qword [rdi + 0x1be8]
test rcx, rcx
je 0x140007e90
mov qword [rdi + 0x1be0], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140007e83
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1be8], r15
mov rcx, qword [rdi + 0x1bf8]
test rcx, rcx
je 0x140007ec2
mov qword [rdi + 0x1bf0], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140007eb5
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1bf8], r15
mov qword [rdi + 0x1dc8], r15
mov qword [rdi + 0x1c20], r15
mov qword [rdi + 0x1c18], r15
mov qword [rdi + 0x1ca0], r15
mov qword [rdi + 0x1c88], r15
mov qword [rdi + 0x1c28], r15
mov rcx, qword [rdi + 0x1d40]
test rcx, rcx
je 0x140007f1e
mov qword [rdi + 0x1d38], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140007f11
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d40], r15
mov rcx, qword [rdi + 0x1d50]
test rcx, rcx
je 0x140007f50
mov qword [rdi + 0x1d48], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140007f43
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d50], r15
mov rcx, qword [rdi + 0x1d60]
test rcx, rcx
je 0x140007f82
mov qword [rdi + 0x1d58], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140007f75
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d60], r15
mov rcx, qword [rdi + 0x1da0]
test rcx, rcx
je 0x140007fb4
mov qword [rdi + 0x1d98], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140007fa7
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1da0], r15
mov rcx, qword [rdi + 0x1db0]
test rcx, rcx
je 0x140007fe6
mov qword [rdi + 0x1da8], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140007fd9
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1db0], r15
mov ebp, r15d
cmp dword [rdi + 0x1db8], r15d
jle 0x1400080b4
mov r14, r15
nop dword [rax]
mov rax, qword [rdi + 0x1dc0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400080a2
mov rsi, qword [rbx + 0x30]
test rsi, rsi
je 0x140008040
mov rcx, rsi
call fcn.140001090
mov rax, qword [0x140060c10]
test rax, rax
je 0x140008037
dec dword [rax + 0x3b4]
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 0x14000806d
mov rcx, rsi
call fcn.140001090
mov rax, qword [0x140060c10]
test rax, rax
je 0x140008063
dec dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x70]
lea r9, [0x140015f90]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.14004f5b0
nop
mov rax, qword [0x140060c10]
test rax, rax
je 0x140008099
dec dword [rax + 0x3b4]
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 + 0x1db8]
jl 0x140008000
mov rcx, qword [rdi + 0x1dc0]
test rcx, rcx
je 0x1400080e6
mov qword [rdi + 0x1db8], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x1400080d9
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1dc0], r15
lea rcx, [rdi + 0x2060]
call fcn.1400160c0
mov rcx, qword [rdi + 0x2090]
test rcx, rcx
je 0x140008124
mov qword [rdi + 0x2088], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140008117
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2090], r15
mov rcx, qword [rdi + 0x20a0]
test rcx, rcx
je 0x140008156
mov qword [rdi + 0x2098], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140008149
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x20a0], r15
lea rcx, [rdi + 0x2000]
call fcn.140016240
mov ebp, r15d
cmp dword [rdi + 0x2028], r15d
jle 0x1400081dc
mov rsi, r15
mov rbx, qword [rdi + 0x2030]
mov rcx, qword [rsi + rbx + 0x40]
test rcx, rcx
je 0x14000819b
mov rax, qword [0x140060c10]
test rax, rax
je 0x140008194
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x10]
add rcx, rsi
call fcn.140022440
nop
mov rcx, qword [rbx + rsi + 0x20]
test rcx, rcx
je 0x1400081cb
mov rax, qword [0x140060c10]
test rax, rax
je 0x1400081c4
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebp
add rsi, 0x90
cmp ebp, dword [rdi + 0x2028]
jl 0x140008171
mov rcx, qword [rdi + 0x2030]
test rcx, rcx
je 0x14000820e
mov qword [rdi + 0x2028], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140008201
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2030], r15
mov rcx, qword [rdi + 0x2050]
test rcx, rcx
je 0x140008240
mov qword [rdi + 0x2048], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140008233
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2050], r15
mov rcx, qword [rdi + 0x3008]
test rcx, rcx
je 0x140008272
mov qword [rdi + 0x3000], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140008265
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3008], r15
mov rcx, qword [rdi + 0x3018]
test rcx, rcx
je 0x1400082a4
mov qword [rdi + 0x3010], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140008297
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3018], r15
mov rcx, qword [rdi + 0x20c8]
test rcx, rcx
je 0x1400082d6
mov qword [rdi + 0x20c0], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x1400082c9
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x20c8], r15
mov rcx, qword [rdi + 0x20d8]
test rcx, rcx
je 0x140008308
mov qword [rdi + 0x20d0], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x1400082fb
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x20d8], r15
mov rcx, qword [rdi + 0x20e8]
test rcx, rcx
je 0x14000833a
mov qword [rdi + 0x20e0], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x14000832d
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x20e8], r15
mov rcx, qword [rdi + 0x3060]
test rcx, rcx
je 0x14000836c
mov qword [rdi + 0x3058], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x14000835f
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3060], r15
mov rcx, qword [rdi + 0x3050]
test rcx, rcx
je 0x14000839e
mov qword [rdi + 0x3048], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x140008391
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3050], r15
cmp qword [rdi + 0x3098], 0
je 0x1400083cf
mov rbx, qword [rdi + 0x3098]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400083c8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x3098], r15
mov rcx, qword [rdi + 0x30a8]
test rcx, rcx
je 0x140008401
mov qword [rdi + 0x30a0], r15
mov rax, qword [0x140060c10]
test rax, rax
je 0x1400083f4
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x30a8], 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