Function at 0x4d4a1f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x118]
stosd dword es:[edi], eax
xor esi, esi
push 0x104
push esi
mov dword [ebp - 0x124], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
call fcn.004e4da0
push 0x1e31
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push 0x20
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x128], esi
call fcn.00460f18
lea eax, [ebp - 0x108]
push str.UULF.lts
push eax
call fcn.0046379e
push esi
push 0x61a8
push esi
push SQLGetDiagRec
push 3
push esi
push 7
lea eax, [ebp - 0x108]
push 3
push eax
call fcn.004286d2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x44
mov edi, eax
call ebx
cmp edi, 0xffffffff
jne 0x4d4afb
cmp eax, 2
je 0x4d4aee
cmp eax, 3
je 0x4d4aee
cmp eax, 0xf
je 0x4d4aee
cmp eax, 0x35
je 0x4d4aee
push eax
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:7:EnableUploadPackageUpdates___FAILED:_CreateFile__s__FAILED:__s_ld
call fcn.004255b9
add esp, 0x10
push 0x20
call fcn.0046733c
pop ecx
jmp 0x4d4d8b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x11c]
push eax
push 4
lea eax, [ebp - 0x124]
push eax
push edi
call esi
test eax, eax
je 0x4d4d51
cmp dword [ebp - 0x11c], 4
jb 0x4d4d51
push 0
lea eax, [ebp - 0x11c]
push eax
push 4
lea eax, [ebp - 0x120]
push eax
push edi
call esi
test eax, eax
je 0x4d4d24
cmp dword [ebp - 0x11c], 4
jb 0x4d4d24
push 0
lea eax, [ebp - 0x11c]
push eax
push 4
lea eax, [ebp - 0x128]
push eax
push edi
call esi
test eax, eax
je 0x4d4cf7
cmp dword [ebp - 0x11c], 4
jb 0x4d4cf7
push 0
lea eax, [ebp - 0x11c]
push eax
push 0x10
lea eax, [ebp - 0x118]
push eax
push edi
call esi
test eax, eax
je 0x4d4cc7
cmp dword [ebp - 0x11c], 0x10
jb 0x4d4cc7
push 0x1e78
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.EnableUploadPackageUpdates
push edi
call fcn.00426fac
push 0x20
call fcn.0046733c
pop ecx
xor eax, eax
xorps xmm2, xmm2
movd xmm1, dword [ebp + eax - 0x118]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
add eax, 4
punpcklwd xmm1, xmm0
paddd xmm2, xmm1
cmp eax, 0x10
jb 0x4d4bca
mov ecx, dword [ebp - 0x120]
movaps xmm0, xmm2
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
movd eax, xmm2
add eax, ecx
cmp eax, dword [ebp - 0x124]
je 0x4d4c8c
cmp dword [0x6a138c], 0
jne 0x4d4c42
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x6a138c], 1
call fcn.004d4a1f
and dword [0x6a138c], 0
jmp 0x4d4d8d
lea eax, [ebp - 0x108]
push eax
push str.:6:EnableUploadPackageUpdates___FAILED:_The_file_flags_CheckSum_has_failed:_The_flag_file___s__is_invalid.
call fcn.004255b9
lea eax, [ebp - 0x108]
push eax
call fcn.00429e69
add esp, 0xc
test eax, eax
jne 0x4d4c84
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:7:EnableUploadPackageUpdates___FAILED:_DeleteFile___s___FAILED:_Could_not_delete_the_invalid_file_lock_flag:__s
call fcn.004255b9
add esp, 0xc
jmp 0x4d4d8b
xor eax, eax
inc eax
jmp 0x4d4d8d
cmp ecx, dword [0x6a11d0]
je 0x4d4ca3
push str.:2:EnableUploadPackageUpdates___could_not_complete_because_the_lock_was_not_established_by_this_process.
call fcn.00425c08
jmp 0x4d4af5
lea eax, [ebp - 0x108]
push eax
call fcn.00429e69
pop ecx
test eax, eax
jne 0x4d4c84
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:7:EnableUploadPackageUpdates___FAILED:_DeleteFile___s___FAILED:_Could_not_delete_the_lock_file_flag:__s
jmp 0x4d4c77
call ebx
push 0x1e70
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.EnableUploadPackageUpdates
push edi
mov esi, eax
call fcn.00426fac
push esi
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:7:EnableUploadPackageUpdates___FAILED:_ReadFile___FAILED_to_read_the_SYSTEMTIME_from___s_:__s_ld
jmp 0x4d4d7c
call ebx
push 0x1e66
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.EnableUploadPackageUpdates
push edi
mov esi, eax
call fcn.00426fac
push esi
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:7:EnableUploadPackageUpdates___FAILED:_ReadFile___FAILED_to_read_the_Time_Out_DWORD_from___s_:__s_ld
jmp 0x4d4d7c
call ebx
push 0x1e5b
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.EnableUploadPackageUpdates
push edi
mov esi, eax
call fcn.00426fac
push esi
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:7:EnableUploadPackageUpdates___FAILED:_ReadFile___FAILED_to_read_the_Process_Identifier_from___s_:__s_ld
jmp 0x4d4d7c
call ebx
push 0x1e51
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.EnableUploadPackageUpdates
push edi
mov esi, eax
call fcn.00426fac
push esi
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:7:EnableUploadPackageUpdates___FAILED:_ReadFile___FAILED_to_read_the_checksum_from___s_:__s_ld
call fcn.004255b9
push 0x20
call fcn.0046733c
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret