Function at 0x1400086a0
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 [0x1400eac60]
mov rax, qword [rdi + 0x50]
test rax, rax
je 0x140008789
cmp byte [rdi + 1], 0
je 0x140008789
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x50]
test rbx, rbx
je 0x140008789
mov rcx, rbx
call fcn.140025060
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x140008718
mov rax, qword [0x1400eac60]
test rax, rax
je 0x14000870b
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140008740
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008733
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
nop
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140008768
mov rax, qword [0x1400eac60]
test rax, rax
je 0x14000875b
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
nop
mov rax, qword [0x1400eac60]
test rax, rax
je 0x14000877a
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
mov rcx, rbx
call fcn.1400026f0
xor r15d, r15d
mov qword [rdi + 0x50], r15
cmp byte [rdi], r15b
je 0x140009018
cmp byte [rdi + 0x5429], r15b
je 0x140008800
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140008800
mov rax, qword [0x1400eac60]
mov dword [rax + 0x542c], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.1400177f0
mov rsi, rax
lea rdx, [0x1400cdc78]
mov rcx, rbx
call fcn.1400032f0
mov rbx, rax
test rax, rax
je 0x140008800
mov r9, rax
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 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 + 0x5470], r15d
jle 0x140008840
mov rsi, r15
nop
mov rcx, qword [rdi + 0x5478]
cmp dword [rsi + rcx + 4], 6
jne 0x140008832
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 + 0x5470]
jl 0x140008810
mov esi, r15d
cmp dword [rdi + 0x3ee8], r15d
jle 0x140008897
mov r14, r15
nop
mov rax, qword [rdi + 0x3ef0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140008889
mov rcx, rbx
call fcn.140005490
mov rax, qword [0x1400eac60]
test rax, rax
je 0x14000887a
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
mov rcx, rbx
call fcn.1400026f0
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3ee8]
jl 0x140008850
mov rcx, qword [rdi + 0x3ef0]
test rcx, rcx
je 0x1400088cf
mov qword [rdi + 0x3ee8], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x1400088bc
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x3ef0], r15
mov rcx, qword [rdi + 0x3f00]
test rcx, rcx
je 0x140008907
mov qword [rdi + 0x3ef8], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x1400088f4
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x3f00], r15
mov rcx, qword [rdi + 0x3f10]
test rcx, rcx
je 0x14000893f
mov qword [rdi + 0x3f08], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x14000892c
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x3f10], r15
mov qword [rdi + 0x3f48], r15
mov rcx, qword [rdi + 0x3f20]
test rcx, rcx
je 0x14000897e
mov qword [rdi + 0x3f18], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x14000896b
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x3f20], r15
mov rcx, qword [rdi + 0x3f30]
test rcx, rcx
je 0x1400089b6
mov qword [rdi + 0x3f28], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x1400089a3
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x3f30], r15
mov qword [rdi + 0x4168], r15
mov qword [rdi + 0x3f58], r15
mov qword [rdi + 0x3f50], r15
mov qword [rdi + 0x3fc8], r15
mov qword [rdi + 0x3fb0], r15
mov qword [rdi + 0x3f60], r15
mov rcx, qword [rdi + 0x40d8]
test rcx, rcx
je 0x140008a18
mov qword [rdi + 0x40d0], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008a05
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x40d8], r15
mov rcx, qword [rdi + 0x40e8]
test rcx, rcx
je 0x140008a50
mov qword [rdi + 0x40e0], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008a3d
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x40e8], r15
mov rcx, qword [rdi + 0x40f8]
test rcx, rcx
je 0x140008a88
mov qword [rdi + 0x40f0], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008a75
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x40f8], r15
mov rcx, qword [rdi + 0x4138]
test rcx, rcx
je 0x140008ac0
mov qword [rdi + 0x4130], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008aad
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x4138], r15
mov rcx, qword [rdi + 0x4148]
test rcx, rcx
je 0x140008af8
mov qword [rdi + 0x4140], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008ae5
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x4148], r15
mov ebp, r15d
cmp dword [rdi + 0x4158], r15d
jle 0x140008bd6
mov r14, r15
nop dword [rax + rax]
mov rax, qword [rdi + 0x4160]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140008bc4
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140008b56
mov rcx, rsi
call fcn.1400017e0
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008b47
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
mov rcx, rsi
call fcn.1400026f0
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x140008b89
mov rcx, rsi
call fcn.1400017e0
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008b79
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
mov rcx, rsi
call fcn.1400026f0
nop
lea rcx, [rbx + 0x78]
lea r9, [0x1400183f0]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.1400b999c
nop
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008bb5
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
mov rcx, rbx
call fcn.1400026f0
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4158]
jl 0x140008b10
mov rcx, qword [rdi + 0x4160]
test rcx, rcx
je 0x140008c0e
mov qword [rdi + 0x4158], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008bfb
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x4160], r15
lea rcx, [rdi + 0x4428]
call fcn.140018430
mov rcx, qword [rdi + 0x4458]
test rcx, rcx
je 0x140008c52
mov qword [rdi + 0x4450], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008c3f
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x4458], r15
mov rcx, qword [rdi + 0x4468]
test rcx, rcx
je 0x140008c8a
mov qword [rdi + 0x4460], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008c77
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x4468], r15
mov ebx, r15d
cmp dword [rdi + 0x43a8], r15d
jle 0x140008cde
mov rsi, r15
nop dword [rax]
mov rax, qword [rdi + 0x43b0]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140008cd0
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008cc3
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x43a8]
jl 0x140008ca0
mov rcx, qword [rdi + 0x43b0]
test rcx, rcx
je 0x140008d16
mov qword [rdi + 0x43a8], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008d03
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x43b0], r15
lea rcx, [rdi + 0x43d8]
call fcn.1400185d0
mov esi, r15d
cmp dword [rdi + 0x43c8], r15d
jle 0x140008d7c
mov rbp, r15
mov rbx, qword [rdi + 0x43d0]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400245c0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140008d6e
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008d61
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x43c8]
jl 0x140008d31
mov rcx, qword [rdi + 0x43d0]
test rcx, rcx
je 0x140008db4
mov qword [rdi + 0x43c8], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008da1
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x43d0], r15
mov rcx, qword [rdi + 0x4418]
test rcx, rcx
je 0x140008dec
mov qword [rdi + 0x4410], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008dd9
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x4418], r15
mov rcx, qword [rdi + 0x53f0]
test rcx, rcx
je 0x140008e24
mov qword [rdi + 0x53e8], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008e11
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x53f0], r15
mov rcx, qword [rdi + 0x5400]
test rcx, rcx
je 0x140008e5c
mov qword [rdi + 0x53f8], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008e49
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x5400], r15
mov rcx, qword [rdi + 0x4490]
test rcx, rcx
je 0x140008e94
mov qword [rdi + 0x4488], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008e81
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x4490], r15
mov rcx, qword [rdi + 0x44a0]
test rcx, rcx
je 0x140008ecc
mov qword [rdi + 0x4498], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008eb9
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x44a0], r15
mov rcx, qword [rdi + 0x44b0]
test rcx, rcx
je 0x140008f04
mov qword [rdi + 0x44a8], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008ef1
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x44b0], r15
mov rcx, qword [rdi + 0x5458]
test rcx, rcx
je 0x140008f3c
mov qword [rdi + 0x5450], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008f29
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x5458], r15
mov rcx, qword [rdi + 0x5448]
test rcx, rcx
je 0x140008f74
mov qword [rdi + 0x5440], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008f61
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x5448], r15
cmp qword [rdi + 0x5490], 0
je 0x140008fa5
mov rbx, qword [rdi + 0x5490]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140008f9e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5490], r15
mov rcx, qword [rdi + 0x54a0]
test rcx, rcx
je 0x140008fdd
mov qword [rdi + 0x5498], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140008fca
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x54a0], r15
mov rcx, qword [rdi + 0x54d8]
test rcx, rcx
je 0x140009015
mov qword [rdi + 0x54d0], r15
mov rax, qword [0x1400eac60]
test rax, rax
je 0x140009002
dec dword [rax + 0xec]
mov rdx, qword [0x1400eac50]
call fcn.1400026f0
mov qword [rdi + 0x54d8], 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