Function at 0x531a70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5c30
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x20], 1
jne 0x531ceb
cmp dword [esi + 0x24], 0
je 0x531ceb
push 0x648cb4
lea ecx, [ebp - 0x18]
call fcn.00545740
push 0x5c
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00546290
push esi
lea ecx, [ebp - 0x18]
call fcn.00546600
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x70]
cmp ecx, 5
jne 0x531c38
test eax, eax
je 0x531af6
push ecx
mov ecx, eax
call fcn.0051ca70
mov dword [esi + 0x24], 0
push 0x58
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0x2b
call fcn.0056f8a6
mov ecx, dword [ebp - 0x1c]
add esp, 4
inc ecx
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
push str.CRC_Checking_Installer_Downloaded_File___s_
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x1c]
xor edx, edx
add esp, 0x14
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x20]
push eax
push 0x136
push str.OInstallerCache::update
push str.d:jenkinsworkspaceclient3.lib.manifestdownloadermanifestdownloaderlib_srcoinstallercache.cpp
push edx
call fcn.00550890
mov byte [ebp - 4], 0
add esp, 0x18
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x531b78
push 2
push eax
call fcn.0056f898
add esp, 8
mov ecx, esi
call fcn.00531890
lea ecx, [ebp - 0x20]
test al, al
je 0x531bca
push str.CRC_Checking_Installer_Downloaded_File___s__Success
call fcn.005455a0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
push ecx
push eax
push 0x139
push str.OInstallerCache::update
push str.d:jenkinsworkspaceclient3.lib.manifestdownloadermanifestdownloaderlib_srcoinstallercache.cpp
push 0
call fcn.00550890
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00500b70
mov dword [esi + 0x20], 2
jmp 0x531cd4
push str.CRC_Checking_Installer_Downloaded_File___s__Failed_CRC32_check__deleting_and_restarting
call fcn.005455a0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
push ecx
push eax
push 0x13e
push str.OInstallerCache::update
push str.d:jenkinsworkspaceclient3.lib.manifestdownloadermanifestdownloaderlib_srcoinstallercache.cpp
push 0
call fcn.00550890
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00500b70
lea ecx, [ebp - 0x18]
call fcn.00546d80
mov edi, eax
test edi, edi
je 0x531c22
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push edi
call fcn.0056f898
add esp, 8
lea ecx, [esi + 8]
mov dword [esi + 0x20], 0
xor edx, edx
call fcn.00531d80
jmp 0x531cd4
cmp ecx, 6
jne 0x531cd4
lea ecx, [ebp - 0x20]
test eax, eax
je 0x531c79
push str.OInstallerCache_Download_File___s__Failed_due_to___s_
call fcn.005455a0
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x24]
add ecx, 0x38
push ecx
push eax
push 0x14a
push str.OInstallerCache::update
push str.d:jenkinsworkspaceclient3.lib.manifestdownloadermanifestdownloaderlib_srcoinstallercache.cpp
push 0
call fcn.00550890
add esp, 0x18
jmp 0x531ca1
push str.OInstallerCache_Download_File___s__Failed_due_to__unknown_
call fcn.005455a0
push eax
push 0x14e
push str.OInstallerCache::update
push str.d:jenkinsworkspaceclient3.lib.manifestdownloadermanifestdownloaderlib_srcoinstallercache.cpp
push 0
mov byte [ebp - 4], 5
call fcn.00550890
add esp, 0x14
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00500b70
lea ecx, [ebp - 0x18]
call fcn.00546d80
mov edi, eax
test edi, edi
je 0x531ccd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push edi
call fcn.0056f898
add esp, 8
mov dword [esi + 0x20], 3
call fcn.005313a0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x531ceb
push 2
push eax
call fcn.0056f898
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret