Function at 0x140006850
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 [0x1400f1e18]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x1400068ac
cmp byte [rdi + 1], 0
je 0x1400068ac
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x1400068ac
mov rcx, rbx
call fcn.1400371b0
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x1400068a3
dec dword [rax + 0xf4]
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 0x1400068e5
mov qword [rdi + 0x3d88], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x1400068d8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3d90], r12
cmp byte [rdi], r12b
je 0x140007141
cmp byte [rdi + 0x5e08], r12b
je 0x140006956
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140006956
mov rax, qword [0x1400f1e18]
mov dword [rax + 0x5e0c], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14001cd60
mov rsi, rax
lea rdx, [0x1400d4584]
mov rcx, rbx
call fcn.1400038b0
mov rbx, rax
test rax, rax
je 0x140006956
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 [0x1400f1e18]
mov ebx, r12d
cmp dword [rbp + 0x4a10], r12d
jle 0x14000698e
mov rsi, r12
nop dword [rax]
mov rcx, qword [rbp + 0x4a18]
mov rcx, qword [rsi + rcx]
call fcn.14001f800
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rbp + 0x4a10]
jl 0x140006970
mov esi, r12d
cmp dword [rdi + 0x5dc8], r12d
jle 0x1400069e2
mov rbp, r12
nop dword [rax]
mov rax, qword [rdi + 0x5dd0]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x1400069d4
mov rcx, rbx
call fcn.140021380
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x1400069cb
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 + 0x5dc8]
jl 0x1400069a0
mov ebx, r12d
cmp dword [rdi + 0x5e50], r12d
jle 0x140006a21
mov rsi, r12
mov rcx, qword [rdi + 0x5e58]
cmp dword [rsi + rcx + 4], 6
jne 0x140006a13
mov rax, qword [rsi + rcx + 0x10]
movsxd rdx, ebx
shl rdx, 5
add rdx, rcx
mov rcx, rdi
call rax
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x5e50]
jl 0x1400069f1
mov esi, r12d
cmp dword [rdi + 0x3fb8], r12d
jle 0x140006a71
mov r14, r12
mov rax, qword [rdi + 0x3fc0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140006a63
mov rcx, rbx
call fcn.140007790
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006a5a
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 + 0x3fb8]
jl 0x140006a30
mov rcx, qword [rdi + 0x3fc0]
test rcx, rcx
je 0x140006aa3
mov qword [rdi + 0x3fb8], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006a96
dec dword [rax + 0xf4]
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 0x140006ad5
mov qword [rdi + 0x3fc8], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006ac8
dec dword [rax + 0xf4]
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 0x140006b07
mov qword [rdi + 0x3fd8], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006afa
dec dword [rax + 0xf4]
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 0x140006b40
mov qword [rdi + 0x3fe8], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006b33
dec dword [rax + 0xf4]
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 0x140006b72
mov qword [rdi + 0x3ff8], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006b65
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4000], r12
mov qword [rdi + 0x4a88], 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.1400018f0
mov rcx, qword [rdi + 0x4990]
test rcx, rcx
je 0x140006bda
mov qword [rdi + 0x4988], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006bcd
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4990], r12
mov rcx, qword [rdi + 0x49a0]
test rcx, rcx
je 0x140006c0c
mov qword [rdi + 0x4998], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006bff
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49a0], r12
mov rcx, qword [rdi + 0x49b0]
test rcx, rcx
je 0x140006c3e
mov qword [rdi + 0x49a8], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006c31
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49b0], r12
mov rcx, qword [rdi + 0x49f0]
test rcx, rcx
je 0x140006c70
mov qword [rdi + 0x49e8], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006c63
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49f0], r12
mov rcx, qword [rdi + 0x4a00]
test rcx, rcx
je 0x140006ca2
mov qword [rdi + 0x49f8], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006c95
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a00], r12
mov qword [rdi + 0x4a38], r12
mov qword [rdi + 0x4a30], r12
mov qword [rdi + 0x4a28], r12
mov ebx, r12d
cmp dword [rdi + 0x4a10], r12d
jle 0x140006cee
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x4a18]
mov rcx, qword [rsi + rcx]
call fcn.14002b230
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x4a10]
jl 0x140006cd0
mov rcx, qword [rdi + 0x4a18]
test rcx, rcx
je 0x140006d20
mov qword [rdi + 0x4a10], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006d13
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a18], r12
lea rcx, [rdi + 0x4d70]
call fcn.140029d50
mov rcx, qword [rdi + 0x4da0]
test rcx, rcx
je 0x140006d5e
mov qword [rdi + 0x4d98], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006d51
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4da0], r12
mov rcx, qword [rdi + 0x4db0]
test rcx, rcx
je 0x140006d90
mov qword [rdi + 0x4da8], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006d83
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4db0], r12
mov ebx, r12d
cmp dword [rdi + 0x4cf0], r12d
jle 0x140006dd8
mov rsi, r12
nop
mov rax, qword [rdi + 0x4cf8]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140006dca
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006dc3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4cf0]
jl 0x140006da0
mov rcx, qword [rdi + 0x4cf8]
test rcx, rcx
je 0x140006e0a
mov qword [rdi + 0x4cf0], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006dfd
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4cf8], r12
lea rcx, [rdi + 0x4d20]
call fcn.140029ed0
mov esi, r12d
cmp dword [rdi + 0x4d10], r12d
jle 0x140006e75
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4d18]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140036a80
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140006e67
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006e60
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4d10]
jl 0x140006e30
mov rcx, qword [rdi + 0x4d18]
test rcx, rcx
je 0x140006ea7
mov qword [rdi + 0x4d10], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006e9a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d18], r12
mov rcx, qword [rdi + 0x4d60]
test rcx, rcx
je 0x140006ed9
mov qword [rdi + 0x4d58], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006ecc
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d60], r12
mov rcx, qword [rdi + 0x5d88]
test rcx, rcx
je 0x140006f0b
mov qword [rdi + 0x5d80], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006efe
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d88], r12
mov rcx, qword [rdi + 0x5d98]
test rcx, rcx
je 0x140006f3d
mov qword [rdi + 0x5d90], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006f30
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d98], r12
mov rcx, qword [rdi + 0x4e00]
test rcx, rcx
je 0x140006f6f
mov qword [rdi + 0x4df8], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006f62
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e00], r12
mov rcx, qword [rdi + 0x4e10]
test rcx, rcx
je 0x140006fa1
mov qword [rdi + 0x4e08], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006f94
dec dword [rax + 0xf4]
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 0x140006fd3
mov qword [rdi + 0x4e18], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006fc6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e20], r12
mov dword [rdi + 0x5c70], r12d
mov rcx, qword [rdi + 0x5c80]
test rcx, rcx
je 0x14000700c
mov qword [rdi + 0x5c78], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140006fff
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c80], r12
mov rcx, qword [rdi + 0x5e38]
test rcx, rcx
je 0x14000703e
mov qword [rdi + 0x5e30], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140007031
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e38], r12
mov rcx, qword [rdi + 0x5e28]
test rcx, rcx
je 0x140007070
mov qword [rdi + 0x5e20], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x140007063
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e28], r12
cmp qword [rdi + 0x5eb8], 0
je 0x1400070a1
mov rbx, qword [rdi + 0x5eb8]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000709a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5eb8], r12
mov rcx, qword [rdi + 0x5ec8]
test rcx, rcx
je 0x1400070d3
mov qword [rdi + 0x5ec0], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x1400070c6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ec8], r12
mov rcx, qword [rdi + 0x5f00]
test rcx, rcx
je 0x140007105
mov qword [rdi + 0x5ef8], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x1400070f8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5f00], r12
mov rcx, qword [rdi + 0x5f10]
test rcx, rcx
je 0x140007137
mov qword [rdi + 0x5f08], r12
mov rax, qword [0x1400f1e18]
test rax, rax
je 0x14000712a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5f10], r12
mov dword [rdi + 0x5f18], 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