Function at 0x4fc317
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc0]
sub esp, 0x140
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0xbc], eax
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov word [ebp - 0x70], bx
lea edi, [ebp - 0x6e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x80], bx
lea edi, [ebp - 0x7e]
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 - 0x47]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x48], bl
call fcn.00508d00
mov eax, dword [ebp + 0xc8]
neg eax
sbb eax, eax
and eax, 0xffffffe0
push 0x24e
add eax, 0x20
mov esi, str..UpdatePAULA2.c
push esi
push eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], eax
call fcn.00401267
lea eax, [ebp - 0x48]
push str.UULF.lts
push eax
call fcn.00402f81
push ebx
push 0x61a8
push ebx
push SQLGetDiagRec
push 3
push ebx
push 7
lea eax, [ebp - 0x48]
push 3
push eax
call fcn.004016d1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x44
mov dword [ebp - 0x4c], eax
call edi
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x4fc40e
cmp eax, 2
je 0x4fc3fe
cmp eax, 3
je 0x4fc3fe
cmp eax, 0xf
je 0x4fc3fe
cmp eax, 0x35
je 0x4fc3fe
push eax
push str._GetLastError_
lea eax, [ebp - 0x48]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_CreateFile__s__FAILED:__s_ld
call fcn.004020c2
add esp, 0x10
push dword [ebp - 0x58]
call fcn.0040317a
xor eax, eax
inc eax
jmp 0x4fc6b2
push ebx
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fc647
cmp dword [ebp - 0x50], 4
jb 0x4fc647
push ebx
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fc617
cmp dword [ebp - 0x50], 4
jb 0x4fc617
push ebx
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fc5e7
cmp dword [ebp - 0x50], 4
jb 0x4fc5e7
push ebx
lea eax, [ebp - 0x50]
push eax
push 0x10
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fc5a3
cmp dword [ebp - 0x50], 0x10
jb 0x4fc5a3
push 0x293
push esi
push str.IsUploadPackageUpdatesAllowed
push dword [ebp - 0x4c]
call fcn.00403134
push dword [ebp - 0x58]
call fcn.0040317a
pop ecx
xor eax, eax
xor ecx, ecx
movzx edx, byte [ebp + ecx - 0x70]
add eax, edx
inc ecx
cmp ecx, 0x10
jb 0x4fc4c6
add eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x5c]
je 0x4fc527
cmp dword [0x763064], ebx
je 0x4fc69a
push eax
push dword [ebp - 0x5c]
lea eax, [ebp - 0x48]
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.004020c2
lea eax, [ebp - 0x48]
push eax
call fcn.00401825
add esp, 0x14
test eax, eax
jne 0x4fc51f
push str._GetLastError_
lea eax, [ebp - 0x48]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_DeleteFile___s___FAILED:_Could_not_delete_the_invalid_file_lock_flag:__s
call fcn.004020c2
add esp, 0xc
xor eax, eax
inc eax
jmp 0x4fc6b3
mov edi, 0x6ddd00
cmp dword [ebp - 0x54], edi
jbe 0x4fc543
push dword [ebp - 0x54]
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.004020c2
pop ecx
pop ecx
mov dword [ebp - 0x54], edi
push 0x2b8
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040169a
push ecx
mov edi, esp
lea esi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x80]
mov edi, esp
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.0040141a
push eax
call fcn.00512ab0
add esp, 0x24
cmp eax, dword [ebp - 0x54]
jl 0x4fc59c
lea eax, [ebp - 0x48]
push eax
call fcn.00401825
test eax, eax
pop ecx
jne 0x4fc59c
push str._GetLastError_
lea eax, [ebp - 0x48]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_DeleteFile___s___FAILED:_Could_not_delete_the_expired_lock_flag:__s
jmp 0x4fc517
xor eax, eax
jmp 0x4fc6b3
call edi
push 0x28b
push esi
push str.IsUploadPackageUpdatesAllowed
push dword [ebp - 0x4c]
mov edi, eax
call fcn.00403134
cmp dword [0x763064], ebx
je 0x4fc67d
push edi
push str._GetLastError_
push 0x10
push dword [ebp - 0x50]
lea eax, [ebp - 0x48]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_SYSTEMTIME_from___s_.__Read__ld_bytes_of__ld:__s_ld
call fcn.004020c2
add esp, 0x18
jmp 0x4fc67d
call edi
push 0x281
push esi
push str.IsUploadPackageUpdatesAllowed
push dword [ebp - 0x4c]
mov edi, eax
call fcn.00403134
cmp dword [0x763064], ebx
je 0x4fc67d
push edi
push str._GetLastError_
lea eax, [ebp - 0x48]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_Time_Out_DWORD_from___s_:__s_ld
jmp 0x4fc675
call edi
push 0x276
push esi
push str.IsUploadPackageUpdatesAllowed
push dword [ebp - 0x4c]
mov edi, eax
call fcn.00403134
cmp dword [0x763064], ebx
je 0x4fc67d
push edi
push str._GetLastError_
lea eax, [ebp - 0x48]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_Process_Identifier_from___s_:__s_ld
jmp 0x4fc675
call edi
push 0x26c
push esi
push str.IsUploadPackageUpdatesAllowed
push dword [ebp - 0x4c]
mov edi, eax
call fcn.00403134
cmp dword [0x763064], ebx
je 0x4fc67d
push edi
push str._GetLastError_
lea eax, [ebp - 0x48]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_checksum_from___s_:__s_ld
call fcn.004020c2
add esp, 0x10
push dword [ebp - 0x58]
call fcn.0040317a
cmp dword [0x763064], ebx
pop ecx
jne 0x4fc51f
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x58]
mov dword [0x763064], 1
call fcn.004fc317
mov dword [0x763064], ebx
pop ecx
mov ecx, dword [ebp + 0xbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0xc0
leave
ret