Function at 0x69b44e20
Capabilities:
Get file size
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x2c], eax
test byte [0x69b7c090], 8
jne 0x69b44ea0
test ebx, ebx
je 0x69b44e90
mov edx, dword [ebx + 4]
test edx, edx
je 0x69b44e90
mov eax, dword [ebx]
cmp eax, 2
je 0x69b45260
movzx ecx, byte [0x69b7c090]
cmp eax, 1
jne 0x69b451a0
and ecx, 8
jne 0x69b452c0
mov eax, edi
and eax, 2
test edi, 1
jne 0x69b44ee0
test eax, eax
jne 0x69b451e0
nop
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.___p___lx___lx___lx___n
mov dword [esp + 8], str.OpenColorProfileW
mov dword [esp + 4], 0x69b7c090
mov dword [esp], 3
call fcn.69b42fd0
jmp 0x69b44e4b
cmp eax, 1
sbb eax, eax
and eax, 0xc0000000
sub eax, 0x40000000
mov dword [ebp - 0x30], eax
test esi, esi
mov eax, 1
cmovne eax, esi
mov dword [ebp - 0x34], eax
mov esi, eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathIsRelativeW]
sub esp, 4
test eax, eax
jne 0x69b45070
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
cmp ebx, 0xffffffff
je 0x69b452f8
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
sub esp, 8
cmp eax, 0xffffffff
je 0x69b45340
mov dword [esp], eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x2c]
test eax, eax
mov ecx, eax
mov esi, eax
je 0x69b4540a
lea eax, [ebp - 0x1c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x2c], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
je 0x69b45230
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], eax
jne 0x69b45230
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0x30], ecx
call fcn.69b4c550
mov ecx, dword [ebp - 0x30]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x69b4523d
mov dword [esp + 4], 0x20
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov edx, eax
test eax, eax
je 0x69b453ff
mov dword [eax + 8], 0x69b43020
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], esi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x1c], eax
mov dword [esp], edx
call fcn.69b41ee0
mov edx, dword [ebp - 0x30]
test eax, eax
jne 0x69b44e92
mov dword [esp], edx
mov edi, dword [sym.imp.ucrtbase.dll_free]
call edi
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.69b4c230
mov dword [esp], esi
call edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x69b44e90
test byte [0x69b7c090], 8
jne 0x69b451f0
lea eax, [ebp - 0x20]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call fcn.69b43110
sub esp, 0xc
test eax, eax
jne 0x69b44e90
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xea
jne 0x69b44e90
mov edx, dword [ebx + 4]
cmp word [edx], 0
je 0x69b453e8
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x69b450c8
sub eax, edx
mov edx, dword [ebp - 0x20]
lea eax, [eax + edx + 4]
mov dword [ebp - 0x20], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x69b44e90
test byte [0x69b7c090], 8
jne 0x69b453b0
lea eax, [ebp - 0x20]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], 0
call fcn.69b43110
sub esp, 0xc
mov dword [esp], esi
call dword [sym.imp.shlwapi.dll_PathAddBackslashW]
mov ebx, dword [ebx + 4]
mov edx, esi
sub esp, 4
cmp word [esi], 0
je 0x69b45139
nop
add edx, 2
cmp word [edx], 0
jne 0x69b45130
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x69b45140
mov eax, dword [ebp - 0x2c]
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x14], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x69b44f53
and ecx, 2
je 0x69b44e90
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Invalid_profile_type__lu_n
mov dword [esp + 8], str.OpenColorProfileW
mov dword [esp + 4], 0x69b7c090
mov dword [esp], 1
call fcn.69b42fd0
xor eax, eax
jmp 0x69b44e92
mov dword [ebp - 0x30], 0xc0000000
jmp 0x69b44ef2
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.___p___p___n
mov dword [esp + 8], str.GetColorDirectoryW
mov dword [esp + 4], 0x69b7c090
mov dword [esp], 3
call fcn.69b42fd0
jmp 0x69b4507d
test byte [0x69b7c090], 2
jne 0x69b45380
mov dword [ebp - 0x2c], ecx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
sub esp, 4
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x69b44e90
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x30], edx
mov dword [esp], ecx
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x69b44e90
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.ucrtbase.dll_memcpy
mov ecx, dword [ebp - 0x2c]
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.69b4c550
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x69b453ef
mov eax, dword [ebx + 8]
mov ebx, 0xffffffff
mov dword [ebp - 0x20], eax
jmp 0x69b44ff1
mov eax, edx
call fcn.69b42b00
mov dword [esp + 0xc], str.profile_file:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.OpenColorProfileW
mov dword [esp + 4], 0x69b7c090
mov dword [esp], 3
call fcn.69b42fd0
jmp 0x69b44e7a
test byte [0x69b7c090], 4
je 0x69b44e90
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Unable_to_open_color_profile__lu_n
mov dword [esp + 8], str.OpenColorProfileW
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x69b7c090
mov dword [esp], 2
call fcn.69b42fd0
jmp 0x69b44e90
test byte [0x69b7c090], 2
je 0x69b4505d
mov dword [esp + 0xc], str.Unable_to_retrieve_size_of_color_profile_n
mov dword [esp + 8], str.OpenColorProfileW
mov dword [esp + 4], 0x69b7c090
mov dword [esp], 1
call fcn.69b42fd0
jmp 0x69b4505d
mov dword [esp + 0xc], str.Unable_to_read_color_profile_n
mov dword [esp + 8], str.OpenColorProfileW
mov dword [esp + 4], 0x69b7c090
mov dword [esp], 1
mov dword [ebp - 0x2c], ecx
call fcn.69b42fd0
mov ecx, dword [ebp - 0x2c]
jmp 0x69b4523d
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.___p___p___n
mov dword [esp + 8], str.GetColorDirectoryW
mov dword [esp + 4], 0x69b7c090
mov dword [esp], 3
call fcn.69b42fd0
jmp 0x69b450fd
xor eax, eax
jmp 0x69b450d3
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
xor eax, eax
jmp 0x69b44e92
mov edi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x69b4504d
test byte [0x69b7c090], 2
je 0x69b4505d
mov dword [esp + 0xc], str.Unable_to_allocate_memory_for_color_profile_n
mov dword [esp + 8], str.OpenColorProfileW
mov dword [esp + 4], 0x69b7c090
mov dword [esp], 1
call fcn.69b42fd0
jmp 0x69b4505d