Function at 0x533140
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6d6b
mov eax, dword fs:[0]
push eax
mov eax, 0x107c
call fcn.0044ea10
mov eax, dword [0x69f564]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1064], ecx
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1050], eax
cmp dword [esi + 0x14], 8
jb 0x533190
mov eax, dword [esi]
jmp 0x533192
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x1068], eax
cmp eax, 0xffffffff
jne 0x5331ab
xor eax, eax
jmp 0x533433
and eax, 0x10
mov dword [ebp - 0x106c], eax
shl eax, 0x15
cmp dword [esi + 0x14], 8
jb 0x5331bf
mov esi, dword [esi]
push 0
push eax
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5331a4
push esi
push dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1088]
push eax
call fcn.00532d20
add esp, 0xc
lea eax, [ebp - 0x1074]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x107c]
push eax
lea eax, [ebp - 0x1074]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x1054]
push eax
lea eax, [ebp - 0x107c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [ebp - 0x1054]
xorps xmm0, xmm0
movzx eax, word [ebp - 0x1058]
xor edx, edx
or edx, dword [ebp - 0x1068]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x102c], edx
cmp byte [ebp + 0x14], 0
lea eax, [ebp - 0x1028]
movups xmmword [ebp - 0x103c], xmm0
mov dword [ebp - 0x1034], ecx
mov ecx, dword [ebp - 0x1064]
movups xmmword [ebp - 0x104c], xmm0
je 0x5332d9
push 0xfde9
push dword [ebp - 0x1050]
push eax
call fcn.00533020
push 0x800
push 0
push 0
push 0
cmp dword [ebp - 0x1014], 0x10
lea ecx, [ebp - 0x104c]
push 0
push 8
push 0xfffffffffffffff1
push 0
push 9
push 8
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push ecx
push eax
push edi
call fcn.00536e10
jmp 0x533317
push 0
push dword [ebp - 0x1050]
push eax
call fcn.00533020
cmp dword [ebp - 0x1014], 0x10
lea ecx, [ebp - 0x104c]
push 9
push 8
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push ecx
push eax
push edi
call fcn.00537470
lea ecx, [ebp - 0x1028]
test eax, eax
je 0x53332d
call fcn.00402313
xor esi, esi
jmp 0x533422
call fcn.00402313
push edi
lea eax, [ebp - 0x101c]
push 0x536410
push eax
call fcn.00532d20
add esp, 0xc
cmp dword [ebp - 0x106c], 0
jne 0x53340e
lea eax, [ebp - 0x1060]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x1060], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x533450
mov ecx, dword [ebp - 0x105c]
test ecx, ecx
jl 0x53340e
mov eax, dword [ebp - 0x1060]
jg 0x53339d
test eax, eax
je 0x53340e
nop
test ecx, ecx
jl 0x5333a2
jg 0x53339d
cmp eax, 0x1000
jbe 0x5333a2
mov eax, 0x1000
push 0
lea ecx, [ebp - 0x1050]
mov dword [ebp - 0x1050], 0
push ecx
push eax
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x533450
push dword [ebp - 0x1050]
lea eax, [ebp - 0x1010]
push eax
push edi
call fcn.005374b0
test eax, eax
js 0x533450
mov eax, dword [ebp - 0x1060]
sub eax, dword [ebp - 0x1050]
mov ecx, dword [ebp - 0x105c]
sbb ecx, 0
mov dword [ebp - 0x1060], eax
mov dword [ebp - 0x105c], ecx
test ecx, ecx
jg 0x53339d
jl 0x53340e
test eax, eax
jne 0x533390
mov esi, 1
lea eax, [ebp - 0x101c]
push eax
call fcn.00532d80
add esp, 4
lea eax, [ebp - 0x1088]
push eax
call fcn.00532d80
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044e8de
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
jmp 0x533413