Function at 0x521ea0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b44af
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x63b404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x23c], ebx
lea edi, [ebx + 0x18]
mov ecx, edi
mov dword [ebp - 0x238], edi
call fcn.00549210
mov esi, eax
test esi, esi
je 0x521f1c
mov ecx, esi
call fcn.00548700
mov eax, dword [esi]
test eax, eax
je 0x521f0a
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
push dword [ebx + 0x6c]
mov ecx, edi
push dword [ebx + 0x68]
call fcn.00549600
add esp, 8
lea ecx, [ebp - 0x22c]
push edi
call fcn.005456c0
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0
call fcn.00546d80
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push edi
mov esi, eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
cmp esi, 0xffffffff
setne bl
test eax, eax
je 0x521f82
push 2
push eax
call fcn.0056f898
add esp, 8
test bl, bl
jne 0x52229e
lea eax, [ebp - 0x218]
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x521fd0
push 8
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0xc
push ecx
mov ecx, eax
call fcn.00545630
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp - 0x234]
call fcn.005456c0
mov dword [ebp - 4], 0x11
mov esi, 0x18
push 0x32
mov dword [ebp - 0x21c], 0
call fcn.0056f8a6
push 0xffffffffffffffff
push str.ugm_active_download_at_
mov edi, eax
lea eax, [ebp - 0x21c]
push 0x19
push edi
push eax
mov dword [ebp - 0x22c], edi
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x228], esi
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x234]
call fcn.00546600
mov byte [ebp - 4], 0x11
test edi, edi
je 0x522050
push 2
push edi
call fcn.0056f898
add esp, 8
call fcn.0054ee90
push edx
push eax
lea ecx, [ebp - 0x234]
call fcn.00546340
push 0xa
mov dword [ebp - 0x21c], 0
mov esi, 4
call fcn.0056f8a6
push 0xffffffffffffffff
push str..exe
mov edi, eax
lea eax, [ebp - 0x21c]
push 5
push edi
push eax
mov dword [ebp - 0x22c], edi
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x228], esi
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x234]
call fcn.00546600
mov byte [ebp - 4], 0x11
test edi, edi
je 0x5220cf
push 2
push edi
call fcn.0056f898
add esp, 8
push 0xa2
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0x50
call fcn.0056f8a6
mov ecx, dword [ebp - 0x220]
push 0xffffffffffffffff
push str.Unable_to_open_OFileDownload_output_stream_for__s._Will_attempt_to_write_file__s
inc ecx
mov dword [ebp - 0x224], eax
push ecx
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x220]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x220], ecx
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0x14
push eax
push dword [ebp - 0x238]
lea eax, [ebp - 0x224]
push eax
push 0x1d9
push str.OFileDownload::doPreCache
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push edx
call fcn.00550890
mov byte [ebp - 4], 0x11
add esp, 0x34
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x522175
push 2
push eax
call fcn.0056f898
add esp, 8
mov eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x234]
push dword [eax + 0x6c]
push dword [eax + 0x68]
call fcn.00549600
add esp, 8
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x22c]
push eax
call fcn.005456c0
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0x15
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
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x22c]
cmp edi, 0xffffffff
setne bl
test eax, eax
je 0x5221e5
push 2
push eax
call fcn.0056f898
add esp, 8
test bl, bl
jne 0x522289
push 0x94
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0x49
call fcn.0056f8a6
mov ecx, dword [ebp - 0x220]
push 0xffffffffffffffff
push str.Unable_to_open_OFileDownload_output_stream_for__s._Download_will_now_fail
inc ecx
mov dword [ebp - 0x224], eax
push ecx
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x220]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x220], ecx
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x224]
push eax
push 0x1e2
push str.OFileDownload::doPreCache
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push edx
call fcn.00550890
mov eax, dword [ebp - 0x224]
add esp, 0x30
test eax, eax
je 0x522289
push 2
push eax
call fcn.0056f898
add esp, 8
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x52229e
push 2
push eax
call fcn.0056f898
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056f3c2
mov esp, ebp
pop ebp
ret