Function at 0x1400158f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x140015955
cmp byte [rcx + 1], 0
je 0x140015955
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x140015955
mov rcx, rdi
call fcn.14002dd10
mov rax, qword [0x140073048]
test rax, rax
je 0x14001594c
dec dword [rax + 0x3bc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rbx + 0xa8], r12
cmp byte [rbx], r12b
je 0x140016083
cmp byte [rbx + 0x2f60], r12b
je 0x140015a6d
mov r15, qword [rbx + 0x20]
test r15, r15
je 0x140015a6d
mov rdi, qword [0x140073048]
mov qword [0x140073048], rbx
mov dword [rbx + 0x2f64], r12d
lea rsi, [rbx + 0x2f68]
mov ecx, dword [rsi + 4]
test ecx, ecx
jns 0x1400159be
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov edx, r12d
test eax, eax
cmovg edx, eax
mov rcx, rsi
call fcn.140022f10
mov dword [rsi], r12d
cmp dword [rsi + 4], r12d
jne 0x1400159d4
mov edx, 8
mov rcx, rsi
call fcn.140022f10
movsxd rcx, dword [rsi]
mov rax, qword [rsi + 8]
mov byte [rcx + rax], r12b
inc dword [rsi]
mov ebp, r12d
cmp dword [rbx + 0x2f78], r12d
jle 0x140015a14
mov r14, r12
mov rdx, qword [rbx + 0x2f80]
add rdx, r14
mov rax, qword [rdx + 0x20]
mov r8, rsi
mov rcx, rbx
call rax
inc ebp
add r14, 0x30
cmp ebp, dword [rbx + 0x2f78]
jl 0x1400159f0
mov eax, dword [rsi]
lea edx, [rax - 1]
test eax, eax
cmove edx, r12d
movsxd r14, edx
mov rax, qword [rbx + 0x2f70]
lea rbp, [0x140073025]
test rax, rax
cmovne rbp, rax
mov rcx, r15
call fcn.1400117d0
mov rsi, rax
test rax, rax
je 0x140015a64
mov r9, rax
mov r8, r14
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x140073048], rdi
jmp 0x140015a74
mov rdi, qword [0x140073048]
mov ebp, r12d
cmp dword [rbx + 0x1a10], r12d
jle 0x140015baa
mov r14, r12
nop word [rax + rax]
mov rax, qword [rbx + 0x1a18]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x140015b98
mov rcx, qword [rsi]
test rcx, rcx
je 0x140015abd
test rdi, rdi
je 0x140015ab7
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, r12d
cmp dword [rsi + 0x298], r12d
je 0x140015aed
nop dword [rax]
movsxd rax, edi
imul rcx, rax, 0x78
add rcx, qword [rsi + 0x2a0]
call fcn.1400133d0
inc edi
cmp edi, dword [rsi + 0x298]
jne 0x140015ad0
lea rcx, [rsi + 0x2b8]
call fcn.1400101a0
nop
mov rcx, qword [rsi + 0x2a0]
test rcx, rcx
je 0x140015b1f
mov rax, qword [0x140073048]
test rax, rax
je 0x140015b18
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rsi + 0x290]
test rcx, rcx
je 0x140015b44
mov rax, qword [0x140073048]
test rax, rax
je 0x140015b3d
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rsi + 0xd0]
call fcn.140013300
nop
mov rcx, qword [rsi + 0xc8]
test rcx, rcx
je 0x140015b76
mov rax, qword [0x140073048]
test rax, rax
je 0x140015b6f
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x140073048]
test rax, rax
je 0x140015b88
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [0x140073048]
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x1a10]
jl 0x140015a90
mov rcx, qword [rbx + 0x1a18]
test rcx, rcx
je 0x140015bdc
mov qword [rbx + 0x1a10], r12
test rdi, rdi
je 0x140015bc8
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a18], r12
mov rdi, qword [0x140073048]
mov rcx, qword [rbx + 0x1a28]
test rcx, rcx
je 0x140015c0e
mov qword [rbx + 0x1a20], r12
test rdi, rdi
je 0x140015bfa
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a28], r12
mov rdi, qword [0x140073048]
mov rcx, qword [rbx + 0x1a38]
test rcx, rcx
je 0x140015c40
mov qword [rbx + 0x1a30], r12
test rdi, rdi
je 0x140015c2c
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a38], r12
mov rdi, qword [0x140073048]
mov qword [rbx + 0x1a68], r12
mov rcx, qword [rbx + 0x1a48]
test rcx, rcx
je 0x140015c79
mov qword [rbx + 0x1a40], r12
test rdi, rdi
je 0x140015c65
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a48], r12
mov rdi, qword [0x140073048]
mov rcx, qword [rbx + 0x1a58]
test rcx, rcx
je 0x140015cab
mov qword [rbx + 0x1a50], r12
test rdi, rdi
je 0x140015c97
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1a58], r12
mov rdi, qword [0x140073048]
mov qword [rbx + 0x1bd8], r12
mov qword [rbx + 0x1a78], r12
mov qword [rbx + 0x1a70], r12
mov qword [rbx + 0x1af8], r12
mov qword [rbx + 0x1ae0], r12
mov qword [rbx + 0x1a80], r12
mov rcx, qword [rbx + 0x1b90]
test rcx, rcx
je 0x140015d07
mov qword [rbx + 0x1b88], r12
test rdi, rdi
je 0x140015cf3
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1b90], r12
mov rdi, qword [0x140073048]
mov rcx, qword [rbx + 0x1ba0]
test rcx, rcx
je 0x140015d39
mov qword [rbx + 0x1b98], r12
test rdi, rdi
je 0x140015d25
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ba0], r12
mov rdi, qword [0x140073048]
mov rcx, qword [rbx + 0x1bb0]
test rcx, rcx
je 0x140015d6b
mov qword [rbx + 0x1ba8], r12
test rdi, rdi
je 0x140015d57
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1bb0], r12
mov rdi, qword [0x140073048]
mov rcx, qword [rbx + 0x1bc0]
test rcx, rcx
je 0x140015d9d
mov qword [rbx + 0x1bb8], r12
test rdi, rdi
je 0x140015d89
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1bc0], r12
mov rdi, qword [0x140073048]
mov rcx, qword [rbx + 0x1bd0]
test rcx, rcx
je 0x140015dd0
mov qword [rbx + 0x1bc8], r12
test rdi, rdi
je 0x140015dbb
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1bd0], r12
mov rdi, qword [0x140073048]
nop
mov rcx, qword [rbx + 0x1d80]
test rcx, rcx
je 0x140015e02
mov qword [rbx + 0x1d78], r12
test rdi, rdi
je 0x140015dee
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d80], r12
mov rdi, qword [0x140073048]
cmp qword [rbx + 0x1d90], 0
je 0x140015e37
mov qword [rbx + 0x1d88], r12
mov rcx, qword [rbx + 0x1d90]
test rcx, rcx
je 0x140015e2a
test rdi, rdi
je 0x140015e2a
dec dword [rdi + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d90], r12
lea rcx, [rbx + 0x1da0]
call fcn.14002ad50
lea rcx, [rbx + 0x1e48]
call fcn.14002ad50
lea rcx, [rbx + 0x1f98]
call fcn.140022710
mov rcx, qword [rbx + 0x1fc8]
test rcx, rcx
je 0x140015e8d
mov qword [rbx + 0x1fc0], r12
mov rax, qword [0x140073048]
test rax, rax
je 0x140015e80
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1fc8], r12
mov rcx, qword [rbx + 0x1fd8]
test rcx, rcx
je 0x140015ebf
mov qword [rbx + 0x1fd0], r12
mov rax, qword [0x140073048]
test rax, rax
je 0x140015eb2
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1fd8], r12
mov rcx, qword [rbx + 0x2f38]
test rcx, rcx
je 0x140015ef1
mov qword [rbx + 0x2f30], r12
mov rax, qword [0x140073048]
test rax, rax
je 0x140015ee4
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2f38], r12
mov rcx, qword [rbx + 0x2f48]
test rcx, rcx
je 0x140015f23
mov qword [rbx + 0x2f40], r12
mov rax, qword [0x140073048]
test rax, rax
je 0x140015f16
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2f48], r12
mov rcx, qword [rbx + 0x2000]
test rcx, rcx
je 0x140015f55
mov qword [rbx + 0x1ff8], r12
mov rax, qword [0x140073048]
test rax, rax
je 0x140015f48
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2000], r12
mov rcx, qword [rbx + 0x2010]
test rcx, rcx
je 0x140015f87
mov qword [rbx + 0x2008], r12
mov rax, qword [0x140073048]
test rax, rax
je 0x140015f7a
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2010], r12
mov rcx, qword [rbx + 0x2020]
test rcx, rcx
je 0x140015fb9
mov qword [rbx + 0x2018], r12
mov rax, qword [0x140073048]
test rax, rax
je 0x140015fac
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2020], r12
mov rcx, qword [rbx + 0x2f90]
test rcx, rcx
je 0x140015feb
mov qword [rbx + 0x2f88], r12
mov rax, qword [0x140073048]
test rax, rax
je 0x140015fde
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2f90], r12
mov rcx, qword [rbx + 0x2f80]
test rcx, rcx
je 0x14001601d
mov qword [rbx + 0x2f78], r12
mov rax, qword [0x140073048]
test rax, rax
je 0x140016010
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2f80], r12
cmp qword [rbx + 0x2fa0], 0
je 0x14001604e
mov rdi, qword [rbx + 0x2fa0]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x140016047
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x2fa0], r12
mov rcx, qword [rbx + 0x2fb0]
test rcx, rcx
je 0x140016080
mov qword [rbx + 0x2fa8], r12
mov rax, qword [0x140073048]
test rax, rax
je 0x140016073
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2fb0], r12
mov byte [rbx], 0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret