Function at 0x511f94
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
mov word [ebp - 0x12c], si
lea edi, [ebp - 0x12a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x103
stosw word es:[edi], ax
lea eax, [ebp - 0x113]
push esi
push eax
mov dword [ebp - 0x11c], esi
mov byte [ebp - 0x114], 0
call fcn.005306b0
add esp, 0xc
push 0x1dbc
mov edi, str..UpdatePAULA.c
push edi
push 0x20
mov dword [ebp - 0x118], esi
call fcn.00474c00
mov eax, 0x6ddd00
add esp, 0xc
cmp dword [ebp + 8], eax
jbe 0x51200a
mov dword [ebp + 8], eax
push 0x1dc4
lea eax, [ebp - 0x12c]
push edi
push eax
call fcn.004fb92f
add esp, 0xc
push str.UULF.lts
lea edi, [ebp - 0x114]
call fcn.00470e3d
pop ecx
mov dword [ebp - 0x11c], esi
xor eax, eax
movzx ecx, byte [ebp + eax - 0x12c]
add dword [ebp - 0x11c], ecx
inc eax
cmp eax, 0x10
jb 0x512038
push esi
push 0x61a8
push 4
push 7
lea eax, [ebp - 0x114]
push 3
push eax
mov eax, SQLGetDiagRec
call fcn.0042eb42
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x18
mov ebx, eax
call edi
cmp ebx, 0xffffffff
jne 0x512095
push eax
push str._GetLastError_
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
push str.:7:DisallowUploadPackageUpdates__ld__FAILED:_CreateFile__s__FAILED:__s_ld
jmp 0x5121d9
call fcn.00531157
add dword [ebp - 0x11c], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x70ff18], eax
lea eax, [ebp - 0x118]
push eax
push 4
lea eax, [ebp - 0x11c]
push eax
push ebx
call esi
test eax, eax
je 0x5121b9
cmp dword [ebp - 0x118], 4
jb 0x5121b9
push 0
lea eax, [ebp - 0x118]
push eax
push 4
push 0x70ff18
push ebx
call esi
test eax, eax
je 0x512197
cmp dword [ebp - 0x118], 4
jb 0x512197
push 0
lea eax, [ebp - 0x118]
push eax
push 4
lea eax, [ebp + 8]
push eax
push ebx
call esi
test eax, eax
je 0x512175
cmp dword [ebp - 0x118], 4
jb 0x512175
push 0
lea eax, [ebp - 0x118]
push eax
push 0x10
lea eax, [ebp - 0x12c]
push eax
push ebx
call esi
test eax, eax
je 0x512153
cmp dword [ebp - 0x118], 0x10
jb 0x512153
mov edi, ebx
call fcn.00435716
push 0x20
call fcn.00475a9e
xor eax, eax
inc eax
jmp 0x5121ea
call edi
mov edi, ebx
mov esi, eax
call fcn.00435716
push esi
push str._GetLastError_
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
push str.:7:DisallowUploadPackageUpdates__ld__FAILED:_WriteFile___FAILED_to_write_the_SYSTEMTIME_to___s_:__s_ld
jmp 0x5121d9
call edi
mov edi, ebx
mov esi, eax
call fcn.00435716
push esi
push str._GetLastError_
lea eax, [ebp - 0x114]
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 0x5121d9
call edi
mov edi, ebx
mov esi, eax
call fcn.00435716
push esi
push str._GetLastError_
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
push str.:7:DisallowUploadPackageUpdates__ld__FAILED:_WriteFile___FAILED_to_write_the_Process_Identifier_to___s_:__s_ld
jmp 0x5121d9
call edi
mov edi, ebx
mov esi, eax
call fcn.00435716
push esi
push str._GetLastError_
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
push str.:7:DisallowUploadPackageUpdates__ld__FAILED:_WriteFile___FAILED_to_write_the_checksum_to___s_:__s_ld
call fcn.0042b70b
add esp, 0x14
push 0x20
call fcn.00475a9e
xor eax, eax
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret