Function at 0x140012bf0
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 [0x140068738]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x140012cc2
cmp byte [rdi + 1], 0
je 0x140012cc2
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x140012cc2
mov rcx, rbx
call fcn.140035440
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x140012c63
mov rax, qword [0x140068738]
test rax, rax
je 0x140012c5c
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x140012c85
mov rax, qword [0x140068738]
test rax, rax
je 0x140012c7e
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140012ca7
mov rax, qword [0x140068738]
test rax, rax
je 0x140012ca0
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x140068738]
test rax, rax
je 0x140012cb9
dec dword [rax + 0xf0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0x38], r12
mov rcx, qword [rdi + 0x3c58]
test rcx, rcx
je 0x140012cfb
mov qword [rdi + 0x3c50], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140012cee
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c58], r12
cmp byte [rdi], r12b
je 0x1400135b1
cmp byte [rdi + 0x5cd8], r12b
je 0x140012d6c
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140012d6c
mov rax, qword [0x140068738]
mov dword [rax + 0x5cdc], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.140027100
mov rsi, rax
lea rdx, [0x14005a124]
mov rcx, rbx
call fcn.140010090
mov rbx, rax
test rax, rax
je 0x140012d6c
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 rbx, qword [rdi + 0x5d28]
movsxd rsi, dword [rdi + 0x5d20]
shl rsi, 5
add rsi, rbx
cmp rbx, rsi
je 0x140012da1
cmp dword [rbx + 4], 6
jne 0x140012d98
mov rax, qword [rbx + 0x10]
mov rdx, rbx
mov rcx, rdi
call rax
add rbx, 0x20
cmp rbx, rsi
jne 0x140012d86
mov esi, r12d
cmp dword [rdi + 0x3e80], r12d
jle 0x140012df1
mov r14, r12
mov rax, qword [rdi + 0x3e88]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140012de3
mov rcx, rbx
call fcn.140013ad0
mov rax, qword [0x140068738]
test rax, rax
je 0x140012dda
dec dword [rax + 0xf0]
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 + 0x3e80]
jl 0x140012db0
mov rcx, qword [rdi + 0x3e88]
test rcx, rcx
je 0x140012e23
mov qword [rdi + 0x3e80], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140012e16
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e88], r12
mov rcx, qword [rdi + 0x3e98]
test rcx, rcx
je 0x140012e55
mov qword [rdi + 0x3e90], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140012e48
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e98], r12
mov rcx, qword [rdi + 0x3ea8]
test rcx, rcx
je 0x140012e87
mov qword [rdi + 0x3ea0], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140012e7a
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ea8], r12
mov qword [rdi + 0x3ee0], r12
mov rcx, qword [rdi + 0x3eb8]
test rcx, rcx
je 0x140012ec0
mov qword [rdi + 0x3eb0], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140012eb3
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3eb8], r12
mov rcx, qword [rdi + 0x3ec8]
test rcx, rcx
je 0x140012ef2
mov qword [rdi + 0x3ec0], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140012ee5
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ec8], r12
mov qword [rdi + 0x48e0], r12
mov qword [rdi + 0x3ef0], r12
mov qword [rdi + 0x3ee8], r12
mov qword [rdi + 0x3f78], r12
mov qword [rdi + 0x3f60], r12
mov qword [rdi + 0x3ef8], r12
lea rcx, [rdi + 0x4618]
call fcn.14000dfd0
mov rcx, qword [rdi + 0x4840]
test rcx, rcx
je 0x140012f5a
mov qword [rdi + 0x4838], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140012f4d
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4840], r12
mov rcx, qword [rdi + 0x4850]
test rcx, rcx
je 0x140012f8c
mov qword [rdi + 0x4848], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140012f7f
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4850], r12
mov rcx, qword [rdi + 0x4860]
test rcx, rcx
je 0x140012fbe
mov qword [rdi + 0x4858], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140012fb1
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4860], r12
mov rcx, qword [rdi + 0x48a0]
test rcx, rcx
je 0x140012ff0
mov qword [rdi + 0x4898], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140012fe3
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48a0], r12
mov rcx, qword [rdi + 0x48b0]
test rcx, rcx
je 0x140013022
mov qword [rdi + 0x48a8], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140013015
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48b0], r12
mov rcx, qword [rdi + 0x48c0]
test rcx, rcx
je 0x140013054
mov qword [rdi + 0x48b8], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140013047
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48c0], r12
mov ebp, r12d
cmp dword [rdi + 0x48d0], r12d
jle 0x140013151
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x48d8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14001313f
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1400130b0
mov rcx, rsi
call fcn.14000ddd0
mov rax, qword [0x140068738]
test rax, rax
je 0x1400130a7
dec dword [rax + 0xf0]
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 0x1400130dd
mov rcx, rsi
call fcn.14000ddd0
mov rax, qword [0x140068738]
test rax, rax
je 0x1400130d3
dec dword [rax + 0xf0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x140013102
mov rax, qword [0x140068738]
test rax, rax
je 0x1400130fb
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140013124
mov rax, qword [0x140068738]
test rax, rax
je 0x14001311d
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x140068738]
test rax, rax
je 0x140013136
dec dword [rax + 0xf0]
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 + 0x48d0]
jl 0x140013070
mov rcx, qword [rdi + 0x48d8]
test rcx, rcx
je 0x140013183
mov qword [rdi + 0x48d0], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140013176
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48d8], r12
lea rcx, [rdi + 0x4c20]
call fcn.140028160
mov rcx, qword [rdi + 0x4c50]
test rcx, rcx
je 0x1400131c1
mov qword [rdi + 0x4c48], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x1400131b4
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c50], r12
mov rcx, qword [rdi + 0x4c60]
test rcx, rcx
je 0x1400131f3
mov qword [rdi + 0x4c58], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x1400131e6
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c60], r12
mov ebx, r12d
cmp dword [rdi + 0x4ba0], r12d
jle 0x140013248
mov rsi, r12
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x4ba8]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14001323a
mov rax, qword [0x140068738]
test rax, rax
je 0x140013233
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4ba0]
jl 0x140013210
mov rcx, qword [rdi + 0x4ba8]
test rcx, rcx
je 0x14001327a
mov qword [rdi + 0x4ba0], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x14001326d
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4ba8], r12
lea rcx, [rdi + 0x4bd0]
call fcn.1400282d0
mov esi, r12d
cmp dword [rdi + 0x4bc0], r12d
jle 0x1400132e5
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4bc8]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140034980
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1400132d7
mov rax, qword [0x140068738]
test rax, rax
je 0x1400132d0
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4bc0]
jl 0x1400132a0
mov rcx, qword [rdi + 0x4bc8]
test rcx, rcx
je 0x140013317
mov qword [rdi + 0x4bc0], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x14001330a
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bc8], r12
mov rcx, qword [rdi + 0x4c10]
test rcx, rcx
je 0x140013349
mov qword [rdi + 0x4c08], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x14001333c
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c10], r12
mov rcx, qword [rdi + 0x5c38]
test rcx, rcx
je 0x14001337b
mov qword [rdi + 0x5c30], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x14001336e
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c38], r12
mov rcx, qword [rdi + 0x5c48]
test rcx, rcx
je 0x1400133ad
mov qword [rdi + 0x5c40], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x1400133a0
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c48], r12
mov rcx, qword [rdi + 0x4cb0]
test rcx, rcx
je 0x1400133df
mov qword [rdi + 0x4ca8], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x1400133d2
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4cb0], r12
mov rcx, qword [rdi + 0x4cc0]
test rcx, rcx
je 0x140013411
mov qword [rdi + 0x4cb8], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140013404
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4cc0], r12
mov rcx, qword [rdi + 0x4cd0]
test rcx, rcx
je 0x140013443
mov qword [rdi + 0x4cc8], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140013436
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4cd0], r12
mov dword [rdi + 0x5b20], r12d
mov rcx, qword [rdi + 0x5b30]
test rcx, rcx
je 0x14001347c
mov qword [rdi + 0x5b28], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x14001346f
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b30], r12
mov rcx, qword [rdi + 0x5d08]
test rcx, rcx
je 0x1400134ae
mov qword [rdi + 0x5d00], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x1400134a1
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d08], r12
mov rcx, qword [rdi + 0x5cf8]
test rcx, rcx
je 0x1400134e0
mov qword [rdi + 0x5cf0], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x1400134d3
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5cf8], r12
cmp qword [rdi + 0x5d80], 0
je 0x140013511
mov rbx, qword [rdi + 0x5d80]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14001350a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5d80], r12
mov rcx, qword [rdi + 0x5d90]
test rcx, rcx
je 0x140013543
mov qword [rdi + 0x5d88], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140013536
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d90], r12
mov rcx, qword [rdi + 0x5dc8]
test rcx, rcx
je 0x140013575
mov qword [rdi + 0x5dc0], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x140013568
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5dc8], r12
mov rcx, qword [rdi + 0x5dd8]
test rcx, rcx
je 0x1400135a7
mov qword [rdi + 0x5dd0], r12
mov rax, qword [0x140068738]
test rax, rax
je 0x14001359a
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5dd8], r12
mov dword [rdi + 0x5de0], 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