Function at 0x140069e40
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
cmp edx, 0xffffffff
je 0x14006a01d
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140069ed2
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x140069ed2
dec ecx
mov dword [rax], ecx
nop word cs:[rax + rax]
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
cmp dword [0x1400cd708], 0xa
jl 0x14006a338
mov eax, dword [0x1400cd70c]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x14006a338
mov rax, qword [rdi + 0x58]
dec dword [rax]
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
mov rax, qword [rdi + 0x58]
dec dword [rax]
jmp 0x140069e80
cmp qword [rdi + 0x80], 0
je 0x14006a0c5
lea rax, [rdi + 0x70]
nop word cs:[rax + rax]
mov rcx, qword [rdi + 0x18]
cmp qword [rcx], rax
jne 0x140069f70
jmp 0x140069f28
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x18]
mov r8, qword [rdi + 0x88]
mov qword [rdx], r8
mov rdx, qword [rdi + 0x38]
mov qword [rdx], r8
sub ecx, r8d
mov rdx, qword [rdi + 0x50]
mov dword [rdx], ecx
mov rcx, qword [rdi + 0x18]
mov edx, dword [rdi + 0x90]
mov r8, qword [rdi + 0x88]
mov qword [rcx], r8
mov rcx, qword [rdi + 0x38]
mov qword [rcx], r8
sub edx, r8d
mov rcx, qword [rdi + 0x50]
mov dword [rcx], edx
cmp dword [0x1400cd6d4], 0xa
jl 0x140069f70
mov ecx, dword [0x1400cd6d0]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
jne 0x140069f00
nop word cs:[rax + rax]
cmp dword [0x1400cd708], 0xa
jl 0x14006a024
mov ecx, dword [0x1400cd70c]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x14006a024
mov rcx, qword [rdi + 0x18]
cmp qword [rcx], rax
jne 0x140069ef0
jmp 0x140069fd8
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x18]
mov r8, qword [rdi + 0x88]
mov qword [rdx], r8
mov rdx, qword [rdi + 0x38]
mov qword [rdx], r8
sub ecx, r8d
mov rdx, qword [rdi + 0x50]
mov dword [rdx], ecx
mov rcx, qword [rdi + 0x18]
mov edx, dword [rdi + 0x90]
mov r8, qword [rdi + 0x88]
mov qword [rcx], r8
mov rcx, qword [rdi + 0x38]
mov qword [rcx], r8
sub edx, r8d
mov rcx, qword [rdi + 0x50]
mov dword [rcx], edx
mov edx, dword [0x1400cd6d0]
lea ecx, [rdx + 1]
imul ecx, edx
and ecx, 1
cmp dword [0x1400cd6d4], 0xa
jl 0x140069ef0
test ecx, ecx
jne 0x140069fb0
jmp 0x140069ef0
xor esi, esi
jmp 0x14006a338
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x14006a0cf
mov byte [rsp + 0x4f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x50]
lea rdx, [rdi + 0x74]
mov r10, qword [rcx]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x4f]
mov r8, rbx
call qword [r10 + 0x38]
cmp eax, 2
jae 0x14006a1f2
mov r15, qword [rsp + 0x50]
sub r15, r14
je 0x14006a0b2
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, 0xffffffff
cmp r15, rax
jne 0x14006a336
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x58], rbx
mov eax, 0xffffffff
jmp 0x14006a331
mov esi, 0xffffffff
jmp 0x14006a338
movsx ebx, sil
mov ecx, dword [0x1400cd710]
mov eax, dword [0x1400cd714]
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
nop word cs:[rax + rax]
mov r14, qword [rdi + 0x80]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
cmp eax, 0xa
jl 0x14006a126
test edx, edx
je 0x14006a126
mov ecx, ebx
mov rdx, r14
call r15
mov ecx, dword [0x1400cd710]
mov eax, dword [0x1400cd714]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
test edx, edx
je 0x14006a130
cmp eax, 9
jg 0x14006a152
nop
mov ecx, ebx
mov rdx, r14
call r15
cmp dword [0x1400cd714], 0xa
jl 0x14006a160
mov ecx, dword [0x1400cd710]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x14006a160
mov ecx, ebx
mov rdx, r14
call r15
jmp 0x14006a130
cmp dword [0x1400cd708], 0xa
jl 0x14006a1e7
mov ecx, dword [0x1400cd70c]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x14006a1e7
mov r14, qword [rdi + 0x80]
mov ecx, ebx
mov rdx, r14
call r15
mov ecx, dword [0x1400cd710]
mov eax, dword [0x1400cd714]
cmp eax, 0xa
jl 0x14006a0f0
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x14006a0f0
nop dword [rax]
mov ecx, ebx
mov rdx, r14
call r15
mov ecx, ebx
mov rdx, r14
call r15
mov ecx, dword [0x1400cd710]
mov eax, dword [0x1400cd714]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
cmp eax, 0xa
jl 0x14006a0f0
test edx, edx
jne 0x14006a1b0
jmp 0x14006a0f0
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x14006a338
cmp eax, 3
jne 0x14006a327
mov ecx, dword [0x1400cd710]
mov eax, dword [0x1400cd714]
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
nop
mov rbx, qword [rdi + 0x80]
movsx ebp, byte [rsp + 0x4f]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
cmp eax, 0xa
jl 0x14006a24b
test edx, edx
je 0x14006a24b
mov ecx, ebp
mov rdx, rbx
call r14
mov ecx, dword [0x1400cd710]
mov eax, dword [0x1400cd714]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
test edx, edx
je 0x14006a260
cmp eax, 0xa
jge 0x14006a282
nop word cs:[rax + rax]
mov ecx, ebp
mov rdx, rbx
call r14
cmp dword [0x1400cd714], 0xa
jl 0x14006a290
mov ecx, dword [0x1400cd710]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x14006a290
mov ecx, ebp
mov rdx, rbx
call r14
jmp 0x14006a260
cmp dword [0x1400cd708], 0xa
jl 0x14006a32e
mov ecx, dword [0x1400cd70c]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x14006a32e
mov rbx, qword [rdi + 0x80]
movsx ebp, byte [rsp + 0x4f]
mov ecx, ebp
mov rdx, rbx
call r14
mov ecx, dword [0x1400cd710]
mov eax, dword [0x1400cd714]
cmp eax, 0xa
jl 0x14006a210
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x14006a210
nop word [rax + rax]
mov ecx, ebp
mov rdx, rbx
call r14
mov ecx, ebp
mov rdx, rbx
call r14
mov ecx, dword [0x1400cd710]
mov eax, dword [0x1400cd714]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
cmp eax, 0xa
jl 0x14006a210
test edx, edx
jne 0x14006a2f0
jmp 0x14006a210
mov ecx, 0xffffffff
jmp 0x14006a336
cmp eax, 0xffffffff
cmove esi, eax
mov ecx, esi
mov esi, ecx
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret