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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b45c0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x63b404]
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.00546d80
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056f898
add esp, 8
cmp edi, 0xffffffff
setne al
cmp byte [ebx + 0x40], 0
mov byte [ebp - 0x11], al
je 0x522830
mov byte [ebx + 0x58], 0
mov byte [ebx + 0x40], 0
test al, al
je 0x522872
cmp dword [ebx + 0x6c], 0
ja 0x522937
jb 0x52284a
cmp dword [ebx + 0x68], 0
ja 0x52288b
lea ecx, [ebx + 0x18]
mov byte [ebp - 0x11], 0
test ecx, ecx
je 0x522872
call fcn.00546d80
mov esi, eax
test esi, esi
je 0x522872
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0056f898
add esp, 8
mov ecx, ebx
mov dword [ebx + 0x70], 1
call fcn.00521a30
test al, al
je 0x522c94
mov al, byte [ebp - 0x11]
cmp dword [ebx + 0x6c], 0
ja 0x522937
cmp dword [ebx + 0x68], 0
ja 0x522937
push 0x9a
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0x4c
call fcn.0056f8a6
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.00585d85
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.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x52292b
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jmp 0x522d27
mov ecx, ebx
test al, al
je 0x52295c
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
call eax
cmp edx, dword [ebx + 0x6c]
jb 0x522970
ja 0x522950
cmp eax, dword [ebx + 0x68]
jb 0x522970
mov dword [ebx + 0x70], 5
jmp 0x522d2e
mov dword [ebx + 0x70], 2
call fcn.00521ea0
test al, al
je 0x522b7c
push dword [ebp - 0x11]
mov ecx, ebx
mov dword [ebx + 0x70], 3
call fcn.005224c0
cmp dword [ebx + 0x70], 3
jne 0x5229cb
mov esi, dword [ebx + 0x5c]
mov al, 1
mov byte [ebp - 0xd], 0
test esi, esi
je 0x5229de
mov ecx, dword [ebx + 0x60]
mov edx, dword [ecx]
test edx, edx
je 0x5229b8
mov edx, dword [edx + 0x50]
cmp edx, 0xffffffff
jne 0x5229ae
mov dl, 1
xor al, al
mov byte [ebp - 0xd], dl
jmp 0x5229bb
xor edi, edi
movzx eax, al
test edx, edx
cmove eax, edi
mov dl, byte [ebp - 0xd]
add ecx, 4
sub esi, 1
jne 0x522997
test al, al
jne 0x5229de
test dl, dl
jne 0x5229e5
cmp byte [ebx + 0x58], 0
jne 0x5229e5
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x522981
mov dword [ebx + 0x70], 5
mov ecx, ebx
call fcn.005218f0
cmp byte [ebx + 0x40], 0
jne 0x522b43
mov eax, dword [ebx + 0x70]
cmp eax, 3
jne 0x522a17
cmp byte [ebx + 0x58], 0
lea edi, [ebx + 0x18]
jne 0x522d31
mov dword [ebx + 0x70], 5
jmp 0x522d31
mov dword [ebp - 0x18], 0
cmp eax, 5
jne 0x522ab1
push 0x38
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x1b
call fcn.0056f8a6
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.00585d85
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.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x522aa5
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jmp 0x522d2e
push 0x78
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x3b
call fcn.0056f8a6
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.00585d85
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.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x34
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x522b37
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
jmp 0x522d2e
lea edi, [ebx + 0x18]
test edi, edi
je 0x522b69
mov ecx, edi
call fcn.00546d80
mov esi, eax
test esi, esi
je 0x522b69
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0056f898
add esp, 8
mov ecx, ebx
mov dword [ebx + 0x5c], 1
call fcn.005218a0
jmp 0x522d31
cmp dword [ebx + 0x70], 5
je 0x522d2e
push 0x94
mov dword [ebx + 0x70], 6
mov esi, 0x49
mov dword [ebp - 0x18], 0
call fcn.0056f8a6
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.00585d85
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.00546210
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x522bf8
push 2
push edi
call fcn.0056f898
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.0056f8a6
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.00585d85
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.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x522c88
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
jmp 0x522d2e
push 0x88
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x40], 0x43
call fcn.0056f8a6
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.00585d85
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.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x522d20
push 2
push eax
call fcn.0056f898
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 0x522800
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