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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd8
xor edi, edi
mov dword [r9], 0xffffffff
mov r15, r9
mov esi, r8d
mov r14d, edx
mov r12, rcx
mov qword [rbp - 0x71], rdi
cmp word [rcx], di
jne 0x14007ba1b
xor eax, eax
add rsp, 0xd8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x118], rbx
mov edx, 0x2e
mov qword [rsp + 0xd0], r13
call fcn.140097a74
mov rbx, rax
test rax, rax
je 0x14007ba41
add rbx, 2
mov r13d, dword [rbp + 0x77]
cmp r13d, 1
ja 0x14007bb33
test rbx, rbx
je 0x14007bac3
lea rdx, [0x1400d8c48]
mov rcx, rbx
call fcn.140099630
test eax, eax
je 0x14007bb33
lea rdx, [0x1400d8c50]
mov rcx, rbx
call fcn.140099630
test eax, eax
je 0x14007bb33
lea rdx, [0x1400db940]
mov rcx, rbx
call fcn.140099630
test eax, eax
je 0x14007bb33
lea rdx, [0x1400db948]
mov rcx, rbx
call fcn.140099630
test eax, eax
je 0x14007bb33
lea rdx, [0x1400db950]
mov rcx, rbx
call fcn.140099630
test eax, eax
je 0x14007bb33
mov byte [rbp - 0x79], dil
test r13d, r13d
jg 0x14007bb60
test rbx, rbx
je 0x14007bb67
lea rdx, [0x1400d8c40]
mov rcx, rbx
call fcn.140099630
test eax, eax
je 0x14007bb60
lea rdx, [0x1400db958]
mov rcx, rbx
call fcn.140099630
test eax, eax
je 0x14007bb2a
lea rdx, [0x1400db960]
mov rcx, rbx
call fcn.140099630
test eax, eax
je 0x14007bb2a
lea rdx, [0x1400db968]
mov rcx, rbx
call fcn.140099630
test eax, eax
jne 0x14007bb67
mov dword [r15], edi
jmp 0x14007bb67
mov dword [r15], 2
jmp 0x14007bb67
mov r9d, esi
mov byte [rbp - 0x79], 1
mov r8d, r14d
mov dword [r15], 1
mov edx, r13d
mov rcx, r12
call fcn.14007c0b0
mov qword [rbp - 0x71], rax
cmp rax, 2
jae 0x14007bb6b
xor eax, eax
jmp 0x14007c06c
mov dword [r15], 1
mov rax, qword [rbp - 0x71]
cmp r14d, 0xffffffff
je 0x14007bb76
cmp esi, 0xffffffff
jne 0x14007bb7f
test r14d, r14d
je 0x14007bb90
test esi, esi
je 0x14007bb90
cmp r14d, 0xffffffff
je 0x14007bb8a
cmp esi, 0xffffffff
jne 0x14007bb95
mov byte [rbp + 0x6f], 1
jmp 0x14007bb99
mov esi, edi
mov r14d, edi
mov byte [rbp + 0x6f], dil
movzx r13d, byte [rbp + 0x7f]
mov r12, rdi
test r13b, r13b
je 0x14007bbc5
lea rcx, [0x1400db970]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
movzx r13d, r13b
mov r12, rax
mov rax, qword [rbp - 0x71]
cmove r13d, edi
test rax, rax
jne 0x14007bc5f
mov r8d, dword [r15]
cmp r8d, 0xffffffff
jle 0x14007bc5f
test r13b, r13b
jne 0x14007bc5f
cmp byte [rbp + 0x6f], dil
je 0x14007bbed
mov r9d, edi
mov eax, edi
jmp 0x14007bbf2
mov r9d, r14d
mov eax, esi
mov rdx, qword [rbp + 0x57]
xor ecx, ecx
mov dword [rsp + 0x28], 0x2010
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rbp - 0x71], rax
test rax, rax
je 0x14007bc1e
cmp byte [rbp + 0x6f], dil
jne 0x14007bc5f
jmp 0x14007c06c
mov rcx, qword [rbp + 0x57]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007c03f
mov edx, dword [rbp + 0x77]
test edx, edx
jle 0x14007bc5b
mov rcx, qword [rbp + 0x57]
mov r9d, esi
mov r8d, r14d
call fcn.14007c0b0
mov qword [rbp - 0x71], rax
cmp rax, 2
jb 0x14007c03f
mov byte [rbp - 0x79], 1
jmp 0x14007bc5f
mov rax, qword [rbp - 0x71]
mov qword [rbp - 0x69], rdi
test rax, rax
jne 0x14007bf02
mov dword [r15], edi
test r13b, r13b
jne 0x14007bcb2
test rbx, rbx
je 0x14007bcb2
lea rdx, [0x1400db980]
mov rcx, rbx
call fcn.140099630
test eax, eax
je 0x14007bccb
lea rdx, [0x1400db988]
mov rcx, rbx
call fcn.140099630
test eax, eax
je 0x14007bccb
lea rdx, [0x1400db998]
mov rcx, rbx
call fcn.140099630
test eax, eax
je 0x14007bccb
test r12, r12
jne 0x14007be19
lea rcx, [0x1400db970]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r12, rax
test r12, r12
jne 0x14007be19
mov r13, qword [rbp + 0x57]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov rcx, r13
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14007c03f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
mov ecx, 2
mov dword [rbp + 0x57], eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
jne 0x14007bd3d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14007c06c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, r12
test rax, rax
jne 0x14007bd64
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x14007c06c
mov r8d, dword [rbp + 0x57]
lea r9, [rbp + 0x57]
mov rdx, rax
mov qword [rsp + 0x20], rdi
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 - 0x61]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x14007bd54
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14007bd54
lea rax, [rbp - 0x69]
xor r8d, r8d
lea r9, [0x1400b5f80]
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov rcx, qword [rbp - 0x69]
test eax, eax
cmovs rcx, rdi
mov qword [rbp - 0x69], rcx
mov rcx, qword [rbp - 0x61]
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 - 0x69]
test rcx, rcx
je 0x14007c03f
mov rax, qword [rcx]
lea rdx, [rbp - 0x71]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rax, qword [rbp - 0x71]
test rax, rax
jne 0x14007bf06
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x14007c06c
lea rdx, [0x1400db9a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400db9b0]
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400db9c0]
mov rcx, r12
mov qword [rbp - 0x19], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400db9e0]
mov rcx, r12
mov qword [rbp - 0x39], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400dba00]
mov rcx, r12
mov qword [rbp - 0x31], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [rbp - 0x59], 1
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x49], rdi
test rbx, rbx
je 0x14007beef
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x21]
call rbx
mov r13, qword [rbp + 0x57]
test eax, eax
jne 0x14007bef3
lea rdx, [rbp - 0x61]
mov rcx, r13
call qword [rbp - 0x39]
test eax, eax
jne 0x14007bed9
mov rcx, qword [rbp - 0x61]
lea rdx, [rbp - 0x71]
mov r8d, 0xff000000
call qword [rbp - 0x31]
mov rcx, qword [rbp - 0x71]
test eax, eax
cmovne rcx, rdi
mov qword [rbp - 0x71], rcx
mov rcx, qword [rbp - 0x61]
call qword [rbp - 0x29]
mov rcx, qword [rbp - 0x21]
call qword [rbp - 0x19]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbp - 0x71]
jmp 0x14007bf06
mov r13, qword [rbp + 0x57]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbp - 0x71]
jmp 0x14007bf06
mov r13, qword [rbp + 0x57]
cmp byte [rbp + 0x6f], dil
je 0x14007bffd
cmp dword [r15], edi
je 0x14007bf2e
lea rdx, [rbp - 0x11]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x14007c035
mov rax, qword [rbp - 1]
lea r8, [rbp - 0x59]
mov edx, SafeArrayAllocDescriptor
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetObjectW]
cmp esi, 0xffffffff
jne 0x14007bf7c
mov eax, dword [rbp - 0x55]
test eax, eax
je 0x14007bfb1
movd xmm2, dword [rbp - 0x51]
cvtdq2pd xmm2, xmm2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movd xmm1, r14d
divsd xmm2, xmm0
cvtdq2pd xmm1, xmm1
mulsd xmm2, xmm1
addsd xmm2, qword [0x1400dbe70]
cvttsd2si esi, xmm2
jmp 0x14007bfb1
mov eax, dword [rbp - 0x51]
test eax, eax
je 0x14007bfb1
movd xmm2, dword [rbp - 0x55]
cvtdq2pd xmm2, xmm2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movd xmm1, esi
divsd xmm2, xmm0
cvtdq2pd xmm1, xmm1
mulsd xmm2, xmm1
addsd xmm2, qword [0x1400dbe70]
cvttsd2si r14d, xmm2
cmp dword [r15], edi
je 0x14007bff9
mov rcx, qword [rbp + 7]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rbp - 1]
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp byte [rbp - 0x79], dil
jne 0x14007bff9
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.USER32.dll_DestroyIcon]
mov r8d, dword [r15]
mov r9d, r14d
mov rdx, r13
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetDim
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_LoadImageW]
jmp 0x14007c06c
mov rax, qword [rbp - 0x71]
cmp qword [rbp - 0x69], rdi
je 0x14007c043
test r14d, r14d
jne 0x14007c011
test esi, esi
jne 0x14007c011
mov edi, 4
mov r9d, esi
mov dword [rsp + 0x20], edi
mov r8d, r14d
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_CopyImage]
mov rcx, qword [rbp - 0x69]
mov rbx, rax
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x14007c069
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.USER32.dll_DestroyIcon]
xor eax, eax
jmp 0x14007c06c
test r14d, r14d
jne 0x14007c04c
test esi, esi
je 0x14007c06c
mov edx, dword [r15]
mov r9d, esi
mov r8d, r14d
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rax
call qword [sym.imp.USER32.dll_CopyImage]
mov rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x118]
mov r13, qword [rsp + 0xd0]
add rsp, 0xd8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret