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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3748
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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 ecx, [ebx + 0x18]
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
je 0x5218e3
cmp byte [ebp + 8], 0
jne 0x52172e
mov ecx, ebx
call fcn.00521590
xor esi, esi
cmp dword [ebx + 0x5c], esi
jbe 0x5219ca
nop dword [eax]
mov eax, dword [ebx + 0x60]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x521838
call fcn.0051fbb0
test al, al
mov eax, dword [ebx + 0x60]
je 0x52179d
mov edi, dword [eax + esi*4]
mov eax, dword [edi + 4]
mov byte [edi + 9], 1
test eax, eax
jne 0x521791
push eax
push 4
push edi
push 0x54f620
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 0x5218c5
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x5218c5
mov eax, dword [eax + esi*4]
cmp dword [eax + 0x50], 1
je 0x5218c5
push 0x52
mov dword [ebp - 0x18], 0
mov dword [ebp + 8], 0
mov dword [ebp - 0x14], 0x28
call fcn.0056ea97
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.00584f75
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.0054faa0
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x52182c
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x5218c5
push 0x4e
mov dword [ebp - 0x20], 0
mov dword [ebp + 8], 0
mov dword [ebp - 0x1c], 0x26
call fcn.0056ea97
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.00584f75
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.0054faa0
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5218be
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
inc esi
cmp esi, dword [ebx + 0x5c]
jb 0x521740
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.0056ea97
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.00584f75
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.00544d50
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
add esp, 0x20
test eax, eax
je 0x52195e
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
test esi, esi
je 0x5219b5
push esi
push 0x231
push str.OFileDownload::startDownload
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push 0
call fcn.0054faa0
add esp, 0x14
lea ecx, [ebx + 0x38]
push esi
call fcn.00545420
mov eax, dword [esi]
test eax, eax
je 0x5219a3
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
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