Function at 0x5121fa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x134], bx
lea edi, [ebp - 0x132]
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 - 0x10f]
push ebx
push eax
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 0x110], bl
call fcn.005306b0
add esp, 0xc
push 0x1e2f
push str..UpdatePAULA.c
push 0x20
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x124], ebx
call fcn.00474c00
add esp, 0xc
push str.UULF.lts
lea edi, [ebp - 0x110]
call fcn.00470e3d
pop ecx
push ebx
push 0x61a8
push 3
push 7
mov eax, edi
push 3
push eax
mov eax, SQLGetDiagRec
call fcn.0042eb42
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x18
mov dword [ebp - 0x114], eax
call esi
cmp dword [ebp - 0x114], 0xffffffff
jne 0x5122e8
cmp eax, 2
je 0x5122db
cmp eax, 3
je 0x5122db
cmp eax, 0xf
je 0x5122db
cmp eax, 0x35
je 0x5122db
push eax
push str._GetLastError_
mov eax, edi
push eax
push str.:7:EnableUploadPackageUpdates___FAILED:_CreateFile__s__FAILED:__s_ld
call fcn.0042b70b
add esp, 0x10
push 0x20
call fcn.00475a9e
pop ecx
jmp 0x512521
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x118]
push eax
push 4
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x114]
call edi
test eax, eax
je 0x5124f1
cmp dword [ebp - 0x118], 4
jb 0x5124f1
push ebx
lea eax, [ebp - 0x118]
push eax
push 4
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x114]
call edi
test eax, eax
je 0x5124ce
cmp dword [ebp - 0x118], 4
jb 0x5124ce
push ebx
lea eax, [ebp - 0x118]
push eax
push 4
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x114]
call edi
test eax, eax
je 0x5124ab
cmp dword [ebp - 0x118], 4
jb 0x5124ab
push ebx
lea eax, [ebp - 0x118]
push eax
push 0x10
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x114]
call edi
test eax, eax
je 0x512488
cmp dword [ebp - 0x118], 0x10
jb 0x512488
mov edi, dword [ebp - 0x114]
call fcn.00435716
push 0x20
call fcn.00475a9e
pop ecx
xor ecx, ecx
xor eax, eax
movzx edx, byte [ebp + eax - 0x134]
add ecx, edx
inc eax
cmp eax, 0x10
jb 0x5123bd
mov eax, dword [ebp - 0x120]
add ecx, eax
cmp ecx, dword [ebp - 0x11c]
je 0x51244f
cmp dword [0x7101e0], ebx
jne 0x512407
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x7101e0], 1
call fcn.005121fa
mov dword [0x7101e0], ebx
jmp 0x512523
lea eax, [ebp - 0x110]
push eax
push str.:6:EnableUploadPackageUpdates___FAILED:_The_file_flags_CheckSum_has_failed:_The_flag_file___s__is_invalid.
call fcn.0042b70b
pop ecx
pop ecx
lea eax, [ebp - 0x110]
call fcn.004314ff
test eax, eax
jne 0x512447
push str._GetLastError_
lea eax, [ebp - 0x110]
push eax
push str.:7:EnableUploadPackageUpdates___FAILED:_DeleteFile___s___FAILED:_Could_not_delete_the_invalid_file_lock_flag:__s
call fcn.0042b70b
add esp, 0xc
jmp 0x512521
xor eax, eax
inc eax
jmp 0x512523
cmp eax, dword [0x70ff18]
je 0x512466
push str.:2:EnableUploadPackageUpdates___could_not_complete_because_the_lock_was_not_established_by_this_process.
call fcn.0042bd38
jmp 0x5122e2
lea eax, [ebp - 0x110]
call fcn.004314ff
test eax, eax
jne 0x512447
push str._GetLastError_
lea eax, [ebp - 0x110]
push eax
push str.:7:EnableUploadPackageUpdates___FAILED:_DeleteFile___s___FAILED:_Could_not_delete_the_lock_file_flag:__s
jmp 0x51243a
call esi
mov edi, dword [ebp - 0x114]
mov esi, eax
call fcn.00435716
push esi
push str._GetLastError_
lea eax, [ebp - 0x110]
push eax
push str.:7:EnableUploadPackageUpdates___FAILED:_ReadFile___FAILED_to_read_the_SYSTEMTIME_from___s_:__s_ld
jmp 0x512512
call esi
mov edi, dword [ebp - 0x114]
mov esi, eax
call fcn.00435716
push esi
push str._GetLastError_
lea eax, [ebp - 0x110]
push eax
push str.:7:EnableUploadPackageUpdates___FAILED:_ReadFile___FAILED_to_read_the_Time_Out_DWORD_from___s_:__s_ld
jmp 0x512512
call esi
mov edi, dword [ebp - 0x114]
mov esi, eax
call fcn.00435716
push esi
push str._GetLastError_
lea eax, [ebp - 0x110]
push eax
push str.:7:EnableUploadPackageUpdates___FAILED:_ReadFile___FAILED_to_read_the_Process_Identifier_from___s_:__s_ld
jmp 0x512512
call esi
mov edi, dword [ebp - 0x114]
mov esi, eax
call fcn.00435716
push esi
push str._GetLastError_
lea eax, [ebp - 0x110]
push eax
push str.:7:EnableUploadPackageUpdates___FAILED:_ReadFile___FAILED_to_read_the_checksum_from___s_:__s_ld
call fcn.0042b70b
push 0x20
call fcn.00475a9e
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret