Function at 0x140041930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1e0
mov rax, qword [0x1402854d8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xor r15d, r15d
lea rbp, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_LIBSourcesesif_lib_esifdata.c
test rcx, rcx
mov qword [rsp + 0x88], r15
mov ebx, 0x8fc
lea r14, str.EsifData_Compress
cmovne ebx, r15d
mov r13, rcx
mov r12d, r15d
mov esi, r15d
je 0x140041cfb
mov rdi, qword [rcx + 4]
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x90], 0x5d
test rdi, rdi
je 0x1400419c4
cmp dword [rcx + 0x10], 0xd
jbe 0x1400419c4
movzx eax, word [rdi]
cmp ax, word [rsp + 0x90]
je 0x140041cfb
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x104
call fcn.140107f60
mov esi, dword [r13 + 0x10]
lea rax, [0x1401845f4]
lea r9, str.ipf_cmp
mov qword [rsp + 0x20], rax
mov edx, 0x104
mov qword [rsp + 0x70], rsi
mov r8d, 7
lea rcx, [rsp + 0xa0]
call fcn.140049e50
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140041a61
bt eax, 0xa
jae 0x140041a61
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140041a4c
test al, 0x10
je 0x140041a4c
lea rcx, [rsp + 0xa0]
call fcn.1401338c4
jmp 0x140041a59
lea rcx, [rsp + 0xa0]
call fcn.14011868c
test eax, eax
jne 0x140041e7a
mov ecx, 0x18
call fcn.140115d38
mov r14, rax
test rax, rax
je 0x140041e73
xorps xmm0, xmm0
lea rcx, [rsp + 0xa0]
xor eax, eax
xor edx, edx
movups xmmword [r14], xmm0
mov r8d, 0x1000
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
mov qword [r14], rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [r14 + 8], eax
mov rcx, qword [r14]
test rcx, rcx
jne 0x140041ac7
mov rcx, r14
call fcn.140043250
cmp eax, 0xbb8
mov ebx, r15d
cmovne ebx, eax
jmp 0x140041cc7
lea rdx, str.IpfCompress
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x140041af5
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [r14 + 8], eax
mov ebx, 0xd49
jmp 0x140041cc7
mov r9, rsi
lea rdx, [rsp + 0x88]
mov r8, rdi
xor ecx, ecx
call qword [case.0x14005bcf7.0]
mov r12d, eax
test eax, eax
je 0x140041b1c
mov ebx, 0x517
jmp 0x140041cc7
mov rcx, qword [rsp + 0x88]
cmp rcx, 0x7ffffffe
jbe 0x140041b37
mov ebx, 0x8fd
jmp 0x140041cc7
test rcx, rcx
je 0x140041cc7
call fcn.140043480
mov rsi, rax
test rax, rax
jne 0x140041b57
mov ebx, 0x708
jmp 0x140041cc2
mov rdi, qword [rsp + 0x88]
mov ebp, 3
movaps xmmword [rsp + 0x1d0], xmm6
movabs rcx, 0x8000000000000000
movsd xmm6, qword [0x1401847b8]
movaps xmmword [rsp + 0x1c0], xmm7
movsd xmm7, qword [0x1401847a0]
nop
cmp r12d, 7
jne 0x140041c10
xorps xmm0, xmm0
test rdi, rdi
js 0x140041ba5
cvtsi2sd xmm0, rdi
jmp 0x140041bba
mov rax, rdi
and edi, 1
shr rax, 1
or rax, rdi
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
mulsd xmm0, xmm7
xor eax, eax
comisd xmm0, xmm6
jb 0x140041bd3
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140041bd3
mov rax, rcx
cvttsd2si rdi, xmm0
mov rcx, rsi
add rdi, rax
mov rdx, rdi
call fcn.14012f8d4
mov rbx, rax
test rsi, rsi
jne 0x140041c00
test rax, rax
je 0x140041c5c
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.140107f60
test rbx, rbx
je 0x140041c5c
mov rsi, rbx
mov qword [rsp + 0x88], rdi
mov r9, qword [rsp + 0x70]
lea rdx, [rsp + 0x88]
mov r8, qword [rsp + 0x78]
mov rcx, rsi
mov rax, qword [rsp + 0x80]
call qword [case.0x14005bcf7.0]
mov r12d, eax
cmp eax, 7
jne 0x140041c58
mov eax, ebp
movabs rcx, 0x8000000000000000
dec ebp
test eax, eax
jg 0x140041b90
mov ebx, 0x517
jmp 0x140041c9e
test eax, eax
je 0x140041c63
mov ebx, 0x517
jmp 0x140041c9e
mov ebx, r15d
cmp qword [rsp + 0x88], rdi
jae 0x140041dc2
lfence
mov rdx, qword [rsp + 0x88]
mov rcx, rsi
mov ebx, 0x708
call fcn.140043500
test rax, rax
mov rsi, rax
cmovne ebx, r15d
test ebx, ebx
je 0x140041dc2
test rsi, rsi
je 0x140041cab
mov rcx, rsi
call fcn.140115d24
lea rbp, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_LIBSourcesesif_lib_esifdata.c
movaps xmm6, xmmword [rsp + 0x1d0]
movaps xmm7, xmmword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [r14]
test rcx, rcx
je 0x140041cd5
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r14], xmm0
mov rcx, r14
mov qword [r14 + 0x10], rax
call fcn.140115d24
lea r14, str.EsifData_Compress
test ebx, ebx
je 0x140041d8f
cmp dword [0x14027edf0], 1
jl 0x140041d1b
test byte [0x14027ee24], 1
je 0x140041d1b
mov r15d, 1
mov edx, 1
mov ecx, edx
call fcn.1400e8cc0
mov r10d, eax
test r15d, r15d
jne 0x140041d33
test eax, eax
je 0x140041d8f
mov ecx, ebx
call fcn.1400435d0
mov r9, rax
mov edx, r10d
mov rax, qword [rsp + 0x88]
mov ecx, r15d
mov qword [rsp + 0x60], rax
lea rax, str.EsifCmp_Compress_Error:__s___d___result_d__original_zd__compressed_zd__n
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x40], r9
mov r9d, 1
mov qword [rsp + 0x38], rax
mov r8d, r9d
mov dword [rsp + 0x30], 0x38b
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r14
call fcn.1400bfc30
mov eax, ebx
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140106650
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp dword [0x14027edf0], 3
jl 0x140041dd9
test byte [0x14027ee54], 1
mov edi, 1
jne 0x140041ddc
mov edi, r15d
mov edx, 3
lea ecx, [rdx - 2]
call fcn.1400e8cc0
mov edx, eax
test edi, edi
jne 0x140041df3
test eax, eax
je 0x140041e49
mov rax, qword [rsp + 0x88]
lea rbp, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_LIBSourcesesif_lib_esifdata.c
mov qword [rsp + 0x48], rax
mov r9d, 3
mov rax, qword [rsp + 0x70]
mov ecx, edi
mov qword [rsp + 0x40], rax
lea rax, str.EsifCmp_Compressed:__u____zd_bytes_n
mov qword [rsp + 0x38], rax
lea rax, str.EsifData_Compress
mov dword [rsp + 0x30], 0x376
lea r8d, [r9 - 2]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.1400bfc30
jmp 0x140041e50
lea rbp, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_LIBSourcesesif_lib_esifdata.c
mov rax, qword [rsp + 0x88]
mov r8, rsi
mov edx, dword [r13]
mov r9d, eax
mov rcx, r13
mov dword [rsp + 0x20], eax
call fcn.140042c70
jmp 0x140041cb2
lea r14, str.EsifData_Compress
mov ebx, 0x708
jmp 0x140041d03