Function at 0x14008cda0
Capabilities:
Check if file exists
Get file attributes
Get file size
Link many functions at runtime
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xd0
mov rbx, qword [rbp + 0x77]
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov rsi, r9
mov dword [r9], 0xffffffff
mov r15d, r8d
mov r13d, edx
mov rdi, rcx
test rbx, rbx
je 0x14008cdde
mov byte [rbx], r14b
cmp word [rcx], r14w
jne 0x14008cdeb
xor eax, eax
jmp 0x14008d5ac
mov r8d, 6
mov byte [rsp + 0x41], r14b
lea rdx, [0x1400ee468]
mov byte [rbp + 0x47], r14b
call fcn.1400ad9d8
test eax, eax
je 0x14008ce23
mov r8d, 8
lea rdx, [0x1400ee478]
mov rcx, rdi
call fcn.1400ad9d8
test eax, eax
jne 0x14008ce90
cmp word [rdi + 0xa], 0x3a
jne 0x14008ce37
mov dword [rsi], 1
mov eax, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x14008ce3f
mov dword [rsi], r14d
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
add rdi, rax
mov byte [rsp + 0x41], 1
cmp word [rdi], 0x2a
sete byte [rbp + 0x47]
cmp word [rdi], 0x2a
jne 0x14008ce61
add rdi, 2
test rbx, rbx
je 0x14008ce61
mov byte [rbx], 1
mov rcx, rdi
call fcn.140010ae0
mov rcx, rdi
test al, al
je 0x14008ce7d
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400af464
jmp 0x14008ce82
call fcn.1400aeff4
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14008cde4
mov edx, 0x2e
mov qword [rsp + 0x118], r12
mov rcx, rdi
call fcn.1400a9bfc
mov rbx, rax
test rax, rax
je 0x14008ceb1
add rbx, 2
mov rcx, qword [rsp + 0x48]
mov r12d, dword [rbp + 0x67]
test rcx, rcx
jne 0x14008cf32
cmp r12d, 1
ja 0x14008cf5e
test rbx, rbx
je 0x14008cf32
lea rdx, [0x1400eab40]
mov rcx, rbx
call fcn.1400ab3f0
test eax, eax
je 0x14008cf5e
lea rdx, [0x1400eab48]
mov rcx, rbx
call fcn.1400ab3f0
test eax, eax
je 0x14008cf5e
lea rdx, [0x1400ee490]
mov rcx, rbx
call fcn.1400ab3f0
test eax, eax
je 0x14008cf5e
lea rdx, [0x1400ee498]
mov rcx, rbx
call fcn.1400ab3f0
test eax, eax
je 0x14008cf5e
lea rdx, [0x1400ee4a0]
mov rcx, rbx
call fcn.1400ab3f0
test eax, eax
je 0x14008cf5e
mov rcx, qword [rsp + 0x48]
mov byte [rsp + 0x40], r14b
test rbx, rbx
je 0x14008cfe6
lea rdx, [0x1400eab38]
mov rcx, rbx
call fcn.1400ab3f0
test eax, eax
jne 0x14008cf98
mov dword [rsi], 1
jmp 0x14008cfe1
mov rax, qword [rbp + 0x7f]
mov r9d, r15d
mov r8d, r13d
mov qword [rsp + 0x20], rax
mov edx, r12d
mov byte [rsp + 0x40], 1
mov rcx, rdi
mov dword [rsi], 1
call fcn.14008d5e0
mov qword [rsp + 0x48], rax
mov rcx, rax
cmp rax, 2
jae 0x14008cfe6
xor eax, eax
jmp 0x14008d5a4
lea rdx, [0x1400ee4a8]
mov rcx, rbx
call fcn.1400ab3f0
test eax, eax
je 0x14008cfdb
lea rdx, [0x1400ee4b0]
mov rcx, rbx
call fcn.1400ab3f0
test eax, eax
je 0x14008cfdb
lea rdx, [0x1400ee4b8]
mov rcx, rbx
call fcn.1400ab3f0
mov rcx, qword [rsp + 0x48]
test eax, eax
jne 0x14008cfe6
mov dword [rsi], r14d
jmp 0x14008cfe6
mov dword [rsi], 2
mov rcx, qword [rsp + 0x48]
cmp r13d, 0xffffffff
je 0x14008cff2
cmp r15d, 0xffffffff
jne 0x14008cffc
test r13d, r13d
je 0x14008d00e
test r15d, r15d
je 0x14008d00e
cmp r13d, 0xffffffff
je 0x14008d008
cmp r15d, 0xffffffff
jne 0x14008d014
mov byte [rbp + 0x5f], 1
jmp 0x14008d018
mov r15d, r14d
mov r13d, r14d
mov byte [rbp + 0x5f], r14b
movzx r12d, byte [rbp + 0x6f]
mov qword [rbp - 0x79], r14
test r12b, r12b
je 0x14008d047
lea rcx, [0x1400ee4c0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x48]
test rax, rax
movzx r12d, r12b
cmove r12d, r14d
mov qword [rbp - 0x79], rax
test rcx, rcx
jne 0x14008d109
mov r8d, dword [rsi]
cmp r8d, 0xffffffff
jle 0x14008d109
test r12b, r12b
jne 0x14008d109
cmp byte [rbp + 0x5f], r14b
je 0x14008d074
mov r9d, r14d
mov eax, r14d
jmp 0x14008d07a
mov r9d, r13d
mov eax, r15d
mov dword [rsp + 0x28], 0x2010
mov rdx, rdi
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rsp + 0x48], rax
mov rcx, rax
test rax, rax
je 0x14008d0b3
cmp byte [rbp + 0x5f], r14b
jne 0x14008d109
mov eax, dword [rbp + 0x67]
test eax, eax
jne 0x14008d109
mov rax, rcx
jmp 0x14008d5a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008d4f0
mov eax, dword [rbp + 0x67]
test eax, eax
jle 0x14008d104
mov rcx, qword [rbp + 0x7f]
mov r9d, r15d
mov qword [rsp + 0x20], rcx
mov r8d, r13d
mov rcx, rdi
mov edx, eax
call fcn.14008d5e0
mov qword [rsp + 0x48], rax
mov rcx, rax
cmp rax, 2
jb 0x14008d4f0
mov byte [rsp + 0x40], 1
mov dword [rsi], 1
jmp 0x14008d109
mov rcx, qword [rsp + 0x48]
mov qword [rbp - 0x71], r14
test rcx, rcx
jne 0x14008d39f
mov dword [rsi], r14d
test r12b, r12b
jne 0x14008d15c
test rbx, rbx
je 0x14008d15c
lea rdx, [0x1400ee4d0]
mov rcx, rbx
call fcn.1400ab3f0
test eax, eax
je 0x14008d17b
lea rdx, [0x1400ee4d8]
mov rcx, rbx
call fcn.1400ab3f0
test eax, eax
je 0x14008d17b
lea rdx, [0x1400ee4e8]
mov rcx, rbx
call fcn.1400ab3f0
test eax, eax
je 0x14008d17b
mov rbx, qword [rbp - 0x79]
test rbx, rbx
jne 0x14008d2ca
lea rcx, [0x1400ee4c0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
jmp 0x14008d17f
mov rbx, qword [rbp - 0x79]
test rbx, rbx
jne 0x14008d2ca
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14008d4f0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
lea ecx, [rbx + 2]
mov dword [rbp - 0x79], eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
jne 0x14008d1ec
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14008d5a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, r12
test rax, rax
jne 0x14008d213
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x14008d5a4
mov r8d, dword [rbp - 0x79]
lea r9, [rbp - 0x79]
mov rdx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rbp - 0x69]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x14008d203
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x14008d203
lea rax, [rbp - 0x71]
xor r8d, r8d
lea r9, [0x1400c8040]
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov rcx, qword [rbp - 0x71]
test eax, eax
cmovs rcx, r14
mov qword [rbp - 0x71], rcx
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x14008d4f0
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x14008d39f
mov rcx, qword [rbp - 0x71]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x14008d5a4
lea rdx, [0x1400ee4f0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400ee500]
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400ee510]
mov rcx, rbx
mov qword [rbp - 0x29], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400ee530]
mov rcx, rbx
mov qword [rbp - 0x79], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400ee550]
mov rcx, rbx
mov qword [rbp - 0x41], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [rbp - 0x61], 1
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], r14
test r12, r12
je 0x14008d391
xor r8d, r8d
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x31]
call r12
test eax, eax
jne 0x14008d391
lea rdx, [rbp - 0x69]
mov rcx, rdi
call qword [rbp - 0x79]
test eax, eax
jne 0x14008d38a
mov rcx, qword [rbp - 0x69]
lea rdx, [rsp + 0x48]
mov r8d, 0xff000000
call qword [rbp - 0x41]
mov rcx, qword [rsp + 0x48]
test eax, eax
cmovne rcx, r14
mov qword [rsp + 0x48], rcx
mov rcx, qword [rbp - 0x69]
call qword [rbp - 0x39]
mov rcx, qword [rbp - 0x31]
call qword [rbp - 0x29]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x48]
cmp byte [rbp + 0x5f], r14b
je 0x14008d4a1
cmp dword [rsi], r14d
je 0x14008d3c4
lea rdx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x14008d4e5
mov rcx, qword [rbp - 0x11]
lea r8, [rbp - 0x61]
mov edx, SafeArrayAllocDescriptor
call qword [sym.imp.GDI32.dll_GetObjectW]
cmp r15d, 0xffffffff
jne 0x14008d411
mov eax, dword [rbp - 0x5d]
test eax, eax
je 0x14008d447
movd xmm2, dword [rbp - 0x59]
cvtdq2pd xmm2, xmm2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movd xmm1, r13d
divsd xmm2, xmm0
cvtdq2pd xmm1, xmm1
mulsd xmm2, xmm1
addsd xmm2, qword [0x1400eea38]
cvttsd2si r15d, xmm2
jmp 0x14008d447
mov eax, dword [rbp - 0x59]
test eax, eax
je 0x14008d447
movd xmm2, dword [rbp - 0x5d]
cvtdq2pd xmm2, xmm2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movd xmm1, r15d
divsd xmm2, xmm0
cvtdq2pd xmm1, xmm1
mulsd xmm2, xmm1
addsd xmm2, qword [0x1400eea38]
cvttsd2si r13d, xmm2
cmp dword [rsi], r14d
je 0x14008d49c
mov rcx, qword [rbp - 9]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp byte [rsp + 0x40], r14b
jne 0x14008d49c
cmp byte [rsp + 0x41], r14b
jne 0x14008d49c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_DestroyIcon]
mov r8d, dword [rsi]
mov r9d, r13d
mov rdx, rdi
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetDim
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_LoadImageW]
jmp 0x14008d5a4
mov rcx, qword [rsp + 0x48]
cmp qword [rbp - 0x71], r14
je 0x14008d4f7
test r13d, r13d
jne 0x14008d4b7
test r15d, r15d
jne 0x14008d4b7
mov r14d, 4
mov r9d, r15d
mov dword [rsp + 0x20], r14d
mov r8d, r13d
xor edx, edx
call qword [sym.imp.USER32.dll_CopyImage]
mov rcx, qword [rbp - 0x71]
mov rbx, rax
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r14, qword [rbp + 0x77]
mov edi, dword [rbp + 0x67]
movzx r12d, byte [rbp + 0x47]
jmp 0x14008d555
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_DestroyIcon]
xor eax, eax
jmp 0x14008d5a4
movzx r12d, byte [rbp + 0x47]
mov r14, qword [rbp + 0x77]
test r13d, r13d
jne 0x14008d526
test r15d, r15d
jne 0x14008d526
test r12b, r12b
je 0x14008d514
test r14, r14
je 0x14008d526
mov edi, dword [rbp + 0x67]
cmp edi, 1
jl 0x14008d521
cmp dword [rsi], 1
jne 0x14008d529
mov rax, rcx
jmp 0x14008d5a4
mov edi, dword [rbp + 0x67]
test r12b, r12b
je 0x14008d53b
mov rax, r14
neg rax
sbb eax, eax
and eax, 4
jmp 0x14008d540
mov eax, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov edx, dword [rsi]
mov r9d, r15d
mov r8d, r13d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CopyImage]
mov rbx, rax
test edi, edi
jle 0x14008d591
cmp dword [rsi], 0
jne 0x14008d591
lea rcx, [rbp - 0x21]
mov dword [rbp - 0x21], 1
mov qword [rbp - 0x11], rbx
mov qword [rbp - 9], rbx
call qword [sym.imp.USER32.dll_CreateIconIndirect]
mov rdi, rax
test r12b, r12b
jne 0x14008d588
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rbx, rdi
mov dword [rsi], 1
cmp qword [rsp + 0x48], rbx
je 0x14008d5a1
test r14, r14
je 0x14008d5a1
mov byte [r14], 0
mov rax, rbx
mov r12, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret