Function at 0x1400d56b0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x140173040]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
xor r15d, r15d
cmp byte [0x14017cebc], 1
jne 0x1400d5700
movzx eax, byte [0x14017cebd]
jmp 0x1400d5c30
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x60]
call fcn.14012ce40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, 0x3ff
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400d5c20
lea rcx, [rbp - 0x60]
mov rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x1400d5742
dec eax
movsxd rcx, eax
test eax, eax
jle 0x1400d5771
cmp word [rbp + rcx*2 - 0x60], 0x5c
je 0x1400d5769
dec eax
dec rcx
test rcx, rcx
jg 0x1400d5755
jmp 0x1400d5771
cdqe
mov word [rbp + rax*2 - 0x60], r15w
cmp word [rbp - 0x60], r15w
je 0x1400d5c20
mov qword [rsp + 0x78], r15
lea rcx, [rsp + 0x78]
call fcn.1400055e0
nop
lea r9, str.prolasso.key
lea r8, [rbp - 0x60]
lea rdx, [0x140146d78]
lea rcx, [rsp + 0x78]
call fcn.140005d70
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d5c04
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
test rax, rax
je 0x1400d5c04
mov dword [rbp - 0x68], r15d
lea rdx, [rbp - 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, 2
mul rdi
cmovo rax, rsi
mov rcx, rax
call fcn.1400ff0c4
mov r14, rax
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.14012ce40
mov dword [rbp - 0x80], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x80]
mov r8d, edi
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x1400d5bed
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r15
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.14003f460
nop
mov edx, 2
mov rcx, r14
call fcn.1400ff054
mov r14, r15
mov qword [rsp + 0x50], r15
mov rcx, qword [rsp + 0x60]
cmp dword [rcx - 0x10], r14d
jge 0x1400d588d
mov ebx, esi
jmp 0x1400d58b0
lea rdx, str._customer_
call fcn.140100b40
mov rbx, rax
mov rcx, qword [rsp + 0x60]
test rax, rax
jne 0x1400d58aa
mov ebx, esi
jmp 0x1400d58b0
sub rbx, rcx
sar rbx, 1
add ebx, 0xa
cmp dword [rcx - 0x10], r14d
jge 0x1400d58bd
mov eax, esi
jmp 0x1400d58da
lea rdx, str.__customer_
call fcn.140100b40
test rax, rax
jne 0x1400d58d2
mov eax, esi
jmp 0x1400d58da
sub rax, qword [rsp + 0x60]
sar rax, 1
mov qword [rsp + 0x70], r15
sub eax, ebx
mov r9d, eax
mov r8d, ebx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140040880
nop
mov rax, qword [rsp + 0x70]
cmp dword [rax - 0x10], 0
je 0x1400d5bb5
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14003f4f0
mov rdx, qword [rax]
sub rdx, 0x18
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400d5931
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, 1
call fcn.1400ff088
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x78], r15
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14003f4f0
mov r8, rax
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x70]
call fcn.1400d55d0
nop
mov rcx, qword [rsp + 0x60]
cmp dword [rcx - 0x10], 0
jge 0x1400d5976
mov ebx, esi
jmp 0x1400d5999
lea rdx, str._signature_
call fcn.140100b40
mov rbx, rax
mov rcx, qword [rsp + 0x60]
test rax, rax
jne 0x1400d5993
mov ebx, esi
jmp 0x1400d5999
sub rbx, rcx
sar rbx, 1
add ebx, 0xb
cmp dword [rcx - 0x10], 0
jge 0x1400d59a6
mov eax, esi
jmp 0x1400d59c3
lea rdx, str.__signature_
call fcn.140100b40
test rax, rax
jne 0x1400d59bb
mov eax, esi
jmp 0x1400d59c3
sub rax, qword [rsp + 0x60]
sar rax, 1
test ebx, ebx
js 0x1400d5b84
test eax, eax
js 0x1400d5b84
mov qword [rsp + 0x68], r15
sub eax, ebx
mov r9d, eax
mov r8d, ebx
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call fcn.140040880
nop
mov rdx, qword [rsp + 0x68]
mov r12d, dword [rdx - 0x10]
mov ebx, r15d
test r12d, r12d
jle 0x1400d5a90
test ebx, ebx
js 0x1400d5c60
movsxd rdi, dword [rdx - 0x10]
cmp ebx, edi
jg 0x1400d5c60
movsxd rax, ebx
lea r14, [rax + rax]
movzx r15d, word [r14 + rdx]
jge 0x1400d5c60
cmp dword [rdx - 8], 1
jle 0x1400d5a43
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.140005760
mov rdx, qword [rsp + 0x68]
movzx eax, bx
mov ecx, 0x2470
sub ax, cx
xor ax, r15w
mov word [r14 + rdx], ax
test edi, edi
js 0x1400d5c60
mov rax, qword [rsp + 0x68]
cmp edi, dword [rax - 0xc]
jg 0x1400d5c60
mov dword [rax - 0x10], edi
mov rax, qword [rsp + 0x68]
xor edx, edx
mov word [rax + rdi*2], dx
inc ebx
mov rdx, qword [rsp + 0x68]
cmp ebx, r12d
jl 0x1400d5a05
mov r14, qword [rsp + 0x50]
test rdx, rdx
je 0x1400d5c6b
mov rcx, qword [rbp - 0x78]
call fcn.1401103e4
test eax, eax
jne 0x1400d5b65
mov byte [0x14017cebc], 1
mov byte [0x14017cebd], 1
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400d5ad7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400d5af5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov edx, 1
mov rcx, qword [rbp - 0x70]
call fcn.1400ff054
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400d5b23
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400d5b42
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x1400d5b5e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x1400d5c30
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400d5b84
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400d5ba2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov edx, 1
mov rcx, qword [rbp - 0x70]
call fcn.1400ff054
mov rax, qword [rsp + 0x70]
lea rdx, [rax - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400d5bcf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400d5bed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 2
mov rcx, r14
call fcn.1400ff054
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x1400d5c20
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [0x14017cebc], 1
mov byte [0x14017cebd], 0
xor al, al
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400ff350
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80070057
call fcn.140002b00
int3
mov ecx, 0x80004005
call fcn.140002b00
int3