Function at 0x14000afc0
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 rax, qword [0x140067f30]
mov rdi, rax
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x14000b026
cmp byte [rax + 1], 0
je 0x14000b026
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x50]
test rbx, rbx
je 0x14000b026
mov rcx, rbx
call fcn.140034510
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b016
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140067f30]
xor r12d, r12d
mov qword [rdi + 0x50], r12
cmp byte [rdi], r12b
je 0x14000b86d
cmp byte [rdi + 0x54f0], r12b
je 0x14000b097
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14000b097
mov dword [rax + 0x54f4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14001b6a0
mov rsi, rax
lea rdx, [0x140056738]
mov rcx, rbx
call fcn.140004670
mov rbx, rax
test rax, rax
je 0x14000b097
mov r9, rax
mov r8, qword [rsp + 0x50]
lea edx, [r12 + 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]
call fcn.14001db60
mov esi, r12d
cmp dword [rdi + 0x54b8], r12d
jle 0x14000b0f2
mov rbp, r12
nop dword [rax + rax]
mov rax, qword [rdi + 0x54c0]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x14000b0e4
mov rcx, rbx
call fcn.14001f810
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b0db
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rdi + 0x54b8]
jl 0x14000b0b0
mov ebx, r12d
cmp dword [rdi + 0x5538], r12d
jle 0x14000b12e
mov rsi, r12
mov rax, qword [rdi + 0x5540]
cmp dword [rsi + rax + 4], 6
jne 0x14000b120
movsxd rdx, ebx
shl rdx, 5
add rdx, rax
mov rcx, rdi
call qword [rsi + rax + 0x10]
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x5538]
jl 0x14000b101
mov esi, r12d
cmp dword [rdi + 0x3ef8], r12d
jle 0x14000b181
mov r14, r12
nop dword [rax]
mov rax, qword [rdi + 0x3f00]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000b173
mov rcx, rbx
call fcn.140007660
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b16a
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3ef8]
jl 0x14000b140
mov rcx, qword [rdi + 0x3f00]
test rcx, rcx
je 0x14000b1b3
mov qword [rdi + 0x3ef8], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b1a6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f00], r12
mov rcx, qword [rdi + 0x3f10]
test rcx, rcx
je 0x14000b1e5
mov qword [rdi + 0x3f08], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b1d8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f10], r12
mov rcx, qword [rdi + 0x3f20]
test rcx, rcx
je 0x14000b217
mov qword [rdi + 0x3f18], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b20a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f20], r12
mov qword [rdi + 0x3f58], r12
mov rcx, qword [rdi + 0x3f30]
test rcx, rcx
je 0x14000b250
mov qword [rdi + 0x3f28], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b243
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f30], r12
mov rcx, qword [rdi + 0x3f40]
test rcx, rcx
je 0x14000b282
mov qword [rdi + 0x3f38], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b275
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f40], r12
mov qword [rdi + 0x41e0], r12
mov qword [rdi + 0x3f68], r12
mov qword [rdi + 0x3f60], r12
mov qword [rdi + 0x3fe0], r12
mov qword [rdi + 0x3fc8], r12
mov qword [rdi + 0x3f78], r12
mov rcx, qword [rdi + 0x4100]
test rcx, rcx
je 0x14000b2de
mov qword [rdi + 0x40f8], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b2d1
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4100], r12
mov rcx, qword [rdi + 0x4110]
test rcx, rcx
je 0x14000b310
mov qword [rdi + 0x4108], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b303
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4110], r12
mov rcx, qword [rdi + 0x4120]
test rcx, rcx
je 0x14000b342
mov qword [rdi + 0x4118], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b335
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4120], r12
mov rcx, qword [rdi + 0x4160]
test rcx, rcx
je 0x14000b374
mov qword [rdi + 0x4158], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b367
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4160], r12
mov rcx, qword [rdi + 0x4170]
test rcx, rcx
je 0x14000b3a6
mov qword [rdi + 0x4168], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b399
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4170], r12
mov qword [rdi + 0x41a8], r12
mov qword [rdi + 0x41a0], r12
mov qword [rdi + 0x4198], r12
mov ebp, r12d
cmp dword [rdi + 0x4180], r12d
jle 0x14000b48d
mov r14, r12
nop
mov rax, qword [rdi + 0x4188]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000b47b
mov rsi, qword [rbx + 0x98]
test rsi, rsi
je 0x14000b413
mov rcx, rsi
call fcn.140002920
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b40a
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0xa0]
test rsi, rsi
je 0x14000b443
mov rcx, rsi
call fcn.140002920
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b439
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0xe0]
lea r9, [0x140027520]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.14004f1d4
nop
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b472
dec dword [rax + 0xf4]
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 + 0x4180]
jl 0x14000b3d0
mov rcx, qword [rdi + 0x4188]
test rcx, rcx
je 0x14000b4bf
mov qword [rdi + 0x4180], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b4b2
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4188], r12
lea rcx, [rdi + 0x44b0]
call fcn.1400277b0
mov rcx, qword [rdi + 0x44e0]
test rcx, rcx
je 0x14000b4fd
mov qword [rdi + 0x44d8], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b4f0
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x44e0], r12
mov rcx, qword [rdi + 0x44f0]
test rcx, rcx
je 0x14000b52f
mov qword [rdi + 0x44e8], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b522
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x44f0], r12
mov ebx, r12d
cmp dword [rdi + 0x4430], r12d
jle 0x14000b577
mov rsi, r12
nop
mov rax, qword [rdi + 0x4438]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14000b569
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b563
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4430]
jl 0x14000b540
mov rcx, qword [rdi + 0x4438]
test rcx, rcx
je 0x14000b5a9
mov qword [rdi + 0x4430], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b59c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4438], r12
lea rcx, [rdi + 0x4460]
call fcn.1400278c0
mov esi, r12d
cmp dword [rdi + 0x4450], r12d
jle 0x14000b613
mov rbp, r12
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x4458]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140033ad0
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14000b605
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b5ff
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4450]
jl 0x14000b5d0
mov rcx, qword [rdi + 0x4458]
test rcx, rcx
je 0x14000b645
mov qword [rdi + 0x4450], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b638
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4458], r12
mov rcx, qword [rdi + 0x44a0]
test rcx, rcx
je 0x14000b677
mov qword [rdi + 0x4498], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b66a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x44a0], r12
mov rcx, qword [rdi + 0x5478]
test rcx, rcx
je 0x14000b6a9
mov qword [rdi + 0x5470], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b69c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5478], r12
mov rcx, qword [rdi + 0x5488]
test rcx, rcx
je 0x14000b6db
mov qword [rdi + 0x5480], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b6ce
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5488], r12
mov rcx, qword [rdi + 0x4518]
test rcx, rcx
je 0x14000b70d
mov qword [rdi + 0x4510], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b700
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4518], r12
mov rcx, qword [rdi + 0x4528]
test rcx, rcx
je 0x14000b73f
mov qword [rdi + 0x4520], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b732
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4528], r12
mov rcx, qword [rdi + 0x4538]
test rcx, rcx
je 0x14000b771
mov qword [rdi + 0x4530], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b764
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4538], r12
mov rcx, qword [rdi + 0x5520]
test rcx, rcx
je 0x14000b7a3
mov qword [rdi + 0x5518], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b796
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5520], r12
mov rcx, qword [rdi + 0x5510]
test rcx, rcx
je 0x14000b7d5
mov qword [rdi + 0x5508], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b7c8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5510], r12
cmp qword [rdi + 0x5558], 0
je 0x14000b806
mov rbx, qword [rdi + 0x5558]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000b7ff
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5558], r12
mov rcx, qword [rdi + 0x5568]
test rcx, rcx
je 0x14000b838
mov qword [rdi + 0x5560], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b82b
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5568], r12
mov rcx, qword [rdi + 0x55a0]
test rcx, rcx
je 0x14000b86a
mov qword [rdi + 0x5598], r12
mov rax, qword [0x140067f30]
test rax, rax
je 0x14000b85d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x55a0], 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