Function at 0x4d884e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
xor ebx, ebx
push esi
push edi
lea edi, [ebp - 0x118]
mov dword [ebp - 0x134], ebx
stosd dword es:[edi], eax
push 0x104
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x128]
stosd dword es:[edi], eax
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 0x20
pop eax
xor edi, edi
mov dword [ebp - 0x12c], ebx
cmp dword [ebp + 8], ebx
push 0x1ec9
cmove edi, eax
mov dword [ebp - 0x138], ebx
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push edi
mov dword [ebp - 0x130], ebx
call fcn.00460f18
lea eax, [ebp - 0x108]
push str.UULF.lts
push eax
call fcn.0046379e
push ebx
push 0x61a8
push ebx
push SQLGetDiagRec
push 3
push ebx
push 7
lea eax, [ebp - 0x108]
push 3
push eax
call fcn.004286d2
add esp, 0x44
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
jne 0x4d893f
cmp eax, 2
je 0x4d8931
cmp eax, 3
je 0x4d8931
cmp eax, 0xf
je 0x4d8931
cmp eax, 0x35
je 0x4d8931
push eax
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_CreateFile__s__FAILED:__s_ld
call fcn.004255b9
add esp, 0x10
push edi
call fcn.0046733c
xor eax, eax
inc eax
jmp 0x4d8c88
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebp - 0x134]
push eax
push esi
call ebx
test eax, eax
je 0x4d8c15
cmp dword [ebp - 0x12c], 4
jb 0x4d8c15
push 0
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebp - 0x138]
push eax
push esi
call ebx
test eax, eax
je 0x4d8bdb
cmp dword [ebp - 0x12c], 4
jb 0x4d8bdb
push 0
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
je 0x4d8b9d
cmp dword [ebp - 0x12c], 4
jb 0x4d8b9d
push 0
lea eax, [ebp - 0x12c]
push eax
push 0x10
lea eax, [ebp - 0x118]
push eax
push esi
call ebx
test eax, eax
je 0x4d8b4c
cmp dword [ebp - 0x12c], 0x10
jb 0x4d8b4c
push 0x1f0e
mov ebx, str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push ebx
push str.IsUploadPackageUpdatesAllowed
push esi
call fcn.00426fac
push edi
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 0x4d8a0e
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 - 0x138]
cmp eax, dword [ebp - 0x134]
je 0x4d8aaa
cmp dword [0x6a1390], 0
je 0x4d8c71
push eax
push dword [ebp - 0x134]
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.004255b9
lea eax, [ebp - 0x108]
push eax
call fcn.00429e69
add esp, 0x14
test eax, eax
jne 0x4d8b3d
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
jmp 0x4d8b35
mov esi, 0x6ddd00
cmp dword [ebp - 0x130], esi
jbe 0x4d8acf
push dword [ebp - 0x130]
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.004255b9
pop ecx
pop ecx
mov dword [ebp - 0x130], esi
push 0x1f33
lea eax, [ebp - 0x128]
push ebx
push eax
call fcn.004c9210
push ecx
mov edi, esp
lea esi, [ebp - 0x118]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x128]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004ca88e
push eax
call fcn.004ee48a
add esp, 0x24
cmp eax, dword [ebp - 0x130]
jl 0x4d8b45
lea eax, [ebp - 0x108]
push eax
call fcn.00429e69
pop ecx
test eax, eax
jne 0x4d8b45
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.004255b9
add esp, 0xc
xor eax, eax
inc eax
jmp 0x4d8c89
xor eax, eax
jmp 0x4d8c89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1f06
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.IsUploadPackageUpdatesAllowed
push esi
mov ebx, eax
call fcn.00426fac
cmp dword [0x6a1390], 0
je 0x4d8c55
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.004255b9
add esp, 0x18
jmp 0x4d8c55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1efc
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.IsUploadPackageUpdatesAllowed
push esi
mov ebx, eax
call fcn.00426fac
cmp dword [0x6a1390], 0
je 0x4d8c55
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 0x4d8c4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1ef1
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.IsUploadPackageUpdatesAllowed
push esi
mov ebx, eax
call fcn.00426fac
cmp dword [0x6a1390], 0
je 0x4d8c55
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 0x4d8c4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1ee7
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.IsUploadPackageUpdatesAllowed
push esi
mov ebx, eax
call fcn.00426fac
cmp dword [0x6a1390], 0
je 0x4d8c55
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.004255b9
add esp, 0x10
push edi
call fcn.0046733c
cmp dword [0x6a1390], 0
pop ecx
jne 0x4d8b3d
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov dword [0x6a1390], 1
call fcn.004d884e
and dword [0x6a1390], 0
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret