Function at 0x140005b60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov r13d, edx
mov r12, rcx
cmp edx, 0xffffffff
jne 0x140005b93
xor eax, eax
jmp 0x140006076
mov rcx, qword [rcx + 0x48]
cmp qword [rcx], 0
je 0x140005bcc
mov rcx, qword [rcx]
mov rdx, qword [r12 + 0x60]
movsxd rax, dword [rdx]
add rax, rcx
cmp rcx, rax
jae 0x140005bcc
dec dword [rdx]
mov rcx, qword [r12 + 0x48]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov byte [rdx], r13b
mov eax, r13d
jmp 0x140006076
mov rdx, qword [r12 + 0x88]
test rdx, rdx
jne 0x140005be1
or eax, 0xffffffff
jmp 0x140006076
cmp qword [r12 + 0x70], 0
jne 0x140005c03
movsx ecx, r13b
call fcn.14003aa28
or rbp, 0xffffffffffffffff
cmp eax, ebp
cmovne ebp, r13d
mov eax, ebp
jmp 0x140006076
mov byte [rsp + 0xb8], r13b
mov edx, SafeArrayGetDim
mov qword [rsp + 0x68], rdx
mov byte [rsp + 0x50], 0
xor ecx, ecx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x60], 8
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
or rbp, 0xffffffffffffffff
xor r15d, r15d
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140005c60
mov rdi, rcx
test rcx, rcx
je 0x140005c8c
jmp 0x140005c65
lea rdi, [rsp + 0x50]
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
cmp rax, rdi
ja 0x140005c8c
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
add rax, r8
cmp rdi, rax
jbe 0x140005ca0
call fcn.14003a7bc
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
cmp rax, 0xfffffffffffffffc
je 0x140005cd4
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
add rax, r8
cmp rdi, rax
jb 0x140005cd4
call fcn.14003a7bc
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov rsi, r8
cmp rdx, 0x10
jb 0x140005ce7
mov rbx, rcx
test rcx, rcx
je 0x140005d13
jmp 0x140005cec
lea rbx, [rsp + 0x50]
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
cmp rax, rbx
ja 0x140005d13
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
add rax, r8
cmp rbx, rax
jbe 0x140005d27
call fcn.14003a7bc
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
cmp rax, 0xfffffffffffffffc
je 0x140005d4c
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
add rax, r8
cmp rbx, rax
jb 0x140005d4c
call fcn.14003a7bc
mov rcx, qword [r12 + 0x70]
mov r10, qword [rcx]
lea rax, [rdi + rsi]
lea rdx, [rsp + 0xc0]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb9]
lea r8, [rsp + 0xb8]
lea rdx, [r12 + 0x7c]
call qword [r10 + 0x28]
test eax, eax
js 0x140006062
cmp eax, 1
jg 0x14000602b
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140005dc0
mov rbx, rcx
test rcx, rcx
je 0x140005df1
jmp 0x140005dc5
lea rbx, [rsp + 0x50]
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
cmp rax, rbx
ja 0x140005df1
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
mov r8, qword [rsp + 0x60]
add rax, r8
cmp rbx, rax
jbe 0x140005e05
call fcn.14003a7bc
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
cmp rax, 0xfffffffffffffffc
je 0x140005e39
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
add rax, r8
cmp rbx, rax
jb 0x140005e39
call fcn.14003a7bc
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0xc0]
sub rdi, rbx
je 0x140005eef
cmp rdx, 0x10
jb 0x140005e5a
mov rbx, rcx
test rcx, rcx
je 0x140005e86
jmp 0x140005e5f
lea rbx, [rsp + 0x50]
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
cmp rax, rbx
ja 0x140005e86
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
add rax, r8
cmp rbx, rax
jbe 0x140005e9a
call fcn.14003a7bc
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
cmp rax, 0xfffffffffffffffc
je 0x140005ebf
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
add rax, r8
cmp rbx, rax
jb 0x140005ebf
call fcn.14003a7bc
mov r9, qword [r12 + 0x88]
mov r8, rdi
mov edx, 1
mov rcx, rbx
call fcn.14003b1fc
cmp rdi, rax
jne 0x140005ff6
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov byte [r12 + 0x79], 1
lea rax, [rsp + 0xb8]
cmp qword [rsp + 0xc8], rax
jne 0x14000601b
test rdi, rdi
jne 0x140005c50
cmp r8, 0x20
jae 0x14000600c
mov rax, rbp
sub rax, r8
cmp rax, 8
ja 0x140005f3e
call fcn.1400523a8
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
jbe 0x140005f5c
call fcn.1400523a8
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
cmp rdx, rbx
jae 0x140005f7f
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140003820
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
jmp 0x140005fad
test rbx, rbx
jne 0x140005fad
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax], r15b
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
jmp 0x140005c50
test rbx, rbx
je 0x140005c50
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
xor ecx, ecx
mov qword [r8 + rax], rcx
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rax, qword [rsp + 0x50]
mov byte [rbx + rax], cl
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
jmp 0x140005c50
cmp qword [rsp + 0x68], 0x10
jb 0x140006008
mov rcx, qword [rsp + 0x50]
call fcn.140012310
mov eax, ebp
jmp 0x140006076
cmp rdx, 0x10
jb 0x140006017
call fcn.140012310
mov eax, ebp
jmp 0x140006076
cmp rdx, 0x10
jb 0x140006026
call fcn.140012310
mov eax, r13d
jmp 0x140006076
cmp eax, 3
jne 0x140006062
movsx ecx, byte [rsp + 0xb8]
mov rdx, qword [r12 + 0x88]
call fcn.14003aa28
cmp eax, 0xffffffff
cmovne ebp, r13d
cmp qword [rsp + 0x68], 0x10
jb 0x14000605e
mov rcx, qword [rsp + 0x50]
call fcn.140012310
mov eax, ebp
jmp 0x140006076
cmp qword [rsp + 0x68], 0x10
jb 0x140006074
mov rcx, qword [rsp + 0x50]
call fcn.140012310
mov eax, ebp
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret