Function at 0x4e24a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x581900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
xorps xmm0, xmm0
mov dword [ebp - 0x138], 0
lea eax, [ebp - 0x108]
push 0
push eax
movups xmmword [ebp - 0x118], xmm0
movups xmmword [ebp - 0x128], xmm0
call fcn.004e69c0
xor edi, edi
mov dword [ebp - 0x12c], 0
cmp dword [ebp + 8], edi
mov eax, 0x20
push 0x24e
cmove edi, eax
mov dword [ebp - 0x134], 0
push str.C:UsersOfficeDocumentsVisual_StudioPAULAUpdatePAULA2.c
push edi
mov dword [ebp - 0x130], 0
call fcn.0045ec30
lea eax, [ebp - 0x108]
push str.UULF.lts
push eax
call fcn.00461800
push 0
push 0x61a8
push 0
push SQLGetDiagRec
push 3
push 0
push 7
lea eax, [ebp - 0x108]
push 3
push eax
call fcn.00427f00
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x44
mov esi, eax
call ebx
cmp esi, 0xffffffff
jne 0x4e25b1
cmp eax, 2
je 0x4e2592
cmp eax, 3
je 0x4e2592
cmp eax, 0xf
je 0x4e2592
cmp eax, 0x35
je 0x4e2592
push eax
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_CreateFile__s__FAILED:__s_ld
call fcn.00424a90
add esp, 0x10
push edi
call fcn.004656c0
mov eax, 1
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebp - 0x138]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e28d9
cmp dword [ebp - 0x12c], 4
jb 0x4e28d9
push 0
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e28a3
cmp dword [ebp - 0x12c], 4
jb 0x4e28a3
push 0
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e2869
cmp dword [ebp - 0x12c], 4
jb 0x4e2869
push 0
lea eax, [ebp - 0x12c]
push eax
push 0x10
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e281c
cmp dword [ebp - 0x12c], 0x10
jb 0x4e281c
push 0x293
push str.C:UsersOfficeDocumentsVisual_StudioPAULAUpdatePAULA2.c
push str.IsUploadPackageUpdatesAllowed
push esi
call fcn.00426230
push edi
call fcn.004656c0
add esp, 4
xorps xmm3, xmm3
xor eax, eax
xorps xmm2, xmm2
nop
movd xmm1, dword [ebp + eax - 0x118]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
paddd xmm3, xmm1
movd xmm1, dword [ebp + eax - 0x114]
punpcklbw xmm1, xmm0
add eax, 8
punpcklwd xmm1, xmm0
paddd xmm2, xmm1
cmp eax, 0x10
jb 0x4e2690
mov ecx, dword [ebp - 0x138]
paddd xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
movd eax, xmm2
add eax, dword [ebp - 0x134]
cmp eax, ecx
je 0x4e275b
cmp dword [0x6837ec], 0
je 0x4e2933
push eax
push ecx
lea eax, [ebp - 0x108]
push eax
push str.:6:IsUploadPackageUpdatesAllowed___FAILED:_The_file_flags_CheckSum_has_failed:_The_flag_file___s__is_invalid.__It_should_be__ld_but_was_found_to_be__ld.
call fcn.00424a90
lea eax, [ebp - 0x108]
push eax
call fcn.00429a50
add esp, 0x14
test eax, eax
jne 0x4e27f3
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_DeleteFile___s___FAILED:_Could_not_delete_the_invalid_file_lock_flag:__s
call fcn.00424a90
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x130]
cmp eax, 0x6ddd00
jbe 0x4e2780
push eax
push str.:9:IsUploadPackageUpdatesAllowed___encountered_a_SERIOUS_EXCEPTION:_The_time_out_cannot_be_greater_than_TWO_HOURS_but_was_found_to_be__ld
call fcn.00424a90
add esp, 8
mov dword [ebp - 0x130], 0x6ddd00
push 0x2b8
lea eax, [ebp - 0x128]
push str.C:UsersOfficeDocumentsVisual_StudioPAULAUpdatePAULA2.c
push eax
call fcn.004d7dc0
movups xmm0, xmmword [ebp - 0x118]
push ecx
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x128]
movups xmmword [eax], xmm0
call fcn.004d96a0
cdq
add esp, 0x20
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0x130]
jl 0x4e2809
lea eax, [ebp - 0x108]
push eax
call fcn.00429a50
add esp, 4
test eax, eax
jne 0x4e2809
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_DeleteFile___s___FAILED:_Could_not_delete_the_expired_lock_flag:__s
call fcn.00424a90
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
call ebx
push 0x28b
push str.C:UsersOfficeDocumentsVisual_StudioPAULAUpdatePAULA2.c
push str.IsUploadPackageUpdatesAllowed
push esi
mov ebx, eax
call fcn.00426230
cmp dword [0x6837ec], 0
je 0x4e2915
push ebx
push str._GetLastError_
push 0x10
push dword [ebp - 0x12c]
lea eax, [ebp - 0x108]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_SYSTEMTIME_from___s_.__Read__ld_bytes_of__ld:__s_ld
call fcn.00424a90
add esp, 0x18
jmp 0x4e2915
call ebx
push 0x281
push str.C:UsersOfficeDocumentsVisual_StudioPAULAUpdatePAULA2.c
push str.IsUploadPackageUpdatesAllowed
push esi
mov ebx, eax
call fcn.00426230
cmp dword [0x6837ec], 0
je 0x4e2915
push ebx
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_Time_Out_DWORD_from___s_:__s_ld
jmp 0x4e290d
call ebx
push 0x276
push str.C:UsersOfficeDocumentsVisual_StudioPAULAUpdatePAULA2.c
push str.IsUploadPackageUpdatesAllowed
push esi
mov ebx, eax
call fcn.00426230
cmp dword [0x6837ec], 0
je 0x4e2915
push ebx
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_Process_Identifier_from___s_:__s_ld
jmp 0x4e290d
call ebx
push 0x26c
push str.C:UsersOfficeDocumentsVisual_StudioPAULAUpdatePAULA2.c
push str.IsUploadPackageUpdatesAllowed
push esi
mov ebx, eax
call fcn.00426230
cmp dword [0x6837ec], 0
je 0x4e2915
push ebx
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_checksum_from___s_:__s_ld
call fcn.00424a90
add esp, 0x10
push edi
call fcn.004656c0
add esp, 4
cmp dword [0x6837ec], 0
jne 0x4e27f3
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov dword [0x6837ec], 1
call fcn.004e24a0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov dword [0x6837ec], 0
pop edi
pop esi
pop ebx
call fcn.004e50dc
mov esp, ebp
pop ebp
ret