Function at 0x4d4784
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
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 ebx, ebx
push 0x104
push ebx
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 0x1dbe
mov esi, str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
mov dword [ebp - 0x11c], ebx
push esi
push 0x20
call fcn.00460f18
mov eax, 0x6ddd00
add esp, 0x18
cmp dword [ebp + 8], eax
jbe 0x4d47e2
mov dword [ebp + 8], eax
push 0x1dc6
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004c9210
lea eax, [ebp - 0x108]
push str.UULF.lts
push eax
call fcn.0046379e
add esp, 0x14
mov ecx, ebx
mov edx, ebx
movzx eax, byte [ebp + ecx - 0x118]
add edx, eax
inc ecx
cmp ecx, 0x10
jb 0x4d480c
push ebx
push 0x61a8
push ebx
push SQLGetDiagRec
push 4
push ebx
push 7
lea eax, [ebp - 0x108]
mov dword [ebp - 0x120], edx
push 3
push eax
call fcn.004286d2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x24
mov edi, eax
call esi
cmp edi, 0xffffffff
jne 0x4d486d
push eax
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
push str.:7:DisallowUploadPackageUpdates__ld__FAILED:_CreateFile__s__FAILED:__s_ld
jmp 0x4d49ff
call fcn.004ee499
add dword [ebp - 0x120], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x6a11d0], eax
lea eax, [ebp - 0x11c]
push eax
push 4
lea eax, [ebp - 0x120]
push eax
push edi
call ebx
test eax, eax
je 0x4d49d1
cmp dword [ebp - 0x11c], 4
jb 0x4d49d1
push 0
lea eax, [ebp - 0x11c]
push eax
push 4
push 0x6a11d0
push edi
call ebx
test eax, eax
je 0x4d49a1
cmp dword [ebp - 0x11c], 4
jb 0x4d49a1
push 0
lea eax, [ebp - 0x11c]
push eax
push 4
lea eax, [ebp + 8]
push eax
push edi
call ebx
test eax, eax
je 0x4d4971
cmp dword [ebp - 0x11c], 4
jb 0x4d4971
push 0
lea eax, [ebp - 0x11c]
push eax
push 0x10
lea eax, [ebp - 0x118]
push eax
push edi
call ebx
test eax, eax
je 0x4d493e
cmp dword [ebp - 0x11c], 0x10
jb 0x4d493e
push 0x1e15
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.DisallowUploadPackageUpdates
push edi
call fcn.00426fac
push 0x20
call fcn.0046733c
xor eax, eax
pop ecx
inc eax
jmp 0x4d4a10
call esi
push 0x1e0e
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.DisallowUploadPackageUpdates
push edi
mov esi, eax
call fcn.00426fac
push esi
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
push str.:7:DisallowUploadPackageUpdates__ld__FAILED:_WriteFile___FAILED_to_write_the_SYSTEMTIME_to___s_:__s_ld
jmp 0x4d49ff
call esi
push 0x1e04
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.DisallowUploadPackageUpdates
push edi
mov esi, eax
call fcn.00426fac
push esi
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
push str.:7:DisallowUploadPackageUpdates__ld__FAILED:_WriteFile___FAILED_to_write_the_Time_Out_DWORD_to___s_:__s_ld
jmp 0x4d49ff
call esi
push 0x1df9
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.DisallowUploadPackageUpdates
push edi
mov esi, eax
call fcn.00426fac
push esi
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
push str.:7:DisallowUploadPackageUpdates__ld__FAILED:_WriteFile___FAILED_to_write_the_Process_Identifier_to___s_:__s_ld
jmp 0x4d49ff
call esi
push 0x1def
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_UpdatePAULA.c
push str.DisallowUploadPackageUpdates
push edi
mov esi, eax
call fcn.00426fac
push esi
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
push str.:7:DisallowUploadPackageUpdates__ld__FAILED:_WriteFile___FAILED_to_write_the_checksum_to___s_:__s_ld
call fcn.004255b9
push 0x20
call fcn.0046733c
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret