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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437c60
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x451008]
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.0040e6a0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0041aef0
add esp, 8
cmp edi, 0xffffffff
setne al
cmp byte [ebx + 0x40], 0
mov byte [ebp - 0x11], al
je 0x416600
mov byte [ebx + 0x58], 0
mov byte [ebx + 0x40], 0
test al, al
je 0x416642
cmp dword [ebx + 0x6c], 0
ja 0x416707
jb 0x41661a
cmp dword [ebx + 0x68], 0
ja 0x41665b
lea ecx, [ebx + 0x18]
mov byte [ebp - 0x11], 0
test ecx, ecx
je 0x416642
call fcn.0040e6a0
mov esi, eax
test esi, esi
je 0x416642
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0041aef0
add esp, 8
mov ecx, ebx
mov dword [ebx + 0x70], 1
call fcn.00415950
test al, al
je 0x416a8d
mov al, byte [ebp - 0x11]
cmp dword [ebx + 0x6c], 0
ja 0x416707
cmp dword [ebx + 0x68], 0
ja 0x416707
push 0x9a
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0x4c
call fcn.0041b26a
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.00426d70
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.00416c20
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4166fb
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jmp 0x416b20
mov ecx, ebx
test al, al
je 0x41672c
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
call eax
cmp edx, dword [ebx + 0x6c]
jb 0x416740
ja 0x416720
cmp eax, dword [ebx + 0x68]
jb 0x416740
mov dword [ebx + 0x70], 5
jmp 0x416b27
mov dword [ebx + 0x70], 2
call fcn.00415d90
test al, al
je 0x416975
push dword [ebp - 0x11]
mov ecx, ebx
mov dword [ebx + 0x70], 3
call fcn.004161b0
cmp dword [ebx + 0x70], 3
jne 0x41679b
mov esi, dword [ebx + 0x5c]
mov al, 1
mov byte [ebp - 0xd], 0
test esi, esi
je 0x4167ae
mov ecx, dword [ebx + 0x60]
mov edx, dword [ecx]
test edx, edx
je 0x416788
mov edx, dword [edx + 0x50]
cmp edx, 0xffffffff
jne 0x41677e
mov dl, 1
xor al, al
mov byte [ebp - 0xd], dl
jmp 0x41678b
xor edi, edi
movzx eax, al
test edx, edx
cmove eax, edi
mov dl, byte [ebp - 0xd]
add ecx, 4
sub esi, 1
jne 0x416767
test al, al
jne 0x4167ae
test dl, dl
jne 0x4167b5
cmp byte [ebx + 0x58], 0
jne 0x4167b5
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x416751
mov dword [ebx + 0x70], 5
mov ecx, ebx
call fcn.004158d0
cmp byte [ebx + 0x40], 0
jne 0x416913
mov eax, dword [ebx + 0x70]
cmp eax, 3
jne 0x4167e7
cmp byte [ebx + 0x58], 0
lea edi, [ebx + 0x18]
jne 0x416b2a
mov dword [ebx + 0x70], 5
jmp 0x416b2a
mov dword [ebp - 0x18], 0
cmp eax, 5
jne 0x416881
push 0x38
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x1b
call fcn.0041b26a
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.00426d70
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.00416c20
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x416875
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jmp 0x416b27
push 0x78
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x3b
call fcn.0041b26a
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.00426d70
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.00416c20
mov dword [ebp - 4], 0xffffffff
add esp, 0x34
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x416907
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
jmp 0x416b27
lea edi, [ebx + 0x18]
test edi, edi
je 0x416939
mov ecx, edi
call fcn.0040e6a0
mov esi, eax
test esi, esi
je 0x416939
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0041aef0
add esp, 8
push 4
mov dword [ebx + 0x5c], 1
call fcn.0041b26a
xor ecx, ecx
mov dword [ebx + 0x60], eax
add esp, 4
cmp dword [ebx + 0x5c], ecx
jbe 0x416b2a
nop dword [eax + eax]
mov eax, dword [ebx + 0x60]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, dword [ebx + 0x5c]
jb 0x416960
jmp 0x416b2a
cmp dword [ebx + 0x70], 5
je 0x416b27
push 0x94
mov dword [ebx + 0x70], 6
mov esi, 0x49
mov dword [ebp - 0x18], 0
call fcn.0041b26a
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.00426d70
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.0040de20
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4169f1
push 2
push edi
call fcn.0041aef0
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.0041b26a
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.00426d70
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.00416c20
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x416a81
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
jmp 0x416b27
push 0x88
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x40], 0x43
call fcn.0041b26a
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.00426d70
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.00416c20
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x416b19
push 2
push eax
call fcn.0041aef0
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 0x4165d0
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