Function at 0x5224c0
Capabilities:
Check if file exists
Create thread
Get file attributes
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4568
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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 ecx, [ebx + 0x18]
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
je 0x5226d3
cmp byte [ebp + 8], 0
jne 0x52251e
mov ecx, ebx
call fcn.00522380
xor esi, esi
cmp dword [ebx + 0x5c], esi
jbe 0x5227ba
nop dword [eax]
mov eax, dword [ebx + 0x60]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x522628
call fcn.005209a0
test al, al
mov eax, dword [ebx + 0x60]
je 0x52258d
mov edi, dword [eax + esi*4]
mov eax, dword [edi + 4]
mov byte [edi + 9], 1
test eax, eax
jne 0x522581
push eax
push 4
push edi
push 0x550410
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [edi + 0xc]
mov dword [edi + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [edi + 4]
test eax, eax
je 0x5226b5
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x5226b5
mov eax, dword [eax + esi*4]
cmp dword [eax + 0x50], 1
je 0x5226b5
push 0x52
mov dword [ebp - 0x18], 0
mov dword [ebp + 8], 0
mov dword [ebp - 0x14], 0x28
call fcn.0056f8a6
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
push str.Unable_to_open_file_handle_for_thread__d
inc ecx
mov dword [ebp - 0x18], eax
push ecx
push eax
lea eax, [ebp + 8]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x14]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x14], ecx
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], edx
push eax
push 0x222
push str.OFileDownload::startDownload
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 - 0x18]
test eax, eax
je 0x52261c
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x5226b5
push 0x4e
mov dword [ebp - 0x20], 0
mov dword [ebp + 8], 0
mov dword [ebp - 0x1c], 0x26
call fcn.0056f8a6
mov ecx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push str.Stream___d__is_NULL_so_cannot_start_it
inc ecx
mov dword [ebp - 0x20], eax
push ecx
push eax
lea eax, [ebp + 8]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x1c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x1c], ecx
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
push eax
push 0x227
push str.OFileDownload::startDownload
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 - 0x20]
test eax, eax
je 0x5226ae
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
inc esi
cmp esi, dword [ebx + 0x5c]
jb 0x522530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x6a
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0x34
call fcn.0056f8a6
mov ecx, dword [ebp - 0x24]
push 0xffffffffffffffff
push str.Preallocated_file___s__is_missing_unable_to_download
inc ecx
mov dword [ebp - 0x28], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x24]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebx + 0x18]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00545b40
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
add esp, 0x20
test eax, eax
je 0x52274e
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
test esi, esi
je 0x5227a5
push esi
push 0x231
push str.OFileDownload::startDownload
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push 0
call fcn.00550890
add esp, 0x14
lea ecx, [ebx + 0x38]
push esi
call fcn.00546210
mov eax, dword [esi]
test eax, eax
je 0x522793
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
mov dword [ebx + 0x70], 6
mov dword [ebx + 0x30], 1
mov dword [ebx + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4