Function at 0x4ad00b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x5345d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov word [ebp - 0x13c], bx
lea edi, [ebp - 0x13a]
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 - 0x14c], bx
lea edi, [ebp - 0x14a]
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 ebx
push eax
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x114], bl
call fcn.004b53e0
mov esi, dword [ebp + 8]
add esp, 0xc
neg esi
sbb esi, esi
push 0x24e
and esi, 0xffffffe0
add esi, 0x20
push str..UpdatePAULA2.c
push esi
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x124], ebx
call fcn.004463fb
add esp, 0xc
push str.UULF.lts
lea edi, [ebp - 0x114]
call fcn.0044286c
pop ecx
push ebx
push 0x61a8
push SQLGetDiagRec
push 3
mov eax, edi
push 3
push eax
call fcn.0041948d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x18
mov dword [ebp - 0x118], eax
call edi
cmp dword [ebp - 0x118], 0xffffffff
jne 0x4ad11c
cmp eax, 2
je 0x4ad10e
cmp eax, 3
je 0x4ad10e
cmp eax, 0xf
je 0x4ad10e
cmp eax, 0x35
je 0x4ad10e
push eax
push str._GetLastError_
lea eax, [ebp - 0x114]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_CreateFile__s__FAILED:__s_ld
call fcn.004178df
add esp, 0x10
push esi
call fcn.00447288
xor eax, eax
inc eax
jmp 0x4ad42a
push ebx
lea eax, [ebp - 0x11c]
push eax
push 4
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad3bf
cmp dword [ebp - 0x11c], 4
jb 0x4ad3bf
push ebx
lea eax, [ebp - 0x11c]
push eax
push 4
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad38b
cmp dword [ebp - 0x11c], 4
jb 0x4ad38b
push ebx
lea eax, [ebp - 0x11c]
push eax
push 4
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad353
cmp dword [ebp - 0x11c], 4
jb 0x4ad353
push ebx
lea eax, [ebp - 0x11c]
push eax
push 0x10
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad308
cmp dword [ebp - 0x11c], 0x10
jb 0x4ad308
mov edi, dword [ebp - 0x118]
call fcn.0041d762
push esi
call fcn.00447288
pop ecx
xor eax, eax
xor ecx, ecx
movzx edx, byte [ebp + ecx - 0x13c]
add eax, edx
inc ecx
cmp ecx, 0x10
jb 0x4ad1fa
add eax, dword [ebp - 0x12c]
cmp eax, dword [ebp - 0x128]
je 0x4ad26f
cmp dword [0x64628c], ebx
je 0x4ad414
push eax
push dword [ebp - 0x128]
lea eax, [ebp - 0x114]
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.004178df
add esp, 0x10
lea eax, [ebp - 0x114]
call fcn.0041aa09
test eax, eax
jne 0x4ad267
push str._GetLastError_
lea eax, [ebp - 0x114]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_DeleteFile___s___FAILED:_Could_not_delete_the_invalid_file_lock_flag:__s
call fcn.004178df
add esp, 0xc
xor eax, eax
inc eax
jmp 0x4ad42b
mov esi, 0x6ddd00
cmp dword [ebp - 0x124], esi
jbe 0x4ad294
push dword [ebp - 0x124]
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.004178df
pop ecx
pop ecx
mov dword [ebp - 0x124], esi
push 0x2b8
lea eax, [ebp - 0x14c]
push str..UpdatePAULA2.c
push eax
call fcn.004a57c9
push ecx
mov edi, esp
lea esi, [ebp - 0x13c]
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 - 0x14c]
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.004a428c
push eax
call fcn.004b7159
add esp, 0x24
cmp eax, dword [ebp - 0x124]
jl 0x4ad301
lea eax, [ebp - 0x114]
call fcn.0041aa09
test eax, eax
jne 0x4ad301
push str._GetLastError_
lea eax, [ebp - 0x114]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_DeleteFile___s___FAILED:_Could_not_delete_the_expired_lock_flag:__s
jmp 0x4ad25f
xor eax, eax
jmp 0x4ad42b
call edi
mov edi, dword [ebp - 0x118]
mov dword [ebp - 0x120], eax
call fcn.0041d762
cmp dword [0x64628c], ebx
je 0x4ad3f9
push dword [ebp - 0x120]
lea eax, [ebp - 0x114]
push str._GetLastError_
push 0x10
push dword [ebp - 0x11c]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_SYSTEMTIME_from___s_.__Read__ld_bytes_of__ld:__s_ld
call fcn.004178df
add esp, 0x18
jmp 0x4ad3f9
call edi
mov edi, dword [ebp - 0x118]
mov dword [ebp - 0x120], eax
call fcn.0041d762
cmp dword [0x64628c], ebx
je 0x4ad3f9
push dword [ebp - 0x120]
lea eax, [ebp - 0x114]
push str._GetLastError_
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_Time_Out_DWORD_from___s_:__s_ld
jmp 0x4ad3f1
call edi
mov edi, dword [ebp - 0x118]
mov dword [ebp - 0x120], eax
call fcn.0041d762
cmp dword [0x64628c], ebx
je 0x4ad3f9
push dword [ebp - 0x120]
lea eax, [ebp - 0x114]
push str._GetLastError_
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_Process_Identifier_from___s_:__s_ld
jmp 0x4ad3f1
call edi
mov edi, dword [ebp - 0x118]
mov dword [ebp - 0x120], eax
call fcn.0041d762
cmp dword [0x64628c], ebx
je 0x4ad3f9
push dword [ebp - 0x120]
lea eax, [ebp - 0x114]
push str._GetLastError_
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_checksum_from___s_:__s_ld
call fcn.004178df
add esp, 0x10
push esi
call fcn.00447288
cmp dword [0x64628c], ebx
pop ecx
jne 0x4ad267
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov dword [0x64628c], 1
call fcn.004ad00b
mov dword [0x64628c], ebx
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
leave
ret