Function at 0x140005650
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, qword [0x140078130]
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x14000573c
cmp byte [rdi + 1], 0
je 0x14000573c
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x14000573c
mov rcx, rbx
call fcn.1400273e0
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400056cb
mov rax, qword [0x140078130]
test rax, rax
je 0x1400056be
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1400056f3
mov rax, qword [0x140078130]
test rax, rax
je 0x1400056e6
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14000571b
mov rax, qword [0x140078130]
test rax, rax
je 0x14000570e
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x140078130]
test rax, rax
je 0x14000572d
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r15d, r15d
mov qword [rdi + 0x58], r15
mov rcx, qword [rdi + 0x3c48]
test rcx, rcx
je 0x14000577b
mov qword [rdi + 0x3c40], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005768
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3c48], r15
cmp byte [rdi], r15b
je 0x140006096
cmp byte [rdi + 0x5be1], r15b
je 0x1400057ec
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400057ec
mov rax, qword [0x140078130]
mov dword [rax + 0x5be4], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140019930
mov rsi, rax
lea rdx, [0x140061714]
mov rcx, rbx
call fcn.140003210
mov rbx, rax
test rax, rax
je 0x1400057ec
mov r9, rax
mov r8, qword [rsp + 0x40]
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 ebx, r15d
cmp dword [rdi + 0x5c28], r15d
jle 0x140005830
mov rsi, r15
nop dword [rax + rax]
mov rcx, qword [rdi + 0x5c30]
cmp dword [rsi + rcx + 4], 6
jne 0x140005822
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 + 0x5c28]
jl 0x140005800
mov esi, r15d
cmp dword [rdi + 0x3e70], r15d
jle 0x140005887
mov r14, r15
nop
mov rax, qword [rdi + 0x3e78]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140005879
mov rcx, rbx
call fcn.1400065e0
mov rax, qword [0x140078130]
test rax, rax
je 0x14000586a
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3e70]
jl 0x140005840
mov rcx, qword [rdi + 0x3e78]
test rcx, rcx
je 0x1400058bf
mov qword [rdi + 0x3e70], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x1400058ac
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e78], r15
mov rcx, qword [rdi + 0x3e88]
test rcx, rcx
je 0x1400058f7
mov qword [rdi + 0x3e80], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x1400058e4
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e88], r15
mov rcx, qword [rdi + 0x3e98]
test rcx, rcx
je 0x14000592f
mov qword [rdi + 0x3e90], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x14000591c
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e98], r15
mov qword [rdi + 0x3ed0], r15
mov rcx, qword [rdi + 0x3ea8]
test rcx, rcx
je 0x14000596e
mov qword [rdi + 0x3ea0], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x14000595b
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3ea8], r15
mov rcx, qword [rdi + 0x3eb8]
test rcx, rcx
je 0x1400059a6
mov qword [rdi + 0x3eb0], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005993
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3eb8], r15
mov qword [rdi + 0x48b0], r15
mov qword [rdi + 0x3ee0], r15
mov qword [rdi + 0x3ed8], r15
mov qword [rdi + 0x3f68], r15
mov qword [rdi + 0x3f50], r15
mov qword [rdi + 0x3ee8], r15
lea rcx, [rdi + 0x4608]
call fcn.140001520
mov rcx, qword [rdi + 0x4820]
test rcx, rcx
je 0x140005a14
mov qword [rdi + 0x4818], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005a01
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4820], r15
mov rcx, qword [rdi + 0x4830]
test rcx, rcx
je 0x140005a4c
mov qword [rdi + 0x4828], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005a39
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4830], r15
mov rcx, qword [rdi + 0x4840]
test rcx, rcx
je 0x140005a84
mov qword [rdi + 0x4838], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005a71
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4840], r15
mov rcx, qword [rdi + 0x4880]
test rcx, rcx
je 0x140005abc
mov qword [rdi + 0x4878], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005aa9
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4880], r15
mov rcx, qword [rdi + 0x4890]
test rcx, rcx
je 0x140005af4
mov qword [rdi + 0x4888], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005ae1
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4890], r15
mov ebp, r15d
cmp dword [rdi + 0x48a0], r15d
jle 0x140005bd6
mov r14, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x48a8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140005bc4
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140005b56
mov rcx, rsi
call fcn.1400012f0
mov rax, qword [0x140078130]
test rax, rax
je 0x140005b47
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x140005b89
mov rcx, rsi
call fcn.1400012f0
mov rax, qword [0x140078130]
test rax, rax
je 0x140005b79
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [rbx + 0x78]
lea r9, [0x14001a950]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.14005d08c
nop
mov rax, qword [0x140078130]
test rax, rax
je 0x140005bb5
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x48a0]
jl 0x140005b10
mov rcx, qword [rdi + 0x48a8]
test rcx, rcx
je 0x140005c0e
mov qword [rdi + 0x48a0], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005bfb
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x48a8], r15
lea rcx, [rdi + 0x4ba0]
call fcn.14001a990
mov rcx, qword [rdi + 0x4bd0]
test rcx, rcx
je 0x140005c52
mov qword [rdi + 0x4bc8], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005c3f
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4bd0], r15
mov rcx, qword [rdi + 0x4be0]
test rcx, rcx
je 0x140005c8a
mov qword [rdi + 0x4bd8], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005c77
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4be0], r15
mov ebx, r15d
cmp dword [rdi + 0x4b20], r15d
jle 0x140005cde
mov rsi, r15
nop dword [rax]
mov rax, qword [rdi + 0x4b28]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140005cd0
mov rax, qword [0x140078130]
test rax, rax
je 0x140005cc3
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4b20]
jl 0x140005ca0
mov rcx, qword [rdi + 0x4b28]
test rcx, rcx
je 0x140005d16
mov qword [rdi + 0x4b20], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005d03
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b28], r15
lea rcx, [rdi + 0x4b50]
call fcn.14001ab30
mov esi, r15d
cmp dword [rdi + 0x4b40], r15d
jle 0x140005d7c
mov rbp, r15
mov rbx, qword [rdi + 0x4b48]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140026920
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140005d6e
mov rax, qword [0x140078130]
test rax, rax
je 0x140005d61
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4b40]
jl 0x140005d31
mov rcx, qword [rdi + 0x4b48]
test rcx, rcx
je 0x140005db4
mov qword [rdi + 0x4b40], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005da1
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b48], r15
mov rcx, qword [rdi + 0x4b90]
test rcx, rcx
je 0x140005dec
mov qword [rdi + 0x4b88], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005dd9
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b90], r15
mov rcx, qword [rdi + 0x5ba8]
test rcx, rcx
je 0x140005e24
mov qword [rdi + 0x5ba0], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005e11
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5ba8], r15
mov rcx, qword [rdi + 0x5bb8]
test rcx, rcx
je 0x140005e5c
mov qword [rdi + 0x5bb0], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005e49
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5bb8], r15
mov rcx, qword [rdi + 0x4c20]
test rcx, rcx
je 0x140005e94
mov qword [rdi + 0x4c18], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005e81
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c20], r15
mov rcx, qword [rdi + 0x4c30]
test rcx, rcx
je 0x140005ecc
mov qword [rdi + 0x4c28], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005eb9
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c30], r15
mov rcx, qword [rdi + 0x4c40]
test rcx, rcx
je 0x140005f04
mov qword [rdi + 0x4c38], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005ef1
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c40], r15
mov dword [rdi + 0x5a90], r15d
mov rcx, qword [rdi + 0x5aa0]
test rcx, rcx
je 0x140005f43
mov qword [rdi + 0x5a98], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005f30
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5aa0], r15
mov rcx, qword [rdi + 0x5c10]
test rcx, rcx
je 0x140005f7b
mov qword [rdi + 0x5c08], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005f68
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c10], r15
mov rcx, qword [rdi + 0x5c00]
test rcx, rcx
je 0x140005fb3
mov qword [rdi + 0x5bf8], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140005fa0
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c00], r15
cmp qword [rdi + 0x5c80], 0
je 0x140005fe4
mov rbx, qword [rdi + 0x5c80]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140005fdd
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5c80], r15
mov rcx, qword [rdi + 0x5c90]
test rcx, rcx
je 0x14000601c
mov qword [rdi + 0x5c88], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140006009
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c90], r15
mov rcx, qword [rdi + 0x5cc8]
test rcx, rcx
je 0x140006054
mov qword [rdi + 0x5cc0], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140006041
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5cc8], r15
mov rcx, qword [rdi + 0x5cd8]
test rcx, rcx
je 0x14000608c
mov qword [rdi + 0x5cd0], r15
mov rax, qword [0x140078130]
test rax, rax
je 0x140006079
dec dword [rax + 0xf4]
mov rdx, qword [0x140078120]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5cd8], r15
mov dword [rdi + 0x5ce0], r15d
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