Function at 0x1400101a0
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, qword [0x14005b740]
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x1400101fc
cmp byte [rdi + 1], 0
je 0x1400101fc
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x1400101fc
mov rcx, rbx
call fcn.14003f150
mov rax, qword [0x14005b740]
test rax, rax
je 0x1400101f3
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3d80]
test rcx, rcx
je 0x140010235
mov qword [rdi + 0x3d78], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010228
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3d80], r12
cmp byte [rdi], r12b
je 0x140010b31
cmp byte [rdi + 0x5de0], r12b
je 0x1400102a6
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400102a6
mov rax, qword [0x14005b740]
mov dword [rax + 0x5de4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.140025990
mov rsi, rax
lea rdx, [0x140052174]
mov rcx, rbx
call fcn.14000d280
mov rbx, rax
test rax, rax
je 0x1400102a6
mov r9, rax
mov r8, qword [rsp + 0x50]
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 rbp, qword [0x14005b740]
mov ebx, r12d
cmp dword [rbp + 0x49f8], r12d
jle 0x1400102de
mov rsi, r12
nop dword [rax]
mov rcx, qword [rbp + 0x4a00]
mov rcx, qword [rcx + rsi]
call fcn.140028490
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rbp + 0x49f8]
jl 0x1400102c0
mov esi, r12d
cmp dword [rdi + 0x5da0], r12d
jle 0x140010332
mov rbp, r12
nop dword [rax]
mov rax, qword [rdi + 0x5da8]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x140010324
mov rcx, rbx
call fcn.140029fe0
mov rax, qword [0x14005b740]
test rax, rax
je 0x14001031b
dec dword [rax + 0xfc]
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 + 0x5da0]
jl 0x1400102f0
mov ebx, r12d
cmp dword [rdi + 0x5e28], r12d
jle 0x140010371
mov rsi, r12
mov rcx, qword [rdi + 0x5e30]
cmp dword [rcx + rsi + 4], 6
jne 0x140010363
mov rax, qword [rcx + rsi + 0x10]
movsxd rdx, ebx
shl rdx, 5
add rdx, rcx
mov rcx, rdi
call rax
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x5e28]
jl 0x140010341
mov esi, r12d
cmp dword [rdi + 0x3fa8], r12d
jle 0x1400103c1
mov r14, r12
mov rax, qword [rdi + 0x3fb0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400103b3
mov rcx, rbx
call fcn.140011190
mov rax, qword [0x14005b740]
test rax, rax
je 0x1400103aa
dec dword [rax + 0xfc]
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 + 0x3fa8]
jl 0x140010380
mov rcx, qword [rdi + 0x3fb0]
test rcx, rcx
je 0x1400103f3
mov qword [rdi + 0x3fa8], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x1400103e6
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fb0], r12
mov rcx, qword [rdi + 0x3fc0]
test rcx, rcx
je 0x140010425
mov qword [rdi + 0x3fb8], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010418
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fc0], r12
mov rcx, qword [rdi + 0x3fd0]
test rcx, rcx
je 0x140010457
mov qword [rdi + 0x3fc8], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x14001044a
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fd0], r12
mov qword [rdi + 0x4008], r12
mov rcx, qword [rdi + 0x3fe0]
test rcx, rcx
je 0x140010490
mov qword [rdi + 0x3fd8], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010483
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fe0], r12
mov rcx, qword [rdi + 0x3ff0]
test rcx, rcx
je 0x1400104c2
mov qword [rdi + 0x3fe8], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x1400104b5
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ff0], r12
mov qword [rdi + 0x4a68], r12
mov qword [rdi + 0x4018], r12
mov qword [rdi + 0x4010], r12
mov qword [rdi + 0x40a0], r12
mov qword [rdi + 0x4088], r12
mov qword [rdi + 0x4020], r12
lea rcx, [rdi + 0x4740]
call fcn.14000b550
mov rcx, qword [rdi + 0x4978]
test rcx, rcx
je 0x14001052a
mov qword [rdi + 0x4970], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x14001051d
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4978], r12
mov rcx, qword [rdi + 0x4988]
test rcx, rcx
je 0x14001055c
mov qword [rdi + 0x4980], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x14001054f
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4988], r12
mov rcx, qword [rdi + 0x4998]
test rcx, rcx
je 0x14001058e
mov qword [rdi + 0x4990], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010581
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4998], r12
mov rcx, qword [rdi + 0x49d8]
test rcx, rcx
je 0x1400105c0
mov qword [rdi + 0x49d0], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x1400105b3
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49d8], r12
mov rcx, qword [rdi + 0x49e8]
test rcx, rcx
je 0x1400105f2
mov qword [rdi + 0x49e0], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x1400105e5
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49e8], r12
mov qword [rdi + 0x4a20], r12
mov qword [rdi + 0x4a18], r12
mov qword [rdi + 0x4a10], r12
mov ebp, r12d
cmp dword [rdi + 0x49f8], r12d
jle 0x1400106dd
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4a00]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400106cb
mov rsi, qword [rbx + 0x98]
test rsi, rsi
je 0x140010663
mov rcx, rsi
call fcn.14000b3c0
mov rax, qword [0x14005b740]
test rax, rax
je 0x14001065a
dec dword [rax + 0xfc]
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 0x140010693
mov rcx, rsi
call fcn.14000b3c0
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010689
dec dword [rax + 0xfc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0xe0]
lea r9, [0x14000b1e0]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.14004a840
nop
mov rax, qword [0x14005b740]
test rax, rax
je 0x1400106c2
dec dword [rax + 0xfc]
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 + 0x49f8]
jl 0x140010620
mov rcx, qword [rdi + 0x4a00]
test rcx, rcx
je 0x14001070f
mov qword [rdi + 0x49f8], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010702
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a00], r12
lea rcx, [rdi + 0x4d58]
call fcn.140031ea0
mov rcx, qword [rdi + 0x4d88]
test rcx, rcx
je 0x14001074d
mov qword [rdi + 0x4d80], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010740
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d88], r12
mov rcx, qword [rdi + 0x4d98]
test rcx, rcx
je 0x14001077f
mov qword [rdi + 0x4d90], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010772
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d98], r12
mov ebx, r12d
cmp dword [rdi + 0x4cd8], r12d
jle 0x1400107c8
mov rsi, r12
nop
mov rax, qword [rdi + 0x4ce0]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1400107ba
mov rax, qword [0x14005b740]
test rax, rax
je 0x1400107b3
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4cd8]
jl 0x140010790
mov rcx, qword [rdi + 0x4ce0]
test rcx, rcx
je 0x1400107fa
mov qword [rdi + 0x4cd8], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x1400107ed
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4ce0], r12
lea rcx, [rdi + 0x4d08]
call fcn.140032010
mov esi, r12d
cmp dword [rdi + 0x4cf8], r12d
jle 0x140010865
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4d00]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14003ea70
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140010857
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010850
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4cf8]
jl 0x140010820
mov rcx, qword [rdi + 0x4d00]
test rcx, rcx
je 0x140010897
mov qword [rdi + 0x4cf8], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x14001088a
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d00], r12
mov rcx, qword [rdi + 0x4d48]
test rcx, rcx
je 0x1400108c9
mov qword [rdi + 0x4d40], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x1400108bc
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d48], r12
mov rcx, qword [rdi + 0x5d60]
test rcx, rcx
je 0x1400108fb
mov qword [rdi + 0x5d58], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x1400108ee
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d60], r12
mov rcx, qword [rdi + 0x5d70]
test rcx, rcx
je 0x14001092d
mov qword [rdi + 0x5d68], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010920
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d70], r12
mov rcx, qword [rdi + 0x4dd8]
test rcx, rcx
je 0x14001095f
mov qword [rdi + 0x4dd0], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010952
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4dd8], r12
mov rcx, qword [rdi + 0x4de8]
test rcx, rcx
je 0x140010991
mov qword [rdi + 0x4de0], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010984
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4de8], r12
mov rcx, qword [rdi + 0x4df8]
test rcx, rcx
je 0x1400109c3
mov qword [rdi + 0x4df0], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x1400109b6
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4df8], r12
mov dword [rdi + 0x5c48], r12d
mov rcx, qword [rdi + 0x5c58]
test rcx, rcx
je 0x1400109fc
mov qword [rdi + 0x5c50], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x1400109ef
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c58], r12
mov rcx, qword [rdi + 0x5e10]
test rcx, rcx
je 0x140010a2e
mov qword [rdi + 0x5e08], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010a21
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e10], r12
mov rcx, qword [rdi + 0x5e00]
test rcx, rcx
je 0x140010a60
mov qword [rdi + 0x5df8], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010a53
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e00], r12
cmp qword [rdi + 0x5e88], 0
je 0x140010a91
mov rbx, qword [rdi + 0x5e88]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140010a8a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5e88], r12
mov rcx, qword [rdi + 0x5e98]
test rcx, rcx
je 0x140010ac3
mov qword [rdi + 0x5e90], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010ab6
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e98], r12
mov rcx, qword [rdi + 0x5ed0]
test rcx, rcx
je 0x140010af5
mov qword [rdi + 0x5ec8], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010ae8
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ed0], r12
mov rcx, qword [rdi + 0x5ee0]
test rcx, rcx
je 0x140010b27
mov qword [rdi + 0x5ed8], r12
mov rax, qword [0x14005b740]
test rax, rax
je 0x140010b1a
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ee0], r12
mov dword [rdi + 0x5ee8], r12d
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