Function at 0x14009e7a0
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 rdi, qword [rbp + 0x77]
xor esi, esi
mov qword [rsp + 0x48], rsi
mov r14, r9
mov dword [r9], 0xffffffff
mov r15d, r8d
mov r13d, edx
mov rbx, rcx
mov r12, rcx
test rdi, rdi
je 0x14009e7e5
mov byte [rdi], sil
cmp word [rcx], si
je 0x14009e945
mov r8d, 6
mov byte [rsp + 0x41], sil
lea rdx, [0x1401046d0]
mov byte [rbp + 0x47], sil
call fcn.1400c0a00
test eax, eax
je 0x14009e826
mov r8d, 8
lea rdx, [0x14010a7f8]
mov rcx, rbx
call fcn.1400c0a00
test eax, eax
jne 0x14009e87b
movzx ecx, word [rbx + 0xa]
mov eax, reloc.WSOCK32.dll_recv
cmp cx, 0x3a
mov byte [rsp + 0x41], 1
mov ebx, reloc.WSOCK32.dll_ioctlsocket
cmovne ebx, eax
mov eax, esi
add rbx, r12
cmp cx, 0x3a
sete al
mov dword [r14], eax
cmp word [rbx], 0x2a
sete byte [rbp + 0x47]
jne 0x14009e865
add rbx, 2
test rdi, rdi
je 0x14009e865
mov byte [rdi], 1
mov rcx, rbx
call fcn.14009d5f0
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14009e945
mov edx, 0x2e
mov rcx, rbx
call fcn.1400bbdec
test rax, rax
lea rdi, [rax + 2]
cmove rdi, rax
cmp qword [rsp + 0x48], rsi
jne 0x14009e962
mov r12d, dword [rbp + 0x67]
cmp r12d, 1
ja 0x14009e910
test rdi, rdi
je 0x14009e962
lea rdx, [0x140102580]
mov rcx, rdi
call fcn.1400c0814
test eax, eax
je 0x14009e910
lea rdx, [0x140102588]
mov rcx, rdi
call fcn.1400c0814
test eax, eax
je 0x14009e910
lea rdx, [0x14010a810]
mov rcx, rdi
call fcn.1400c0814
test eax, eax
je 0x14009e910
lea rdx, [0x14010a818]
mov rcx, rdi
call fcn.1400c0814
test eax, eax
je 0x14009e910
lea rdx, [0x14010a820]
mov rcx, rdi
call fcn.1400c0814
test eax, eax
jne 0x14009e962
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, rbx
mov dword [r14], 1
call fcn.14009ef90
mov qword [rsp + 0x48], rax
cmp rax, 2
jae 0x14009e9cd
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
mov byte [rsp + 0x40], sil
test rdi, rdi
je 0x14009e9cd
lea rdx, [0x140102578]
mov rcx, rdi
call fcn.1400c0814
test eax, eax
jne 0x14009e988
mov dword [r14], 1
jmp 0x14009e9cd
lea rdx, [0x14010a828]
mov rcx, rdi
call fcn.1400c0814
test eax, eax
je 0x14009e9c6
lea rdx, [0x14010a830]
mov rcx, rdi
call fcn.1400c0814
test eax, eax
je 0x14009e9c6
lea rdx, [0x14010a838]
mov rcx, rdi
call fcn.1400c0814
test eax, eax
jne 0x14009e9cd
mov dword [r14], esi
jmp 0x14009e9cd
mov dword [r14], 2
cmp r13d, 0xffffffff
je 0x14009e9de
cmp r15d, 0xffffffff
jne 0x14009e9fb
test r13d, r13d
je 0x14009e9e3
test r15d, r15d
jne 0x14009e9ef
mov r15d, esi
mov byte [rbp + 0x5f], sil
mov r13d, esi
jmp 0x14009ea05
cmp r13d, 0xffffffff
je 0x14009ea01
cmp r15d, 0xffffffff
je 0x14009ea01
mov byte [rbp + 0x5f], sil
jmp 0x14009ea05
mov byte [rbp + 0x5f], 1
movzx r12d, byte [rbp + 0x6f]
mov qword [rbp - 0x79], rsi
test r12b, r12b
je 0x14009ea2b
lea rcx, [0x14010a840]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbp - 0x79], rax
cmove r12d, esi
cmp qword [rsp + 0x48], rsi
jne 0x14009eadd
mov r8d, dword [r14]
cmp r8d, 0xffffffff
jle 0x14009eadd
test r12b, r12b
jne 0x14009eadd
cmp byte [rbp + 0x5f], sil
je 0x14009ea59
mov r9d, esi
mov eax, esi
jmp 0x14009ea5f
mov r9d, r13d
mov eax, r15d
mov dword [rsp + 0x28], 0x2010
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14009ea90
cmp byte [rbp + 0x5f], sil
jne 0x14009eadd
cmp dword [rbp + 0x67], esi
jne 0x14009eadd
jmp 0x14009e947
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009e945
mov eax, dword [rbp + 0x67]
test eax, eax
jle 0x14009eadd
mov rcx, qword [rbp + 0x7f]
mov r9d, r15d
mov qword [rsp + 0x20], rcx
mov r8d, r13d
mov rcx, rbx
mov edx, eax
call fcn.14009ef90
mov qword [rsp + 0x48], rax
cmp rax, 2
jb 0x14009e945
mov byte [rsp + 0x40], 1
mov dword [r14], 1
mov qword [rbp - 0x71], rsi
cmp qword [rsp + 0x48], rsi
jne 0x14009ed5a
mov dword [r14], esi
test r12b, r12b
jne 0x14009eb32
test rdi, rdi
je 0x14009eb32
lea rdx, [0x14010a850]
mov rcx, rdi
call fcn.1400c0814
test eax, eax
je 0x14009eb51
lea rdx, [0x14010a858]
mov rcx, rdi
call fcn.1400c0814
test eax, eax
je 0x14009eb51
lea rdx, [0x14010a868]
mov rcx, rdi
call fcn.1400c0814
test eax, eax
je 0x14009eb51
mov rdi, qword [rbp - 0x79]
test rdi, rdi
jne 0x14009ec91
lea rcx, [0x14010a840]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
jmp 0x14009eb55
mov rdi, qword [rbp - 0x79]
test rdi, rdi
jne 0x14009ec91
mov qword [rsp + 0x30], rsi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], esi
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14009e945
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
lea ecx, [rdi + 2]
mov dword [rbp - 0x79], edx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x14009ebc0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14009e945
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, r12
test rax, rax
jne 0x14009ebe5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14009e945
mov r8d, dword [rbp - 0x79]
lea r9, [rbp - 0x79]
mov rdx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
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, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x14009ebd7
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x14009ebd7
lea rax, [rbp - 0x71]
xor r8d, r8d
lea r9, [0x1400e01b8]
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
jns 0x14009ec4c
mov qword [rbp - 0x71], rsi
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x14009e945
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp qword [rsp + 0x48], rsi
jne 0x14009ed5a
mov rcx, qword [rbp - 0x71]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
jmp 0x14009e945
lea rdx, [0x14010a870]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14010a880]
mov rcx, rdi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14010a890]
mov rcx, rdi
mov qword [rbp - 0x29], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14010a8b0]
mov rcx, rdi
mov qword [rbp - 0x79], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14010a8d0]
mov rcx, rdi
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], rsi
mov qword [rbp - 0x51], rsi
test r12, r12
je 0x14009ed51
xor r8d, r8d
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x31]
call r12
test eax, eax
jne 0x14009ed51
lea rdx, [rbp - 0x69]
mov rcx, rbx
call qword [rbp - 0x79]
test eax, eax
jne 0x14009ed4a
mov rcx, qword [rbp - 0x69]
lea rdx, [rsp + 0x48]
mov r8d, 0xff000000
call qword [rbp - 0x41]
test eax, eax
je 0x14009ed43
mov qword [rsp + 0x48], rsi
mov rcx, qword [rbp - 0x69]
call qword [rbp - 0x39]
mov rcx, qword [rbp - 0x31]
call qword [rbp - 0x29]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [rbp + 0x5f], sil
je 0x14009ee6c
mov rcx, qword [rsp + 0x48]
cmp dword [r14], esi
je 0x14009ed84
lea rdx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x14009ee5c
mov rcx, qword [rbp - 0x11]
lea r8, [rbp - 0x61]
mov edx, SafeArrayAllocDescriptor
call qword [sym.imp.GDI32.dll_GetObjectW]
cmp r15d, 0xffffffff
jne 0x14009edd1
mov eax, dword [rbp - 0x5d]
test eax, eax
je 0x14009ee07
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 [0x14010ade8]
cvttsd2si r15d, xmm2
jmp 0x14009ee07
mov eax, dword [rbp - 0x59]
test eax, eax
je 0x14009ee07
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 [0x14010ade8]
cvttsd2si r13d, xmm2
cmp dword [r14], esi
je 0x14009ee6c
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], sil
jne 0x14009ee6c
cmp byte [rsp + 0x41], sil
jne 0x14009ee6c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_DestroyIcon]
mov r8d, dword [r14]
mov r9d, r13d
mov rdx, rbx
mov dword [rsp + 0x28], reloc.WSOCK32.dll_recv
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_LoadImageW]
jmp 0x14009e947
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x14009e945
cmp qword [rbp - 0x71], rsi
je 0x14009eeb0
test r13d, r13d
jne 0x14009ee81
test r15d, r15d
jne 0x14009ee81
mov esi, 4
mov rcx, qword [rsp + 0x48]
mov r9d, r15d
mov r8d, r13d
mov dword [rsp + 0x20], esi
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.WSOCK32.dll_recv]
mov rsi, qword [rbp + 0x77]
movzx r12d, byte [rbp + 0x47]
jmp 0x14009ef15
movzx r12d, byte [rbp + 0x47]
mov rsi, qword [rbp + 0x77]
test r13d, r13d
jne 0x14009eee3
test r15d, r15d
jne 0x14009eee3
test r12b, r12b
je 0x14009eecd
test rsi, rsi
je 0x14009eee8
cmp dword [rbp + 0x67], 1
jl 0x14009eed9
cmp dword [r14], 1
jne 0x14009eee3
mov rax, qword [rsp + 0x48]
jmp 0x14009e947
test r12b, r12b
je 0x14009eef5
mov rax, rsi
neg rax
sbb eax, eax
and eax, 4
jmp 0x14009eefa
mov eax, reloc.WSOCK32.dll_ioctlsocket
mov edx, dword [r14]
mov r9d, r15d
mov rcx, qword [rsp + 0x48]
mov r8d, r13d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CopyImage]
mov rbx, rax
cmp dword [rbp + 0x67], 0
jle 0x14009ef55
cmp dword [r14], 0
jne 0x14009ef55
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 0x14009ef4b
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rbx, rdi
mov dword [r14], 1
cmp qword [rsp + 0x48], rbx
je 0x14009ef64
test rsi, rsi
je 0x14009ef64
mov byte [rsi], 0
mov rax, rbx
jmp 0x14009e947