Function at 0x14000e770
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 rbx, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x14000e85a
cmp byte [rcx + 1], 0
je 0x14000e85a
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x14000e85a
mov rcx, rdi
call fcn.140027c10
nop
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x14000e7e9
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000e7dc
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rdi + 0x58]
test rcx, rcx
je 0x14000e811
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000e804
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14000e839
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000e82c
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000e84b
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r15d, r15d
mov qword [rbx + 0xa8], r15
cmp byte [rbx], r15b
je 0x14000efdc
cmp byte [rbx + 0x2f01], r15b
je 0x14000e8e2
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14000e8e2
mov rsi, qword [0x140082e70]
mov qword [0x140082e70], rbx
mov dword [rbx + 0x2f04], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.14001bab0
mov rbp, rax
lea rdx, [0x14004ff90]
mov rcx, rdi
call fcn.140009650
mov rdi, rax
test rax, rax
je 0x14000e8db
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, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x140082e70], rsi
mov edi, r15d
cmp dword [rbx + 0x2f48], r15d
jle 0x14000e921
mov rsi, r15
mov rcx, qword [rbx + 0x2f50]
cmp dword [rsi + rcx + 4], 6
jne 0x14000e913
mov rax, qword [rsi + rcx + 0x10]
movsxd rdx, edi
shl rdx, 5
add rdx, rcx
mov rcx, rbx
call rax
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x2f48]
jl 0x14000e8f1
mov esi, r15d
cmp dword [rbx + 0x1a88], r15d
jle 0x14000e977
mov r14, r15
mov rax, qword [rbx + 0x1a90]
mov rdi, qword [r14 + rax]
test rdi, rdi
je 0x14000e969
mov rcx, rdi
call fcn.14000ba30
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000e95a
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rbx + 0x1a88]
jl 0x14000e930
mov rcx, qword [rbx + 0x1a90]
test rcx, rcx
je 0x14000e9af
mov qword [rbx + 0x1a88], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000e99c
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1a90], r15
mov rcx, qword [rbx + 0x1aa0]
test rcx, rcx
je 0x14000e9e7
mov qword [rbx + 0x1a98], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000e9d4
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1aa0], r15
mov rcx, qword [rbx + 0x1ab0]
test rcx, rcx
je 0x14000ea1f
mov qword [rbx + 0x1aa8], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ea0c
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ab0], r15
mov qword [rbx + 0x1ae0], r15
mov rcx, qword [rbx + 0x1ac0]
test rcx, rcx
je 0x14000ea5e
mov qword [rbx + 0x1ab8], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ea4b
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ac0], r15
mov rcx, qword [rbx + 0x1ad0]
test rcx, rcx
je 0x14000ea96
mov qword [rbx + 0x1ac8], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ea83
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ad0], r15
mov qword [rbx + 0x1ca0], r15
mov qword [rbx + 0x1af8], r15
mov qword [rbx + 0x1af0], r15
mov qword [rbx + 0x1ae8], r15
mov qword [rbx + 0x1b78], r15
mov qword [rbx + 0x1b60], r15
mov qword [rbx + 0x1b00], r15
mov rcx, qword [rbx + 0x1c18]
test rcx, rcx
je 0x14000eaff
mov qword [rbx + 0x1c10], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000eaec
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1c18], r15
mov rcx, qword [rbx + 0x1c28]
test rcx, rcx
je 0x14000eb37
mov qword [rbx + 0x1c20], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000eb24
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1c28], r15
mov rcx, qword [rbx + 0x1c38]
test rcx, rcx
je 0x14000eb6f
mov qword [rbx + 0x1c30], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000eb5c
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1c38], r15
mov rcx, qword [rbx + 0x1c78]
test rcx, rcx
je 0x14000eba7
mov qword [rbx + 0x1c70], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000eb94
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1c78], r15
mov rcx, qword [rbx + 0x1c88]
test rcx, rcx
je 0x14000ebdf
mov qword [rbx + 0x1c80], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ebcc
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1c88], r15
mov ebp, r15d
cmp dword [rbx + 0x1c90], r15d
jle 0x14000ecb8
mov r14, r15
mov rax, qword [rbx + 0x1c98]
mov rdi, qword [r14 + rax]
test rdi, rdi
je 0x14000eca6
mov rsi, qword [rdi + 0x30]
test rsi, rsi
je 0x14000ec38
mov rcx, rsi
call fcn.140007f80
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ec29
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rdi + 0x38]
test rsi, rsi
je 0x14000ec6b
mov rcx, rsi
call fcn.140007f80
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ec5b
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [rdi + 0x70]
lea r9, [0x14001c430]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.14004bf44
nop
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ec97
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x1c90]
jl 0x14000ebf2
mov rcx, qword [rbx + 0x1c98]
test rcx, rcx
je 0x14000ecf0
mov qword [rbx + 0x1c90], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ecdd
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1c98], r15
lea rcx, [rbx + 0x1f30]
call fcn.14001c590
mov rcx, qword [rbx + 0x1f60]
test rcx, rcx
je 0x14000ed34
mov qword [rbx + 0x1f58], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ed21
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1f60], r15
mov rcx, qword [rbx + 0x1f70]
test rcx, rcx
je 0x14000ed6c
mov qword [rbx + 0x1f68], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ed59
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1f70], r15
lea rcx, [rbx + 0x1ed0]
call fcn.14001c730
mov rcx, qword [rbx + 0x1f00]
test rcx, rcx
je 0x14000edb0
mov qword [rbx + 0x1ef8], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ed9d
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1f00], r15
mov rcx, qword [rbx + 0x1f20]
test rcx, rcx
je 0x14000ede8
mov qword [rbx + 0x1f18], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000edd5
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1f20], r15
mov rcx, qword [rbx + 0x2ed8]
test rcx, rcx
je 0x14000ee20
mov qword [rbx + 0x2ed0], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ee0d
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2ed8], r15
mov rcx, qword [rbx + 0x2ee8]
test rcx, rcx
je 0x14000ee58
mov qword [rbx + 0x2ee0], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ee45
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2ee8], r15
mov rcx, qword [rbx + 0x1f98]
test rcx, rcx
je 0x14000ee90
mov qword [rbx + 0x1f90], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ee7d
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1f98], r15
mov rcx, qword [rbx + 0x1fa8]
test rcx, rcx
je 0x14000eec8
mov qword [rbx + 0x1fa0], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000eeb5
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1fa8], r15
mov rcx, qword [rbx + 0x1fb8]
test rcx, rcx
je 0x14000ef00
mov qword [rbx + 0x1fb0], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000eeed
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1fb8], r15
mov rcx, qword [rbx + 0x2f30]
test rcx, rcx
je 0x14000ef38
mov qword [rbx + 0x2f28], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ef25
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2f30], r15
mov rcx, qword [rbx + 0x2f20]
test rcx, rcx
je 0x14000ef70
mov qword [rbx + 0x2f18], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000ef5d
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2f20], r15
cmp qword [rbx + 0x2f68], 0
je 0x14000efa1
mov rdi, qword [rbx + 0x2f68]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x14000ef9a
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x2f68], r15
mov rcx, qword [rbx + 0x2f78]
test rcx, rcx
je 0x14000efd9
mov qword [rbx + 0x2f70], r15
mov rax, qword [0x140082e70]
test rax, rax
je 0x14000efc6
dec dword [rax + 0x3b4]
mov rdx, qword [0x140082e60]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2f78], r15
mov byte [rbx], 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