Function at 0x140041870
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 [0x14027aef8]
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 0x140041c3b
mov rdi, qword [rcx + 4]
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x90], 0x5d
test rdi, rdi
je 0x140041904
cmp dword [rcx + 0x10], 0xd
jbe 0x140041904
movzx eax, word [rdi]
cmp ax, word [rsp + 0x90]
je 0x140041c3b
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x104
call fcn.140102230
mov esi, dword [r13 + 0x10]
lea rax, [0x14017dc74]
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.140047820
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400419a1
bt eax, 0xa
jae 0x1400419a1
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14004198c
test al, 0x10
je 0x14004198c
lea rcx, [rsp + 0xa0]
call fcn.14012db94
jmp 0x140041999
lea rcx, [rsp + 0xa0]
call fcn.14011295c
test eax, eax
jne 0x140041dba
mov ecx, 0x18
call fcn.140110008
mov r14, rax
test rax, rax
je 0x140041db3
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 0x140041a07
mov rcx, r14
call fcn.140043120
cmp eax, 0xbb8
mov ebx, r15d
cmovne ebx, eax
jmp 0x140041c07
lea rdx, str.IpfCompress
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x140041a35
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [r14 + 8], eax
mov ebx, 0xd49
jmp 0x140041c07
mov r9, rsi
lea rdx, [rsp + 0x88]
mov r8, rdi
xor ecx, ecx
call qword [case.0x140059157.0]
mov r12d, eax
test eax, eax
je 0x140041a5c
mov ebx, 0x517
jmp 0x140041c07
mov rcx, qword [rsp + 0x88]
cmp rcx, 0x7ffffffe
jbe 0x140041a77
mov ebx, 0x8fd
jmp 0x140041c07
test rcx, rcx
je 0x140041c07
call fcn.140043350
mov rsi, rax
test rax, rax
jne 0x140041a97
mov ebx, 0x708
jmp 0x140041c02
mov rdi, qword [rsp + 0x88]
mov ebp, 3
movaps xmmword [rsp + 0x1d0], xmm6
movabs rcx, 0x8000000000000000
movsd xmm6, qword [0x14017de38]
movaps xmmword [rsp + 0x1c0], xmm7
movsd xmm7, qword [0x14017de20]
nop
cmp r12d, 7
jne 0x140041b50
xorps xmm0, xmm0
test rdi, rdi
js 0x140041ae5
cvtsi2sd xmm0, rdi
jmp 0x140041afa
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 0x140041b13
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140041b13
mov rax, rcx
cvttsd2si rdi, xmm0
mov rcx, rsi
add rdi, rax
mov rdx, rdi
call fcn.140129ba4
mov rbx, rax
test rsi, rsi
jne 0x140041b40
test rax, rax
je 0x140041b9c
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.140102230
test rbx, rbx
je 0x140041b9c
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.0x140059157.0]
mov r12d, eax
cmp eax, 7
jne 0x140041b98
mov eax, ebp
movabs rcx, 0x8000000000000000
dec ebp
test eax, eax
jg 0x140041ad0
mov ebx, 0x517
jmp 0x140041bde
test eax, eax
je 0x140041ba3
mov ebx, 0x517
jmp 0x140041bde
mov ebx, r15d
cmp qword [rsp + 0x88], rdi
jae 0x140041d02
lfence
mov rdx, qword [rsp + 0x88]
mov rcx, rsi
mov ebx, 0x708
call fcn.1400433d0
test rax, rax
mov rsi, rax
cmovne ebx, r15d
test ebx, ebx
je 0x140041d02
test rsi, rsi
je 0x140041beb
mov rcx, rsi
call fcn.14010fff4
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 0x140041c15
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.14010fff4
lea r14, str.EsifData_Compress
test ebx, ebx
je 0x140041ccf
cmp dword [0x140274810], 1
jl 0x140041c5b
test byte [0x140274844], 1
je 0x140041c5b
mov r15d, 1
mov edx, 1
mov ecx, edx
call fcn.1400e1c40
mov r10d, eax
test r15d, r15d
jne 0x140041c73
test eax, eax
je 0x140041ccf
mov ecx, ebx
call fcn.1400434a0
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], 0x371
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r14
call fcn.1400ba210
mov eax, ebx
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140100920
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 [0x140274810], 3
jl 0x140041d19
test byte [0x140274874], 1
mov edi, 1
jne 0x140041d1c
mov edi, r15d
mov edx, 3
lea ecx, [rdx - 2]
call fcn.1400e1c40
mov edx, eax
test edi, edi
jne 0x140041d33
test eax, eax
je 0x140041d89
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], 0x35c
lea r8d, [r9 - 2]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.1400ba210
jmp 0x140041d90
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.140042b40
jmp 0x140041bf2
lea r14, str.EsifData_Compress
mov ebx, 0x708
jmp 0x140041c43