Function at 0x140014880
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 0x14001496b
cmp byte [rcx + 1], 0
je 0x14001496b
mov byte [rax + 0x18], 0
mov rbx, qword [rcx + 0xa8]
test rbx, rbx
je 0x14001496b
mov rcx, rbx
call fcn.14003a6f0
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1400148fa
mov rax, qword [0x14012deb0]
test rax, rax
je 0x1400148ed
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140014922
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014915
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14001494a
mov rax, qword [0x14012deb0]
test rax, rax
je 0x14001493d
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x14012deb0]
test rax, rax
je 0x14001495c
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
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 0x1400151e1
cmp byte [rdi + 0x32a0], r15b
je 0x1400149ee
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400149ee
mov rsi, qword [0x14012deb0]
mov qword [0x14012deb0], rdi
mov dword [rdi + 0x32a4], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140023610
mov rbp, rax
lea rdx, [0x140112c78]
mov rcx, rbx
call fcn.14000f1c0
mov rbx, rax
test rax, rax
je 0x1400149f5
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]
jmp 0x1400149f5
mov rsi, qword [0x14012deb0]
mov qword [0x14012deb0], rdi
call fcn.140025c90
mov qword [0x14012deb0], rsi
mov esi, r15d
cmp dword [rdi + 0x3268], r15d
jle 0x140014a9d
mov rbp, r15
nop dword [rax + rax]
mov rax, qword [rdi + 0x3270]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x140014a8f
mov rcx, qword [rbx + 0x40]
call fcn.14002f250
mov qword [rbx + 0x40], r15
mov qword [rbx + 0x28], r15
mov qword [rbx + 0x20], r15
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140014a6e
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014a61
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014a80
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add rbp, 0x10
cmp esi, dword [rdi + 0x3268]
jl 0x140014a20
mov ebx, r15d
cmp dword [rdi + 0x32e8], r15d
jle 0x140014ae0
mov rsi, r15
nop dword [rax]
mov rcx, qword [rdi + 0x32f0]
cmp dword [rsi + rcx + 4], 6
jne 0x140014ad2
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 + 0x32e8]
jl 0x140014ab0
mov esi, r15d
cmp dword [rdi + 0x1cc8], r15d
jle 0x140014b37
mov r14, r15
nop
mov rax, qword [rdi + 0x1cd0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140014b29
mov rcx, rbx
call fcn.140011300
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014b1a
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rdi + 0x1cc8]
jl 0x140014af0
mov rcx, qword [rdi + 0x1cd0]
test rcx, rcx
je 0x140014b6f
mov qword [rdi + 0x1cc8], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014b5c
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1cd0], r15
mov rcx, qword [rdi + 0x1ce0]
test rcx, rcx
je 0x140014ba7
mov qword [rdi + 0x1cd8], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014b94
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1ce0], r15
mov rcx, qword [rdi + 0x1cf0]
test rcx, rcx
je 0x140014bdf
mov qword [rdi + 0x1ce8], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014bcc
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1cf0], r15
mov qword [rdi + 0x1d28], r15
mov rcx, qword [rdi + 0x1d00]
test rcx, rcx
je 0x140014c1e
mov qword [rdi + 0x1cf8], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014c0b
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1d00], r15
mov rcx, qword [rdi + 0x1d10]
test rcx, rcx
je 0x140014c56
mov qword [rdi + 0x1d08], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014c43
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1d10], r15
mov qword [rdi + 0x1f98], r15
mov qword [rdi + 0x1d38], r15
mov qword [rdi + 0x1d30], r15
mov qword [rdi + 0x1dc0], r15
mov qword [rdi + 0x1da8], r15
mov qword [rdi + 0x1d48], r15
mov rcx, qword [rdi + 0x1ec0]
test rcx, rcx
je 0x140014cb8
mov qword [rdi + 0x1eb8], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014ca5
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1ec0], r15
mov rcx, qword [rdi + 0x1ed0]
test rcx, rcx
je 0x140014cf0
mov qword [rdi + 0x1ec8], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014cdd
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1ed0], r15
mov rcx, qword [rdi + 0x1ee0]
test rcx, rcx
je 0x140014d28
mov qword [rdi + 0x1ed8], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014d15
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1ee0], r15
mov rcx, qword [rdi + 0x1f20]
test rcx, rcx
je 0x140014d60
mov qword [rdi + 0x1f18], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014d4d
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1f20], r15
mov rcx, qword [rdi + 0x1f30]
test rcx, rcx
je 0x140014d98
mov qword [rdi + 0x1f28], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014d85
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1f30], r15
mov qword [rdi + 0x1f60], r15
mov qword [rdi + 0x1f58], r15
mov qword [rdi + 0x1f50], r15
mov ebx, r15d
cmp dword [rdi + 0x1f38], r15d
jle 0x140014dde
mov rsi, r15
nop dword [rax]
mov rcx, qword [rdi + 0x1f40]
mov rcx, qword [rsi + rcx]
call fcn.14002f180
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x1f38]
jl 0x140014dc0
mov rcx, qword [rdi + 0x1f40]
test rcx, rcx
je 0x140014e16
mov qword [rdi + 0x1f38], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014e03
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1f40], r15
lea rcx, [rdi + 0x2258]
call fcn.14002e390
mov rcx, qword [rdi + 0x2288]
test rcx, rcx
je 0x140014e5a
mov qword [rdi + 0x2280], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014e47
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2288], r15
mov rcx, qword [rdi + 0x2298]
test rcx, rcx
je 0x140014e92
mov qword [rdi + 0x2290], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014e7f
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2298], r15
mov ebx, r15d
cmp dword [rdi + 0x21d8], r15d
jle 0x140014edf
mov rsi, r15
mov rax, qword [rdi + 0x21e0]
mov rcx, qword [rsi + rax + 0x18]
test rcx, rcx
je 0x140014ed1
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014ec4
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x21d8]
jl 0x140014ea1
mov rcx, qword [rdi + 0x21e0]
test rcx, rcx
je 0x140014f17
mov qword [rdi + 0x21d8], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014f04
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x21e0], r15
lea rcx, [rdi + 0x2208]
call fcn.14002e530
mov esi, r15d
cmp dword [rdi + 0x21f8], r15d
jle 0x140014f7d
mov rbp, r15
mov rbx, qword [rdi + 0x2200]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140039fc0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140014f6f
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014f62
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x21f8]
jl 0x140014f32
mov rcx, qword [rdi + 0x2200]
test rcx, rcx
je 0x140014fb5
mov qword [rdi + 0x21f8], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014fa2
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2200], r15
mov rcx, qword [rdi + 0x2248]
test rcx, rcx
je 0x140014fed
mov qword [rdi + 0x2240], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140014fda
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2248], r15
mov rcx, qword [rdi + 0x3230]
test rcx, rcx
je 0x140015025
mov qword [rdi + 0x3228], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140015012
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3230], r15
mov rcx, qword [rdi + 0x3240]
test rcx, rcx
je 0x14001505d
mov qword [rdi + 0x3238], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x14001504a
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3240], r15
mov rcx, qword [rdi + 0x22c0]
test rcx, rcx
je 0x140015095
mov qword [rdi + 0x22b8], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140015082
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x22c0], r15
mov rcx, qword [rdi + 0x22d0]
test rcx, rcx
je 0x1400150cd
mov qword [rdi + 0x22c8], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x1400150ba
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x22d0], r15
mov rcx, qword [rdi + 0x22e0]
test rcx, rcx
je 0x140015105
mov qword [rdi + 0x22d8], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x1400150f2
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x22e0], r15
mov rcx, qword [rdi + 0x32d0]
test rcx, rcx
je 0x14001513d
mov qword [rdi + 0x32c8], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x14001512a
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x32d0], r15
mov rcx, qword [rdi + 0x32c0]
test rcx, rcx
je 0x140015175
mov qword [rdi + 0x32b8], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x140015162
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x32c0], r15
cmp qword [rdi + 0x3308], 0
je 0x1400151a6
mov rbx, qword [rdi + 0x3308]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14001519f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x3308], r15
mov rcx, qword [rdi + 0x3318]
test rcx, rcx
je 0x1400151de
mov qword [rdi + 0x3310], r15
mov rax, qword [0x14012deb0]
test rax, rax
je 0x1400151cb
dec dword [rax + 0x3ac]
mov rdx, qword [0x14012dea0]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3318], 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