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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437c06
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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 esi, ecx
lea ecx, [esi + 0x18]
call fcn.0040e6a0
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push edi
mov ebx, eax
call fcn.0041aef0
add esp, 8
cmp ebx, 0xffffffff
je 0x4164be
cmp byte [ebp + 8], 0
jne 0x41630c
mov edi, dword [esi + 0x5c]
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0x68]
push 0
push edi
push ecx
push eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
call fcn.00435160
mov ebx, eax
dec edi
mov eax, edx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], eax
mul edi
mov ecx, eax
mov eax, ebx
mul edi
add ecx, edx
sub dword [ebp + 8], eax
sbb dword [ebp - 0x10], ecx
xor ebx, ebx
test edi, edi
je 0x4162ab
push 0x58
call fcn.0041ab28
add esp, 4
mov dword [ebp - 0x24], eax
push esi
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00414740
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0x60]
mov edx, dword [ebp - 0x18]
push edx
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [ebp - 0x20]
push ecx
push 0
mov eax, dword [eax + ebx*4]
push ebx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
call fcn.00434e00
mov ecx, dword [esi + 0x60]
mov ecx, dword [ecx + ebx*4]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
mov ecx, dword [esi + 0x60]
mov ecx, dword [ecx + ebx*4]
inc ebx
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], edx
mov eax, dword [esi + 0x5c]
dec eax
cmp ebx, eax
jb 0x416245
push 0x58
call fcn.0041ab28
add esp, 4
mov dword [ebp - 0x24], eax
push esi
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00414740
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0x60]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [ebp + 8]
push 0
push ebx
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x40], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x44], ecx
call fcn.00434e00
mov ecx, dword [esi + 0x60]
mov ecx, dword [ecx + ebx*4]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
mov ecx, dword [esi + 0x60]
mov ecx, dword [ecx + ebx*4]
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], edx
xor ebx, ebx
cmp dword [esi + 0x5c], ebx
jbe 0x416584
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x416413
call fcn.00414a20
test al, al
mov eax, dword [esi + 0x60]
je 0x416374
mov edi, dword [eax + ebx*4]
mov eax, dword [edi + 4]
mov byte [edi + 9], 1
test eax, eax
jne 0x416368
push eax
push 4
push edi
push 0x4183b0
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 0x4164a0
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x4164a0
mov eax, dword [eax + ebx*4]
cmp dword [eax + 0x50], 1
je 0x4164a0
push 0x52
mov dword [ebp - 0x28], 0
mov dword [ebp + 8], 0
mov dword [ebp - 0x24], 0x28
call fcn.0041b26a
mov ecx, dword [ebp - 0x24]
push 0xffffffffffffffff
push str.Unable_to_open_file_handle_for_thread__d
inc ecx
mov dword [ebp - 0x28], eax
push ecx
push eax
lea eax, [ebp + 8]
push eax
call fcn.00426d70
mov ecx, dword [ebp - 0x24]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x24], ecx
push ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
push 0x222
push str.OFileDownload::startDownload
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 - 0x28]
test eax, eax
je 0x416407
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
jmp 0x4164a0
push 0x4e
mov dword [ebp - 0x1c], 0
mov dword [ebp + 8], 0
mov dword [ebp - 0x18], 0x26
call fcn.0041b26a
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push str.Stream___d__is_NULL_so_cannot_start_it
inc ecx
mov dword [ebp - 0x1c], eax
push ecx
push eax
lea eax, [ebp + 8]
push eax
call fcn.00426d70
mov ecx, dword [ebp - 0x18]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x18], ecx
push ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push eax
push 0x227
push str.OFileDownload::startDownload
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 - 0x1c]
test eax, eax
je 0x416499
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
inc ebx
cmp ebx, dword [esi + 0x5c]
jb 0x416317
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 - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0x34
call fcn.0041b26a
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push str.Preallocated_file___s__is_missing_unable_to_download
inc ecx
mov dword [ebp - 0x14], eax
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00426d70
mov ecx, dword [ebp - 0x10]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x10], ecx
lea eax, [esi + 0x18]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040d840
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add esp, 0x20
test eax, eax
je 0x416539
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
test edi, edi
je 0x41656f
push edi
push 0x231
push str.OFileDownload::startDownload
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push 0
call fcn.00416c20
add esp, 0x14
lea ecx, [esi + 0x38]
push edi
call fcn.0040de20
push ecx
mov ecx, edi
call fcn.00409b80
mov dword [esi + 0x70], 6
mov dword [esi + 0x30], 1
mov dword [esi + 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