Function at 0x5219e0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b37a0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x63a404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea edi, [ebx + 0x18]
nop dword [eax]
mov ecx, edi
call fcn.00545f90
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056ea89
add esp, 8
cmp edi, 0xffffffff
setne al
cmp byte [ebx + 0x40], 0
mov byte [ebp - 0x11], al
je 0x521a40
mov byte [ebx + 0x58], 0
mov byte [ebx + 0x40], 0
test al, al
je 0x521a82
cmp dword [ebx + 0x6c], 0
ja 0x521b47
jb 0x521a5a
cmp dword [ebx + 0x68], 0
ja 0x521a9b
lea ecx, [ebx + 0x18]
mov byte [ebp - 0x11], 0
test ecx, ecx
je 0x521a82
call fcn.00545f90
mov esi, eax
test esi, esi
je 0x521a82
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0056ea89
add esp, 8
mov ecx, ebx
mov dword [ebx + 0x70], 1
call fcn.00520c40
test al, al
je 0x521ea4
mov al, byte [ebp - 0x11]
cmp dword [ebx + 0x6c], 0
ja 0x521b47
cmp dword [ebx + 0x68], 0
ja 0x521b47
push 0x9a
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0x4c
call fcn.0056ea97
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push str.OFileDownload:_Http_Request_Headers_for___s__does_not_contain_Content_length
inc ecx
mov dword [ebp - 0x24], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
lea eax, [ebx + 0x20]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x24]
push eax
push 0x308
push str.OFileDownload::run
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push edx
call fcn.0054faa0
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x521b3b
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jmp 0x521f37
mov ecx, ebx
test al, al
je 0x521b6c
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
call eax
cmp edx, dword [ebx + 0x6c]
jb 0x521b80
ja 0x521b60
cmp eax, dword [ebx + 0x68]
jb 0x521b80
mov dword [ebx + 0x70], 5
jmp 0x521f3e
mov dword [ebx + 0x70], 2
call fcn.005210b0
test al, al
je 0x521d8c
push dword [ebp - 0x11]
mov ecx, ebx
mov dword [ebx + 0x70], 3
call fcn.005216d0
cmp dword [ebx + 0x70], 3
jne 0x521bdb
mov esi, dword [ebx + 0x5c]
mov al, 1
mov byte [ebp - 0xd], 0
test esi, esi
je 0x521bee
mov ecx, dword [ebx + 0x60]
mov edx, dword [ecx]
test edx, edx
je 0x521bc8
mov edx, dword [edx + 0x50]
cmp edx, 0xffffffff
jne 0x521bbe
mov dl, 1
xor al, al
mov byte [ebp - 0xd], dl
jmp 0x521bcb
xor edi, edi
movzx eax, al
test edx, edx
cmove eax, edi
mov dl, byte [ebp - 0xd]
add ecx, 4
sub esi, 1
jne 0x521ba7
test al, al
jne 0x521bee
test dl, dl
jne 0x521bf5
cmp byte [ebx + 0x58], 0
jne 0x521bf5
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x521b91
mov dword [ebx + 0x70], 5
mov ecx, ebx
call fcn.00520b00
cmp byte [ebx + 0x40], 0
jne 0x521d53
mov eax, dword [ebx + 0x70]
cmp eax, 3
jne 0x521c27
cmp byte [ebx + 0x58], 0
lea edi, [ebx + 0x18]
jne 0x521f41
mov dword [ebx + 0x70], 5
jmp 0x521f41
mov dword [ebp - 0x18], 0
cmp eax, 5
jne 0x521cc1
push 0x38
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x1b
call fcn.0056ea97
mov ecx, dword [ebp - 0x28]
push 0xffffffffffffffff
push str.ODownload_Complete_for___s_
inc ecx
mov dword [ebp - 0x2c], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
lea eax, [ebx + 0x20]
mov dword [ebp - 4], edx
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x2ed
push str.OFileDownload::run
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push edx
call fcn.0054faa0
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x521cb5
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jmp 0x521f3e
push 0x78
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x3b
call fcn.0056ea97
mov ecx, dword [ebp - 0x30]
push 0xffffffffffffffff
push str.ODownload_Failed_for___s__due_to_download_thread_error___s_
inc ecx
mov dword [ebp - 0x34], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x30]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x30], ecx
lea eax, [ebx + 0x38]
mov dword [ebp - 4], 1
push eax
lea eax, [ebx + 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x2f1
push str.OFileDownload::run
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push edx
call fcn.0054faa0
mov dword [ebp - 4], 0xffffffff
add esp, 0x34
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x521d47
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
jmp 0x521f3e
lea edi, [ebx + 0x18]
test edi, edi
je 0x521d79
mov ecx, edi
call fcn.00545f90
mov esi, eax
test esi, esi
je 0x521d79
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0056ea89
add esp, 8
mov ecx, ebx
mov dword [ebx + 0x5c], 1
call fcn.00520ab0
jmp 0x521f41
cmp dword [ebx + 0x70], 5
je 0x521f3e
push 0x94
mov dword [ebx + 0x70], 6
mov esi, 0x49
mov dword [ebp - 0x18], 0
call fcn.0056ea97
push 0xffffffffffffffff
push str.Failed_to_write_to_filesystem__please_check_there_is_enough_storage_space
mov edi, eax
lea eax, [ebp - 0x18]
push 0x4a
push edi
push eax
mov dword [ebp - 0x4c], edi
call fcn.00584f75
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x48], esi
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebx + 0x38]
call fcn.00545420
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x521e08
push 2
push edi
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x4c], 0
push 0x74
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x38], 0x39
call fcn.0056ea97
mov ecx, dword [ebp - 0x38]
push 0xffffffffffffffff
push str.Unable_To_Download___s__as_unable_to_write_to_file_system
inc ecx
mov dword [ebp - 0x3c], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x38]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x38], ecx
lea eax, [ebx + 0x20]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x302
push str.OFileDownload::run
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push edx
call fcn.0054faa0
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x521e98
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
jmp 0x521f3e
push 0x88
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x40], 0x43
call fcn.0056ea97
mov ecx, dword [ebp - 0x40]
push 0xffffffffffffffff
push str.OFileDownload:_File_doesnt_exist_404__or_timeout_error_for_url___s_
inc ecx
mov dword [ebp - 0x44], eax
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x40]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x40], ecx
lea eax, [ebx + 0x20]
mov dword [ebp - 4], 5
push eax
lea eax, [ebp - 0x44]
push eax
push 0x311
push str.OFileDownload::run
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push edx
call fcn.0054faa0
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x521f30
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebx + 0x70], 6
lea edi, [ebx + 0x18]
cmp byte [ebx + 0x40], 0
jne 0x521a10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret