Function at 0x1400ace30
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, rcx
mov rax, qword [rcx + 0x50]
xor r12d, r12d
test rax, rax
je 0x1400acf76
cmp byte [rcx + 1], r12b
je 0x1400acf76
mov byte [rax + 0x18], r12b
mov rbx, qword [rcx + 0x50]
test rbx, rbx
je 0x1400acf76
mov rcx, rbx
call fcn.14009fb10
mov rcx, rbx
call fcn.14009fc60
mov ebp, r12d
cmp dword [rbx + 0x48], r12d
jle 0x1400acecb
mov r14d, r12d
mov rax, qword [rbx + 0x50]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x1400acec0
mov rcx, rsi
call fcn.1400a10a0
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400aceb7
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x48]
jl 0x1400ace90
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400acef4
mov qword [rbx + 0x48], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400aceea
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x50], r12
mov byte [rbx + 0x19], r12b
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1400acf19
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400acf13
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400acf3a
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400acf34
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400acf5b
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400acf55
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400acf6d
dec dword [rax + 0xec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x50], r12
cmp byte [rdi], r12b
je 0x1400ad68b
cmp byte [rdi + 0x5af9], r12b
je 0x1400acff9
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400acff9
mov rsi, qword [0x14025efa0]
mov qword [0x14025efa0], rdi
mov dword [rdi + 0x5afc], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.1400bb550
mov rbp, rax
lea rdx, [0x14023034c]
mov rcx, rbx
call fcn.1400a7d10
mov rbx, rax
test rax, rax
je 0x1400acff2
mov r9, rax
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, rbp
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 qword [0x14025efa0], rsi
mov edx, 6
mov rcx, rdi
call fcn.1400aa240
lea rcx, [rdi + 0x3dc8]
call fcn.1400bc7f0
mov rcx, qword [rdi + 0x3de0]
test rcx, rcx
je 0x1400ad044
mov qword [rdi + 0x3dd8], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad037
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3de0], r12
mov rcx, qword [rdi + 0x3df0]
test rcx, rcx
je 0x1400ad076
mov qword [rdi + 0x3de8], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad069
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3df0], r12
mov qword [rdi + 0x3e28], r12
mov rcx, qword [rdi + 0x3e00]
test rcx, rcx
je 0x1400ad0af
mov qword [rdi + 0x3df8], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad0a2
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e00], r12
mov rcx, qword [rdi + 0x3e10]
test rcx, rcx
je 0x1400ad0e1
mov qword [rdi + 0x3e08], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad0d4
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e10], r12
mov qword [rdi + 0x4038], r12
mov qword [rdi + 0x3e38], r12
mov qword [rdi + 0x3e30], r12
mov qword [rdi + 0x3ec8], r12
mov qword [rdi + 0x3eb0], r12
mov qword [rdi + 0x3e40], r12
mov rcx, qword [rdi + 0x3fa8]
test rcx, rcx
je 0x1400ad13d
mov qword [rdi + 0x3fa0], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad130
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fa8], r12
mov rcx, qword [rdi + 0x3fb8]
test rcx, rcx
je 0x1400ad16f
mov qword [rdi + 0x3fb0], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad162
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fb8], r12
mov rcx, qword [rdi + 0x3fc8]
test rcx, rcx
je 0x1400ad1a1
mov qword [rdi + 0x3fc0], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad194
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fc8], r12
mov rcx, qword [rdi + 0x4008]
test rcx, rcx
je 0x1400ad1d3
mov qword [rdi + 0x4000], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad1c6
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4008], r12
mov rcx, qword [rdi + 0x4018]
test rcx, rcx
je 0x1400ad205
mov qword [rdi + 0x4010], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad1f8
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4018], r12
mov ebp, r12d
cmp dword [rdi + 0x4028], r12d
jle 0x1400ad2d4
mov r14, r12
nop dword [rax + rax]
mov rax, qword [rdi + 0x4030]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400ad2c2
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1400ad260
mov rcx, rsi
call fcn.1400a6440
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad257
dec dword [rax + 0xec]
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 0x1400ad28d
mov rcx, rsi
call fcn.1400a6440
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad283
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x78]
lea r9, [0x1400bc9c0]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.14013ed48
nop
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad2b9
dec dword [rax + 0xec]
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 + 0x4028]
jl 0x1400ad220
mov rcx, qword [rdi + 0x4030]
test rcx, rcx
je 0x1400ad306
mov qword [rdi + 0x4028], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad2f9
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4030], r12
lea rcx, [rdi + 0x42f8]
call fcn.1400bc250
mov rcx, qword [rdi + 0x4328]
test rcx, rcx
je 0x1400ad344
mov qword [rdi + 0x4320], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad337
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4328], r12
mov rcx, qword [rdi + 0x4338]
test rcx, rcx
je 0x1400ad376
mov qword [rdi + 0x4330], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad369
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4338], r12
mov ebx, r12d
cmp dword [rdi + 0x4278], r12d
jle 0x1400ad3c7
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4280]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1400ad3b9
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad3b3
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4278]
jl 0x1400ad390
mov rcx, qword [rdi + 0x4280]
test rcx, rcx
je 0x1400ad3f9
mov qword [rdi + 0x4278], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad3ec
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4280], r12
lea rcx, [rdi + 0x42a8]
call fcn.1400bc360
mov esi, r12d
cmp dword [rdi + 0x4298], r12d
jle 0x1400ad463
mov rbp, r12
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x42a0]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14009ed80
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1400ad455
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad44f
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4298]
jl 0x1400ad420
mov rcx, qword [rdi + 0x42a0]
test rcx, rcx
je 0x1400ad495
mov qword [rdi + 0x4298], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad488
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x42a0], r12
mov rcx, qword [rdi + 0x42e8]
test rcx, rcx
je 0x1400ad4c7
mov qword [rdi + 0x42e0], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad4ba
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x42e8], r12
mov rcx, qword [rdi + 0x5ac0]
test rcx, rcx
je 0x1400ad4f9
mov qword [rdi + 0x5ab8], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad4ec
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ac0], r12
mov rcx, qword [rdi + 0x5ad0]
test rcx, rcx
je 0x1400ad52b
mov qword [rdi + 0x5ac8], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad51e
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ad0], r12
mov rcx, qword [rdi + 0x4360]
test rcx, rcx
je 0x1400ad55d
mov qword [rdi + 0x4358], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad550
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4360], r12
mov rcx, qword [rdi + 0x4370]
test rcx, rcx
je 0x1400ad58f
mov qword [rdi + 0x4368], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad582
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4370], r12
mov rcx, qword [rdi + 0x4380]
test rcx, rcx
je 0x1400ad5c1
mov qword [rdi + 0x4378], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad5b4
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4380], r12
mov rcx, qword [rdi + 0x5b28]
test rcx, rcx
je 0x1400ad5f3
mov qword [rdi + 0x5b20], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad5e6
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b28], r12
mov rcx, qword [rdi + 0x5b18]
test rcx, rcx
je 0x1400ad625
mov qword [rdi + 0x5b10], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad618
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b18], r12
cmp qword [rdi + 0x5b60], 0
je 0x1400ad656
mov rbx, qword [rdi + 0x5b60]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400ad64f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5b60], r12
mov rcx, qword [rdi + 0x5b70]
test rcx, rcx
je 0x1400ad688
mov qword [rdi + 0x5b68], r12
mov rax, qword [0x14025efa0]
test rax, rax
je 0x1400ad67b
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b70], r12
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