Function at 0x1400063d0
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 [0x1400d3990]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x1400064a2
cmp byte [rdi + 1], 0
je 0x1400064a2
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x1400064a2
mov rcx, rbx
call fcn.140035ab0
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x140006443
mov rax, qword [0x1400d3990]
test rax, rax
je 0x14000643c
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x140006465
mov rax, qword [0x1400d3990]
test rax, rax
je 0x14000645e
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140006487
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006480
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006499
dec dword [rax + 0xf8]
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 + 0x3d90]
test rcx, rcx
je 0x1400064db
mov qword [rdi + 0x3d88], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x1400064ce
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3d90], r12
cmp byte [rdi], r12b
je 0x140006d61
cmp byte [rdi + 0x5ee0], r12b
je 0x14000654c
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14000654c
mov rax, qword [0x1400d3990]
mov dword [rax + 0x5ee4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14001c180
mov rsi, rax
lea rdx, [0x140058974]
mov rcx, rbx
call fcn.140003180
mov rbx, rax
test rax, rax
je 0x14000654c
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 rax, qword [0x1400d3990]
mov rbx, qword [rax + 0x4a30]
movsxd rax, dword [rax + 0x4a28]
lea rsi, [rbx + rax*8]
cmp rbx, rsi
je 0x140006581
nop word [rax + rax]
mov rcx, qword [rbx]
call fcn.14001e9a0
add rbx, 8
cmp rbx, rsi
jne 0x140006570
mov esi, r12d
cmp dword [rdi + 0x5ea0], r12d
jle 0x1400065d2
mov rbp, r12
mov rax, qword [rdi + 0x5ea8]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x1400065c4
mov rcx, rbx
call fcn.1400204b0
mov rax, qword [0x1400d3990]
test rax, rax
je 0x1400065bb
dec dword [rax + 0xf8]
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 + 0x5ea0]
jl 0x140006590
mov rbx, qword [rdi + 0x5f30]
movsxd rsi, dword [rdi + 0x5f28]
shl rsi, 5
add rsi, rbx
cmp rbx, rsi
je 0x14000660b
nop dword [rax]
cmp dword [rbx + 4], 6
jne 0x140006602
mov rax, qword [rbx + 0x10]
mov rdx, rbx
mov rcx, rdi
call rax
add rbx, 0x20
cmp rbx, rsi
jne 0x1400065f0
mov esi, r12d
cmp dword [rdi + 0x3fb8], r12d
jle 0x140006661
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x3fc0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140006653
mov rcx, rbx
call fcn.1400073c0
mov rax, qword [0x1400d3990]
test rax, rax
je 0x14000664a
dec dword [rax + 0xf8]
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 + 0x3fb8]
jl 0x140006620
mov rcx, qword [rdi + 0x3fc0]
test rcx, rcx
je 0x140006693
mov qword [rdi + 0x3fb8], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006686
dec dword [rax + 0xf8]
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 0x1400066c5
mov qword [rdi + 0x3fc8], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x1400066b8
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fd0], r12
mov rcx, qword [rdi + 0x3fe0]
test rcx, rcx
je 0x1400066f7
mov qword [rdi + 0x3fd8], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x1400066ea
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fe0], r12
mov qword [rdi + 0x4018], r12
mov rcx, qword [rdi + 0x3ff0]
test rcx, rcx
je 0x140006730
mov qword [rdi + 0x3fe8], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006723
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ff0], r12
mov rcx, qword [rdi + 0x4000]
test rcx, rcx
je 0x140006762
mov qword [rdi + 0x3ff8], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006755
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4000], r12
mov qword [rdi + 0x4aa0], r12
mov qword [rdi + 0x4028], r12
mov qword [rdi + 0x4020], r12
mov qword [rdi + 0x40b0], r12
mov qword [rdi + 0x4098], r12
mov qword [rdi + 0x4030], r12
lea rcx, [rdi + 0x4750]
call fcn.140001220
mov rcx, qword [rdi + 0x4998]
test rcx, rcx
je 0x1400067ca
mov qword [rdi + 0x4990], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x1400067bd
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4998], r12
mov rcx, qword [rdi + 0x49a8]
test rcx, rcx
je 0x1400067fc
mov qword [rdi + 0x49a0], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x1400067ef
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49a8], r12
mov rcx, qword [rdi + 0x49b8]
test rcx, rcx
je 0x14000682e
mov qword [rdi + 0x49b0], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006821
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49b8], r12
mov rcx, qword [rdi + 0x49f8]
test rcx, rcx
je 0x140006860
mov qword [rdi + 0x49f0], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006853
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49f8], r12
mov rcx, qword [rdi + 0x4a08]
test rcx, rcx
je 0x140006892
mov qword [rdi + 0x4a00], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006885
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a08], r12
mov rcx, qword [rdi + 0x4a18]
test rcx, rcx
je 0x1400068c4
mov qword [rdi + 0x4a10], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x1400068b7
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a18], r12
mov qword [rdi + 0x4a50], r12
mov qword [rdi + 0x4a48], r12
mov qword [rdi + 0x4a40], r12
mov ebx, r12d
cmp dword [rdi + 0x4a28], r12d
jle 0x14000690e
mov rsi, r12
nop dword [rax + rax]
mov rcx, qword [rdi + 0x4a30]
mov rcx, qword [rcx + rsi]
call fcn.140029a30
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x4a28]
jl 0x1400068f0
mov rcx, qword [rdi + 0x4a30]
test rcx, rcx
je 0x140006940
mov qword [rdi + 0x4a28], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006933
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a30], r12
lea rcx, [rdi + 0x4de0]
call fcn.140028650
mov rcx, qword [rdi + 0x4e10]
test rcx, rcx
je 0x14000697e
mov qword [rdi + 0x4e08], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006971
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e10], r12
mov rcx, qword [rdi + 0x4e20]
test rcx, rcx
je 0x1400069b0
mov qword [rdi + 0x4e18], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x1400069a3
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e20], r12
mov ebx, r12d
cmp dword [rdi + 0x4d60], r12d
jle 0x1400069f8
mov rsi, r12
nop
mov rax, qword [rdi + 0x4d68]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1400069ea
mov rax, qword [0x1400d3990]
test rax, rax
je 0x1400069e3
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4d60]
jl 0x1400069c0
mov rcx, qword [rdi + 0x4d68]
test rcx, rcx
je 0x140006a2a
mov qword [rdi + 0x4d60], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006a1d
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d68], r12
lea rcx, [rdi + 0x4d90]
call fcn.1400287c0
mov esi, r12d
cmp dword [rdi + 0x4d80], r12d
jle 0x140006a95
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4d88]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140035060
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140006a87
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006a80
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4d80]
jl 0x140006a50
mov rcx, qword [rdi + 0x4d88]
test rcx, rcx
je 0x140006ac7
mov qword [rdi + 0x4d80], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006aba
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d88], r12
mov rcx, qword [rdi + 0x4dd0]
test rcx, rcx
je 0x140006af9
mov qword [rdi + 0x4dc8], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006aec
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4dd0], r12
mov rcx, qword [rdi + 0x5df8]
test rcx, rcx
je 0x140006b2b
mov qword [rdi + 0x5df0], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006b1e
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5df8], r12
mov rcx, qword [rdi + 0x5e08]
test rcx, rcx
je 0x140006b5d
mov qword [rdi + 0x5e00], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006b50
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e08], r12
mov rcx, qword [rdi + 0x4e70]
test rcx, rcx
je 0x140006b8f
mov qword [rdi + 0x4e68], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006b82
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e70], r12
mov rcx, qword [rdi + 0x4e80]
test rcx, rcx
je 0x140006bc1
mov qword [rdi + 0x4e78], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006bb4
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e80], r12
mov rcx, qword [rdi + 0x4e90]
test rcx, rcx
je 0x140006bf3
mov qword [rdi + 0x4e88], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006be6
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e90], r12
mov dword [rdi + 0x5ce0], r12d
mov rcx, qword [rdi + 0x5cf0]
test rcx, rcx
je 0x140006c2c
mov qword [rdi + 0x5ce8], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006c1f
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5cf0], r12
mov rcx, qword [rdi + 0x5f10]
test rcx, rcx
je 0x140006c5e
mov qword [rdi + 0x5f08], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006c51
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5f10], r12
mov rcx, qword [rdi + 0x5f00]
test rcx, rcx
je 0x140006c90
mov qword [rdi + 0x5ef8], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006c83
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5f00], r12
cmp qword [rdi + 0x5f98], 0
je 0x140006cc1
mov rbx, qword [rdi + 0x5f98]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140006cba
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5f98], r12
mov rcx, qword [rdi + 0x5fa8]
test rcx, rcx
je 0x140006cf3
mov qword [rdi + 0x5fa0], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006ce6
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5fa8], r12
mov rcx, qword [rdi + 0x5fe0]
test rcx, rcx
je 0x140006d25
mov qword [rdi + 0x5fd8], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006d18
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5fe0], r12
mov rcx, qword [rdi + 0x5ff0]
test rcx, rcx
je 0x140006d57
mov qword [rdi + 0x5fe8], r12
mov rax, qword [0x1400d3990]
test rax, rax
je 0x140006d4a
dec dword [rax + 0xf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ff0], r12
mov dword [rdi + 0x5ff8], 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