Function at 0x59b9b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x6fb448]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x138], 0
mov word [ebp - 0x12c], 0
xor eax, eax
mov dword [ebp - 0x12a], eax
mov dword [ebp - 0x126], eax
mov dword [ebp - 0x122], eax
mov word [ebp - 0x11e], ax
mov word [ebp - 0x154], 0
xor ecx, ecx
mov dword [ebp - 0x152], ecx
mov dword [ebp - 0x14e], ecx
mov dword [ebp - 0x14a], ecx
mov word [ebp - 0x146], cx
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x144], 0
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea edx, [ebp - 0x10f]
push edx
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x158], 0
cmp dword [ebp + 8], 0
je 0x59baa8
mov dword [ebp - 0x158], 0
jmp 0x59bab2
mov dword [ebp - 0x158], 0x20
push 0x24e
push 0x6f1de4
mov eax, dword [ebp - 0x158]
push eax
call fcn.004016ae
add esp, 0xc
push str.UULF.lts
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040311b
add esp, 8
push 0
push 0x61a8
push 0
push SQLGetDiagRec
push 3
push 0
push 7
push 3
lea edx, [ebp - 0x110]
push edx
call fcn.004020c2
add esp, 0x24
mov dword [ebp - 0x138], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x138], 0xffffffff
jne 0x59bb7c
cmp dword [ebp - 0x144], 2
je 0x59bb63
cmp dword [ebp - 0x144], 3
je 0x59bb63
cmp dword [ebp - 0x144], 0xf
je 0x59bb63
cmp dword [ebp - 0x144], 0x35
je 0x59bb63
mov eax, dword [ebp - 0x144]
push eax
push 0x6f1e04
lea ecx, [ebp - 0x110]
push ecx
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_CreateFile__s__FAILED:__s_ld
call fcn.00401014
add esp, 0x10
mov edx, dword [ebp - 0x158]
push edx
call fcn.004020ef
add esp, 4
mov eax, 1
jmp 0x59c056
push 0
lea eax, [ebp - 0x15c]
push eax
push 4
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x59bba8
cmp dword [ebp - 0x15c], 4
jae 0x59bc11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x144], eax
push 0x26c
push 0x6f1e60
push 0x6f1e74
mov eax, dword [ebp - 0x138]
push eax
call fcn.00401f5a
mov dword [ebp - 0x138], 0
cmp dword [0x835060], 0
je 0x59bc02
mov ecx, dword [ebp - 0x144]
push ecx
push 0x6f1e94
lea edx, [ebp - 0x110]
push edx
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_checksum_from___s_:__s_ld
call fcn.00401014
add esp, 0x10
mov dword [ebp - 0x13c], 1
jmp 0x59bfff
push 0
lea eax, [ebp - 0x15c]
push eax
push 4
lea ecx, [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x59bc3d
cmp dword [ebp - 0x15c], 4
jae 0x59bca6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x144], eax
push 0x276
push 0x6f1f0c
push 0x6f1f20
mov eax, dword [ebp - 0x138]
push eax
call fcn.00401f5a
mov dword [ebp - 0x138], 0
cmp dword [0x835060], 0
je 0x59bc97
mov ecx, dword [ebp - 0x144]
push ecx
push 0x6f1f40
lea edx, [ebp - 0x110]
push edx
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_Process_Identifier_from___s_:__s_ld
call fcn.00401014
add esp, 0x10
mov dword [ebp - 0x13c], 1
jmp 0x59bfff
push 0
lea eax, [ebp - 0x15c]
push eax
push 4
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x59bcd2
cmp dword [ebp - 0x15c], 4
jae 0x59bd3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x144], eax
push 0x281
push 0x6f1fc0
push 0x6f1fd4
mov eax, dword [ebp - 0x138]
push eax
call fcn.00401f5a
mov dword [ebp - 0x138], 0
cmp dword [0x835060], 0
je 0x59bd2c
mov ecx, dword [ebp - 0x144]
push ecx
push 0x6f1ff4
lea edx, [ebp - 0x110]
push edx
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_Time_Out_DWORD_from___s_:__s_ld
call fcn.00401014
add esp, 0x10
mov dword [ebp - 0x13c], 1
jmp 0x59bfff
push 0
lea eax, [ebp - 0x15c]
push eax
push 0x10
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x59bd67
cmp dword [ebp - 0x15c], 0x10
jae 0x59bdd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x144], eax
push 0x28b
push 0x6f2074
push 0x6f2088
mov eax, dword [ebp - 0x138]
push eax
call fcn.00401f5a
mov dword [ebp - 0x138], 0
cmp dword [0x835060], 0
je 0x59bdca
mov ecx, dword [ebp - 0x144]
push ecx
push 0x6f20a8
push 0x10
mov edx, dword [ebp - 0x15c]
push edx
lea eax, [ebp - 0x110]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_ReadFile___FAILED_to_read_the_SYSTEMTIME_from___s_.__Read__ld_bytes_of__ld:__s_ld
call fcn.00401014
add esp, 0x18
mov dword [ebp - 0x13c], 1
jmp 0x59bfff
push 0x293
push 0x6f2138
push str.IsUploadPackageUpdatesAllowed
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.00401f5a
mov dword [ebp - 0x138], 0
mov edx, dword [ebp - 0x158]
push edx
call fcn.004020ef
add esp, 4
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x130], 0
jmp 0x59be3e
mov ecx, dword [ebp - 0x130]
add ecx, 1
mov dword [ebp - 0x130], ecx
cmp dword [ebp - 0x130], 0x10
jae 0x59be64
mov edx, dword [ebp - 0x140]
add edx, dword [ebp - 0x130]
movzx eax, byte [edx]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x114], eax
jmp 0x59be2f
mov ecx, dword [ebp - 0x114]
add ecx, dword [ebp - 0x134]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
cmp edx, dword [ebp - 0x118]
je 0x59bf1f
cmp dword [0x835060], 0
jne 0x59bec7
mov dword [0x835060], 1
mov eax, dword [ebp - 0x158]
push eax
call fcn.0059b9b0
add esp, 4
mov dword [ebp - 0x13c], eax
mov dword [0x835060], 0
mov eax, dword [ebp - 0x13c]
jmp 0x59c056
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x118]
push edx
lea eax, [ebp - 0x110]
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.00401014
add esp, 0x10
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040255e
add esp, 4
test eax, eax
jne 0x59bf15
push 0x6f220c
lea edx, [ebp - 0x110]
push edx
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_DeleteFile___s___FAILED:_Could_not_delete_the_invalid_file_lock_flag:__s
call fcn.00401014
add esp, 0xc
mov eax, 1
jmp 0x59c056
cmp dword [ebp - 0x11c], 0x6ddd00
jbe 0x59bf49
mov eax, dword [ebp - 0x11c]
push eax
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.00401014
add esp, 8
mov dword [ebp - 0x11c], 0x6ddd00
push 0x2b8
push 0x6f2294
lea ecx, [ebp - 0x154]
push ecx
call fcn.00402036
add esp, 0xfffffffc
mov edx, esp
mov eax, dword [ebp - 0x12c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x128]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x124]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x120]
mov dword [edx + 0xc], ecx
sub esp, 0x10
mov edx, esp
mov eax, dword [ebp - 0x154]
mov dword [edx], eax
mov ecx, dword [ebp - 0x150]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x14c]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x148]
mov dword [edx + 0xc], ecx
call fcn.00401a00
add esp, 0x20
push eax
call fcn.005bad40
add esp, 4
cmp eax, dword [ebp - 0x11c]
jl 0x59bffb
lea edx, [ebp - 0x110]
push edx
call fcn.0040255e
add esp, 4
test eax, eax
jne 0x59bffb
push 0x6f2334
lea eax, [ebp - 0x110]
push eax
push str.:7:IsUploadPackageUpdatesAllowed___FAILED:_DeleteFile___s___FAILED:_Could_not_delete_the_expired_lock_flag:__s
call fcn.00401014
add esp, 0xc
mov eax, 1
jmp 0x59c056
xor eax, eax
jmp 0x59c056
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.004020ef
add esp, 4
cmp dword [0x835060], 0
je 0x59c01f
mov eax, dword [ebp - 0x13c]
jmp 0x59c056
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x835060], 1
mov edx, dword [ebp - 0x158]
push edx
call fcn.0059b9b0
add esp, 4
mov dword [ebp - 0x13c], eax
mov dword [0x835060], 0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b0290
mov esp, ebp
pop ebp
ret