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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xd0
mov r15, qword [rbp + 0x77]
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov rsi, r9
mov dword [r9], 0xffffffff
mov r12d, r8d
mov r13d, edx
mov rdi, rcx
mov rbx, rcx
test r15, r15
je 0x1400c2f46
mov byte [r15], r14b
cmp word [rcx], r14w
je 0x1400c3144
mov r8d, 6
mov byte [rsp + 0x41], r14b
lea rdx, str.hicon:
mov byte [rbp + 0x47], r14b
call fcn.1400e5e84
test eax, eax
je 0x1400c2f8c
mov r8d, 8
lea rdx, str.hbitmap:
mov rcx, rdi
call fcn.1400e5e84
test eax, eax
jne 0x1400c304b
movzx ecx, word [rdi + 0xa]
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp cx, 0x3a
mov byte [rsp + 0x41], 1
mov edi, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
cmovne edi, eax
mov eax, r14d
add rdi, rbx
cmp cx, 0x3a
sete al
mov dword [rsi], eax
cmp word [rdi], 0x2a
sete byte [rbp + 0x47]
jne 0x1400c2fcc
add rdi, 2
test r15, r15
je 0x1400c2fcc
mov byte [r15], 1
mov rcx, rdi
nop
movzx eax, word [rcx]
cmp ax, 0x20
je 0x1400c2fdf
cmp ax, 9
jne 0x1400c2fe5
add rcx, 2
jmp 0x1400c2fd0
test ax, ax
je 0x1400c3035
cmp ax, 0x2d
je 0x1400c2ff6
cmp ax, 0x2b
jne 0x1400c3000
lea rax, [rcx + 2]
mov rcx, rax
movzx eax, word [rax]
cmp ax, 0x30
jne 0x1400c3035
movzx eax, word [rcx + 2]
mov edx, 0xffdf
sub ax, 0x58
test dx, ax
jne 0x1400c3035
movzx ecx, word [rcx + 4]
call fcn.1400ea440
test eax, eax
je 0x1400c3035
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x10]
call fcn.1400ea4ec
jmp 0x1400c303d
mov rcx, rdi
call fcn.1400e9f38
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400c3144
mov edx, 0x2e
mov rcx, rdi
call fcn.1400e17e8
mov rbx, rax
test rax, rax
je 0x1400c3064
add rbx, 2
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x1400c30e5
mov r15d, dword [rbp + 0x67]
cmp r15d, 1
ja 0x1400c3111
test rbx, rbx
je 0x1400c30e5
lea rdx, [0x14012bc88]
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
je 0x1400c3111
lea rdx, [0x14012bc90]
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
je 0x1400c3111
lea rdx, [0x140130048]
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
je 0x1400c3111
lea rdx, [0x140130050]
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
je 0x1400c3111
lea rdx, [0x140130058]
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
je 0x1400c3111
mov rcx, qword [rsp + 0x48]
mov byte [rsp + 0x40], r14b
test rbx, rbx
je 0x1400c31af
lea rdx, [0x14012bc80]
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
jne 0x1400c3161
mov dword [rsi], 1
jmp 0x1400c31aa
mov rax, qword [rbp + 0x7f]
mov r9d, r12d
mov r8d, r13d
mov qword [rsp + 0x20], rax
mov edx, r15d
mov byte [rsp + 0x40], 1
mov rcx, rdi
mov dword [rsi], 1
call fcn.1400c3790
mov qword [rsp + 0x48], rax
mov rcx, rax
cmp rax, 2
jae 0x1400c31af
xor eax, eax
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [0x140130060]
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
je 0x1400c31a4
lea rdx, [0x140130068]
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
je 0x1400c31a4
lea rdx, [0x140130070]
mov rcx, rbx
call fcn.1400e5cc0
mov rcx, qword [rsp + 0x48]
test eax, eax
jne 0x1400c31af
mov dword [rsi], r14d
jmp 0x1400c31af
mov dword [rsi], 2
mov rcx, qword [rsp + 0x48]
cmp r13d, 0xffffffff
je 0x1400c31c0
cmp r12d, 0xffffffff
jne 0x1400c31dd
test r13d, r13d
je 0x1400c31c5
test r12d, r12d
jne 0x1400c31d1
mov r12d, r14d
mov byte [rbp + 0x5f], r14b
mov r13d, r14d
jmp 0x1400c31e7
cmp r13d, 0xffffffff
je 0x1400c31e3
cmp r12d, 0xffffffff
je 0x1400c31e3
mov byte [rbp + 0x5f], r14b
jmp 0x1400c31e7
mov byte [rbp + 0x5f], 1
movzx r15d, byte [rbp + 0x6f]
mov qword [rbp - 0x79], r14
test r15b, r15b
je 0x1400c3212
lea rcx, str.gdiplus
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x48]
test rax, rax
mov qword [rbp - 0x79], rax
cmove r15d, r14d
test rcx, rcx
jne 0x1400c32d0
mov r8d, dword [rsi]
cmp r8d, 0xffffffff
jle 0x1400c32d0
test r15b, r15b
jne 0x1400c32d0
cmp byte [rbp + 0x5f], r14b
je 0x1400c323f
mov r9d, r14d
mov eax, r14d
jmp 0x1400c3245
mov r9d, r13d
mov eax, r12d
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 0x1400c327a
cmp byte [rbp + 0x5f], r14b
jne 0x1400c32d0
cmp dword [rbp + 0x67], r14d
jne 0x1400c32d0
jmp 0x1400c3146
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400c3144
mov ecx, dword [rbp + 0x67]
test ecx, ecx
jle 0x1400c32cb
mov rax, qword [rbp + 0x7f]
mov edx, ecx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8d, r13d
call fcn.1400c3790
mov qword [rsp + 0x48], rax
mov rcx, rax
cmp rax, 2
jb 0x1400c3144
mov byte [rsp + 0x40], 1
mov dword [rsi], 1
jmp 0x1400c32d0
mov rcx, qword [rsp + 0x48]
mov qword [rbp - 0x71], r14
test rcx, rcx
jne 0x1400c3561
mov dword [rsi], r14d
test r15b, r15b
jne 0x1400c3323
test rbx, rbx
je 0x1400c3323
lea rdx, [0x140130088]
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
je 0x1400c3342
lea rdx, str.jpeg
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
je 0x1400c3342
lea rdx, [0x1401300a0]
mov rcx, rbx
call fcn.1400e5cc0
test eax, eax
je 0x1400c3342
mov rbx, qword [rbp - 0x79]
test rbx, rbx
jne 0x1400c348c
lea rcx, str.gdiplus
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
jmp 0x1400c3346
mov rbx, qword [rbp - 0x79]
test rbx, rbx
jne 0x1400c348c
mov qword [rsp + 0x30], r14
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400c3144
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 0x1400c33b2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400c3144
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, r15
test rax, rax
jne 0x1400c33d7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400c3144
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, r15
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 0x1400c33c9
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x1400c33c9
lea rax, [rbp - 0x71]
xor r8d, r8d
lea r9, [0x1401062c0]
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 0x1400c3144
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x1400c3561
mov rcx, qword [rbp - 0x71]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x1400c3144
lea rdx, str.GdiplusStartup
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdiplusShutdown
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateBitmapFromFile
mov rcx, rbx
mov qword [rbp - 0x29], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipCreateHBITMAPFromBitmap
mov rcx, rbx
mov qword [rbp - 0x79], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GdipDisposeImage
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 r15, r15
je 0x1400c3553
xor r8d, r8d
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x31]
call r15
test eax, eax
jne 0x1400c3553
lea rdx, [rbp - 0x69]
mov rcx, rdi
call qword [rbp - 0x79]
test eax, eax
jne 0x1400c354c
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 0x1400c3664
cmp dword [rsi], r14d
je 0x1400c3586
lea rdx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x1400c36a5
mov rcx, qword [rbp - 0x11]
lea r8, [rbp - 0x61]
mov edx, SafeArrayAllocDescriptor
call qword [sym.imp.GDI32.dll_GetObjectW]
cmp r12d, 0xffffffff
jne 0x1400c35d3
mov eax, dword [rbp - 0x5d]
test eax, eax
je 0x1400c3609
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 [0x140131578]
cvttsd2si r12d, xmm2
jmp 0x1400c3609
mov eax, dword [rbp - 0x59]
test eax, eax
je 0x1400c3609
movd xmm2, dword [rbp - 0x5d]
cvtdq2pd xmm2, xmm2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movd xmm1, r12d
divsd xmm2, xmm0
cvtdq2pd xmm1, xmm1
mulsd xmm2, xmm1
addsd xmm2, qword [0x140131578]
cvttsd2si r13d, xmm2
cmp dword [rsi], r14d
je 0x1400c365f
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 0x1400c365f
cmp byte [rsp + 0x41], r14b
jne 0x1400c365f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_DestroyIcon]
mov r8d, dword [rsi]
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rsp + 0x28], eax
mov r9d, r13d
mov rdx, rdi
mov dword [rsp + 0x20], r12d
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadImageW]
jmp 0x1400c3146
mov rcx, qword [rsp + 0x48]
cmp qword [rbp - 0x71], r14
je 0x1400c36b5
test r13d, r13d
jne 0x1400c367a
test r12d, r12d
jne 0x1400c367a
mov r14d, 4
mov r9d, r12d
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]
movzx r15d, byte [rbp + 0x47]
jmp 0x1400c3711
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x1400c3144
movzx r15d, byte [rbp + 0x47]
mov r14, qword [rbp + 0x77]
test r13d, r13d
jne 0x1400c36e5
test r12d, r12d
jne 0x1400c36e5
test r15b, r15b
je 0x1400c36d2
test r14, r14
je 0x1400c36ea
cmp dword [rbp + 0x67], 1
jl 0x1400c36dd
cmp dword [rsi], 1
jne 0x1400c36e5
mov rax, rcx
jmp 0x1400c3146
test r15b, r15b
je 0x1400c36f7
mov rax, r14
neg rax
sbb eax, eax
and eax, 4
jmp 0x1400c36fc
mov eax, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov edx, dword [rsi]
mov r9d, r12d
mov r8d, r13d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CopyImage]
mov rbx, rax
cmp dword [rbp + 0x67], 0
jle 0x1400c374f
cmp dword [rsi], 0
jne 0x1400c374f
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 r15b, r15b
jne 0x1400c3746
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rbx, rdi
mov dword [rsi], 1
cmp qword [rsp + 0x48], rbx
je 0x1400c375f
test r14, r14
je 0x1400c375f
mov byte [r14], 0
mov rax, rbx
jmp 0x1400c3146