Function at 0x1400023e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push r12
lea rbp, [rsp - 0x868]
sub rsp, 0x968
lea r9, [0x14028e630]
mov rbx, rdx
sub r9, rcx
mov r12d, 0x65
mov r8, rcx
nop
movzx eax, byte [r8]
mov byte [r9 + r8], al
lea r8, [r8 + 1]
test al, al
jne 0x140002410
movdqa xmm0, xmmword [0x1401f5e20]
lea rdx, [rsp + 0x40]
movdqa xmm1, xmmword [str.91_2022__Penzar_Copyright__c__19MDBSELMODEL.INF]
sub rdx, rcx
movdqa xmmword [str.Copyright__c__1991_2022__Penzar_Development], xmm0
movdqa xmmword [0x140286010], xmm1
mov dword [0x140286020], 0x65766544
mov dword [0x140286024], 0x6d706f6c
mov word [0x140286028], 0x6e65
mov byte [0x14028602a], 0x74
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140002470
lea rcx, [rsp + 0x40]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140002486
mov eax, dword [0x1401f5c88]
lea rdx, [0x1401f5c30]
movsd xmm0, qword [str.TOPSPICE.DLL]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
movzx eax, byte [0x1401f5c8c]
mov byte [rcx + 0xc], al
lea rcx, [rsp + 0x40]
call fcn.1401c4c08
mov rsi, rax
test rax, rax
jne 0x1400024e8
mov r8, rbx
lea rdx, str._s:_cannot_load_TOPSPICE.DLL_file._nInstallation_invalid_or_corrupted._nPlease_reinstall_software.
xor ecx, ecx
call fcn.140002d80
xor eax, eax
add rsp, 0x968
pop r12
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0x960], rdi
lea rcx, [rbp + 0x8a0]
mov edx, 4
mov qword [rsp + 0x958], r13
mov qword [rsp + 0x950], r14
mov r9, rsi
mov qword [rsp + 0x948], r15
lea r8d, [rdx - 3]
call fcn.1401c4e74
xor ebx, ebx
cmp rax, 1
jb 0x140002781
cmp dword [rbp + 0x8a0], 0x8bd03835
jne 0x140002781
mov r9, rsi
lea edx, [rbx + 4]
lea r8d, [rbx + 1]
lea rcx, [rbp + 0x890]
lea r12d, [rbx + 0x66]
call fcn.1401c4e74
cmp rax, 1
jb 0x140002781
mov edi, ebx
cmp dword [rbp + 0x890], ebx
jle 0x14000258a
nop word [rax + rax]
mov rcx, rsi
call fcn.140002d10
test eax, eax
je 0x140002777
inc edi
cmp edi, dword [rbp + 0x890]
jl 0x140002570
mov r12d, 0x67
lea rcx, [rbp + 0x8a0]
mov r9, rsi
lea edx, [r12 - 0x63]
lea r8d, [r12 - 0x66]
call fcn.1401c4e74
cmp rax, 1
jb 0x140002781
mov edi, dword [rbp + 0x8a0]
lea rdx, [rsp + 0x40]
mov r12d, 0x68
mov rcx, rsi
lea r8d, [r12 - 0x28]
call fcn.140002c10
test eax, eax
je 0x140002781
mov edx, edi
lea rcx, [rsp + 0x40]
mov r12d, 0x69
call fcn.140002e20
test eax, eax
jne 0x140002781
mov r14, 0xffffffffffffffff
lea r12d, [rax + 0x6a]
mov r15, r14
lea r11, str.Copyright__c__1991_2022__Penzar_Development
mov r13d, ebx
nop dword [rax + rax]
inc r15
cmp byte [r11 + r15], bl
jne 0x140002610
lea rax, [rsp + 0x40]
nop
inc r14
cmp byte [rax + r14], bl
jne 0x140002620
cmp r15d, 0x2b
jne 0x140002634
cmp r14d, r15d
je 0x14000263a
mov r12d, 0xce
cmp r14d, r15d
mov ecx, 0x2b
mov eax, r14d
mov r8d, ebx
cmovge eax, r15d
cmp eax, ecx
cmovg eax, ecx
movsxd r10, eax
test eax, eax
jle 0x1400026a1
mov rcx, rbx
mov rdx, rbx
nop
movsx eax, byte [rsp + rcx + 0x40]
movsx r9d, byte [rcx + r11]
cmp al, r9b
je 0x14000268d
inc r13d
mov dword [rbp + rdx + 0x240], eax
mov dword [rbp + rdx + 0x140], r9d
mov dword [rbp + rdx + 0x340], r8d
add rdx, 4
inc r8d
inc rcx
cmp rcx, r10
jl 0x140002660
test r13d, r13d
jne 0x140002796
mov r12d, 0x6b
mov edi, ebx
cmp dword [rbp + 0x890], ebx
jle 0x1400026cb
mov rcx, rsi
call fcn.140002d10
test eax, eax
je 0x140002777
inc edi
cmp edi, dword [rbp + 0x890]
jl 0x1400026b1
mov r12d, 0x6c
lea rcx, [rbp + 0x440]
mov r9, rsi
lea edx, [r12 - 0x6b]
lea r8d, [r12 - 0x2c]
call fcn.1401c4e74
cmp rax, 1
jb 0x140002796
lea rax, [rsp + 0x40]
mov r12d, VarBstrFromDisp
lea r8, [rbp + 0x440]
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140002723
inc rax
test ecx, ecx
jne 0x140002710
test edx, edx
jne 0x140002796
lea r12d, [rdx + 0x6e]
mov edi, ebx
cmp dword [rbp + 0x890], ebx
jle 0x14000274b
mov rcx, rsi
call fcn.140002d10
test eax, eax
je 0x140002796
inc edi
cmp edi, dword [rbp + 0x890]
jl 0x140002735
mov rcx, rsi
call fcn.1401c4978
movsd xmm0, qword [0x1401f5e00]
mov eax, 1
movsd qword [0x14028e530], xmm0
mov dword [0x14028e538], 1
jmp 0x1400028d0
mov rcx, rsi
call fcn.1401c4978
jmp 0x1400027ad
mov r13d, dword [rbp + 0x890]
mov r15d, dword [rbp + 0x890]
mov r14d, dword [rbp + 0x890]
mov rcx, rsi
call fcn.1401c4978
cmp r12d, 0x6a
je 0x1400027ca
cmp r12d, 0xce
je 0x1400027ca
mov r8, qword [rbp + 0x898]
lea rdx, str._s:_invalid_or_corrupted_TOPSPICE.DLL_file._Code__d_nPlease_reinstall_software.
mov r9d, r12d
xor ecx, ecx
call fcn.140002d80
jmp 0x1400028ce
mov r8, qword [rbp + 0x898]
lea rdx, str._s:_invalid_or_corrupted_TOPSPICE.DLL_file._Code__d_nSegment__d__d__d:_n
mov dword [rsp + 0x30], r13d
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], r14d
mov r9d, r12d
mov dword [rsp + 0x20], r15d
call fcn.140002fc0
movsxd rdi, r13d
test r13d, r13d
jle 0x140002868
nop dword [rax]
mov eax, dword [rbp + rbx*4 + 0x140]
lea rdx, str.H_02d_03d_03d
mov r9d, dword [rbp + rbx*4 + 0x240]
lea rcx, [rbp + 0x640]
mov r8d, dword [rbp + rbx*4 + 0x340]
mov dword [rsp + 0x20], eax
call fcn.140002fc0
lea rcx, [rsp + 0x40]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140002836
lea r8, [rbp + 0x640]
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140002850
inc rbx
cmp rbx, rdi
jl 0x140002800
lea rcx, [rsp + 0x40]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140002870
movzx eax, word [0x1401f5d58]
mov word [rcx], ax
movzx eax, byte [0x1401f5d5a]
mov byte [rcx + 2], al
lea rcx, [rsp + 0x40]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140002896
movups xmm0, xmmword [str.Please_reinstall_software]
lea rdx, [rsp + 0x40]
movzx eax, word [0x1401f5d78]
movsd xmm1, qword [0x1401f5d70]
movups xmmword [rcx], xmm0
movsd qword [rcx + 0x10], xmm1
mov word [rcx + 0x18], ax
xor ecx, ecx
call fcn.140002d80
xor eax, eax
mov r14, qword [rsp + 0x950]
mov r13, qword [rsp + 0x958]
mov rdi, qword [rsp + 0x960]
mov r15, qword [rsp + 0x948]
add rsp, 0x968
pop r12
pop rsi
pop rbx
pop rbp
ret