Function at 0x14000c540
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, qword [0x14015a728]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x14000c612
cmp byte [rdi + 1], 0
je 0x14000c612
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x14000c612
mov rcx, rbx
call fcn.140028eb0
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14000c5b3
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c5ac
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14000c5d5
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c5ce
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14000c5f7
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c5f0
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c609
dec dword [rax + 0xf0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0x38], r12
mov rcx, qword [rdi + 0x3c58]
test rcx, rcx
je 0x14000c64b
mov qword [rdi + 0x3c50], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c63e
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c58], r12
cmp byte [rdi], r12b
je 0x14000cf01
cmp byte [rdi + 0x5ce8], r12b
je 0x14000c6bc
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14000c6bc
mov rax, qword [0x14015a728]
mov dword [rax + 0x5cec], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.140020280
mov rsi, rax
lea rdx, [0x1400e55ac]
mov rcx, rbx
call fcn.140009d70
mov rbx, rax
test rax, rax
je 0x14000c6bc
mov r9, rax
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, rsi
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 rbx, qword [rdi + 0x5d38]
movsxd rsi, dword [rdi + 0x5d30]
shl rsi, 5
add rsi, rbx
cmp rbx, rsi
je 0x14000c6f1
cmp dword [rbx + 4], 6
jne 0x14000c6e8
mov rax, qword [rbx + 0x10]
mov rdx, rbx
mov rcx, rdi
call rax
add rbx, 0x20
cmp rbx, rsi
jne 0x14000c6d6
mov esi, r12d
cmp dword [rdi + 0x3e90], r12d
jle 0x14000c741
mov r14, r12
mov rax, qword [rdi + 0x3e98]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000c733
mov rcx, rbx
call fcn.14000d420
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c72a
dec dword [rax + 0xf0]
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 + 0x3e90]
jl 0x14000c700
mov rcx, qword [rdi + 0x3e98]
test rcx, rcx
je 0x14000c773
mov qword [rdi + 0x3e90], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c766
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e98], r12
mov rcx, qword [rdi + 0x3ea8]
test rcx, rcx
je 0x14000c7a5
mov qword [rdi + 0x3ea0], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c798
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ea8], r12
mov rcx, qword [rdi + 0x3eb8]
test rcx, rcx
je 0x14000c7d7
mov qword [rdi + 0x3eb0], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c7ca
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3eb8], r12
mov qword [rdi + 0x3ef0], r12
mov rcx, qword [rdi + 0x3ec8]
test rcx, rcx
je 0x14000c810
mov qword [rdi + 0x3ec0], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c803
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ec8], r12
mov rcx, qword [rdi + 0x3ed8]
test rcx, rcx
je 0x14000c842
mov qword [rdi + 0x3ed0], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c835
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ed8], r12
mov qword [rdi + 0x48f0], r12
mov qword [rdi + 0x3f00], r12
mov qword [rdi + 0x3ef8], r12
mov qword [rdi + 0x3f88], r12
mov qword [rdi + 0x3f70], r12
mov qword [rdi + 0x3f08], r12
lea rcx, [rdi + 0x4628]
call fcn.140007c60
mov rcx, qword [rdi + 0x4850]
test rcx, rcx
je 0x14000c8aa
mov qword [rdi + 0x4848], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c89d
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4850], r12
mov rcx, qword [rdi + 0x4860]
test rcx, rcx
je 0x14000c8dc
mov qword [rdi + 0x4858], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c8cf
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4860], r12
mov rcx, qword [rdi + 0x4870]
test rcx, rcx
je 0x14000c90e
mov qword [rdi + 0x4868], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c901
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4870], r12
mov rcx, qword [rdi + 0x48b0]
test rcx, rcx
je 0x14000c940
mov qword [rdi + 0x48a8], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c933
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48b0], r12
mov rcx, qword [rdi + 0x48c0]
test rcx, rcx
je 0x14000c972
mov qword [rdi + 0x48b8], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c965
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48c0], r12
mov rcx, qword [rdi + 0x48d0]
test rcx, rcx
je 0x14000c9a4
mov qword [rdi + 0x48c8], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c997
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48d0], r12
mov ebp, r12d
cmp dword [rdi + 0x48e0], r12d
jle 0x14000caa1
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x48e8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000ca8f
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14000ca00
mov rcx, rsi
call fcn.140007a60
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000c9f7
dec dword [rax + 0xf0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x14000ca2d
mov rcx, rsi
call fcn.140007a60
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000ca23
dec dword [rax + 0xf0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x14000ca52
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000ca4b
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14000ca74
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000ca6d
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000ca86
dec dword [rax + 0xf0]
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 + 0x48e0]
jl 0x14000c9c0
mov rcx, qword [rdi + 0x48e8]
test rcx, rcx
je 0x14000cad3
mov qword [rdi + 0x48e0], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000cac6
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48e8], r12
lea rcx, [rdi + 0x4c30]
call fcn.1400213f0
mov rcx, qword [rdi + 0x4c60]
test rcx, rcx
je 0x14000cb11
mov qword [rdi + 0x4c58], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000cb04
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c60], r12
mov rcx, qword [rdi + 0x4c70]
test rcx, rcx
je 0x14000cb43
mov qword [rdi + 0x4c68], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000cb36
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c70], r12
mov ebx, r12d
cmp dword [rdi + 0x4bb0], r12d
jle 0x14000cb98
mov rsi, r12
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x4bb8]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14000cb8a
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000cb83
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4bb0]
jl 0x14000cb60
mov rcx, qword [rdi + 0x4bb8]
test rcx, rcx
je 0x14000cbca
mov qword [rdi + 0x4bb0], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000cbbd
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bb8], r12
lea rcx, [rdi + 0x4be0]
call fcn.140021570
mov esi, r12d
cmp dword [rdi + 0x4bd0], r12d
jle 0x14000cc35
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4bd8]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400283f0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14000cc27
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000cc20
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4bd0]
jl 0x14000cbf0
mov rcx, qword [rdi + 0x4bd8]
test rcx, rcx
je 0x14000cc67
mov qword [rdi + 0x4bd0], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000cc5a
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bd8], r12
mov rcx, qword [rdi + 0x4c20]
test rcx, rcx
je 0x14000cc99
mov qword [rdi + 0x4c18], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000cc8c
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c20], r12
mov rcx, qword [rdi + 0x5c48]
test rcx, rcx
je 0x14000cccb
mov qword [rdi + 0x5c40], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000ccbe
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c48], r12
mov rcx, qword [rdi + 0x5c58]
test rcx, rcx
je 0x14000ccfd
mov qword [rdi + 0x5c50], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000ccf0
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c58], r12
mov rcx, qword [rdi + 0x4cc0]
test rcx, rcx
je 0x14000cd2f
mov qword [rdi + 0x4cb8], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000cd22
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4cc0], r12
mov rcx, qword [rdi + 0x4cd0]
test rcx, rcx
je 0x14000cd61
mov qword [rdi + 0x4cc8], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000cd54
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4cd0], r12
mov rcx, qword [rdi + 0x4ce0]
test rcx, rcx
je 0x14000cd93
mov qword [rdi + 0x4cd8], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000cd86
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4ce0], r12
mov dword [rdi + 0x5b30], r12d
mov rcx, qword [rdi + 0x5b40]
test rcx, rcx
je 0x14000cdcc
mov qword [rdi + 0x5b38], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000cdbf
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b40], r12
mov rcx, qword [rdi + 0x5d18]
test rcx, rcx
je 0x14000cdfe
mov qword [rdi + 0x5d10], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000cdf1
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d18], r12
mov rcx, qword [rdi + 0x5d08]
test rcx, rcx
je 0x14000ce30
mov qword [rdi + 0x5d00], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000ce23
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d08], r12
cmp qword [rdi + 0x5d90], 0
je 0x14000ce61
mov rbx, qword [rdi + 0x5d90]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000ce5a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5d90], r12
mov rcx, qword [rdi + 0x5da0]
test rcx, rcx
je 0x14000ce93
mov qword [rdi + 0x5d98], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000ce86
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5da0], r12
mov rcx, qword [rdi + 0x5dd8]
test rcx, rcx
je 0x14000cec5
mov qword [rdi + 0x5dd0], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000ceb8
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5dd8], r12
mov rcx, qword [rdi + 0x5de8]
test rcx, rcx
je 0x14000cef7
mov qword [rdi + 0x5de0], r12
mov rax, qword [0x14015a728]
test rax, rax
je 0x14000ceea
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5de8], r12
mov dword [rdi + 0x5df0], r12d
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