Function at 0x520c60
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b431e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
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 edi, ecx
push 8
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x18], eax
push 0x6448e0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.005456c0
mov dword [ebp - 4], 0xffffffff
mov ebx, eax
push 8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 3
call fcn.0056f8a6
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push 0x624248
inc ecx
mov dword [ebp - 0x1c], eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x18]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1c]
push dword [edi + 0x3c]
push dword [edi + 0x38]
push eax
call fcn.00545b40
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add esp, 0x24
test eax, eax
je 0x520d33
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x1c], 0
mov ecx, dword [edi + 0x40]
add ecx, dword [edi + 0x38]
mov eax, dword [edi + 0x44]
adc eax, dword [edi + 0x3c]
push eax
push ecx
mov ecx, esi
mov dword [ebp - 0x18], 0
call fcn.00546420
push esi
push 0x644870
mov ecx, ebx
call fcn.00547200
test esi, esi
je 0x520d89
mov eax, dword [esi]
test eax, eax
je 0x520d77
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
call fcn.0054eef0
push eax
push 0x644860
mov ecx, ebx
call fcn.00547200
mov esi, dword [edi + 0x20]
test esi, esi
je 0x5214ab
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x520dd6
cmp byte [esi + 0xd], 0
je 0x520dcb
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x520dcb
cmp dword [ebp - 0x14], 0x103
jne 0x520dd6
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x20]
mov ecx, ebx
mov esi, dword [eax + 0x40]
add eax, 0x4c
push eax
push 0x644880
call fcn.00547200
mov eax, dword [edi + 0x20]
mov ecx, ebx
add eax, 0x54
push eax
push 0x644830
call fcn.00547200
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.00546340
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
push 0x6448d8
call fcn.00547200
test esi, esi
je 0x521430
mov eax, dword [edi + 0x28]
cmp dword [eax + 0x5c], 1
jne 0x520e48
cmp esi, 0xc8
je 0x520e50
cmp esi, 0xce
jne 0x520e5c
mov ecx, edi
call fcn.00520930
jmp 0x521065
push 0xda
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0x6c
call fcn.0056f8a6
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push str.ODownload___s__requested_a_range_but_got_unexpected_status_response_of__d__Will_auto_retry_if_status_is_200_
inc ecx
mov dword [ebp - 0x24], eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
push esi
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x28]
add eax, 0x20
push eax
lea eax, [ebp - 0x24]
push eax
push 0x97
push str.OFileDownload::gdStream::run
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push edx
call fcn.00550890
mov byte [ebp - 4], 2
add esp, 0x34
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x520edf
push 2
push eax
call fcn.0056f898
add esp, 8
cmp esi, 0xc8
jne 0x5210a1
mov eax, dword [edi + 0x2c]
nop
inc eax
mov dword [ebp - 0x24], 0
push 0x96
mov dword [edi + 0x2c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0x4a
call fcn.0056f8a6
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push str.ODownload___s__status_response_was_200_auto_retrying_attempt:___d__of___d_
inc ecx
mov dword [ebp - 0x24], eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 4
push dword [edi + 0x30]
mov eax, dword [edi + 0x28]
push dword [edi + 0x2c]
add eax, 0x20
push eax
lea eax, [ebp - 0x24]
push eax
push 0x9d
push str.OFileDownload::gdStream::run
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push edx
call fcn.00550890
mov byte [ebp - 4], 2
add esp, 0x38
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x520f83
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x24], 0
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x20], 0
test ecx, ecx
je 0x520f9e
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x20], 0
mov ecx, edi
call fcn.005208e0
mov ebx, dword [edi + 0x20]
test ebx, ebx
je 0x520ff5
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x520fdc
cmp byte [ebx + 0xd], 0
je 0x520fd1
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x520fd1
cmp dword [ebp - 0x18], 0x103
jne 0x520fdc
push 0xffffffffffffffff
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x20]
mov esi, dword [eax + 0x40]
test esi, esi
je 0x520ff5
cmp esi, 0xce
jne 0x520ff5
mov ecx, edi
call fcn.00520930
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x30]
cmp eax, ecx
jae 0x52100f
cmp esi, 0xce
jne 0x520ef0
cmp eax, ecx
jb 0x521062
mov eax, dword [edi + 0x28]
lea ecx, [ebp - 0x24]
mov dword [edi + 0x50], 0xffffffff
push str.ODownload___s__ran_out_of_retries__switching_to_single_threaded_download
mov byte [eax + 0x58], 1
call fcn.005455a0
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0x28]
add ecx, 0x20
push ecx
push eax
push 0xb2
push str.OFileDownload::gdStream::run
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push 0
call fcn.00550890
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00500b70
mov eax, dword [edi + 0x28]
mov byte [eax + 0x40], 1
mov ebx, dword [ebp - 0x10]
mov esi, dword [edi + 0x20]
test esi, esi
je 0x5214ff
cmp dword [esi + 0x38], 0
je 0x5214ff
mov dword [edi + 0x50], 0xffffffff
mov esi, dword [esi + 0x38]
lea eax, [esi - 0x2ee2]
cmp eax, 0x1c
ja case.0x52109a.12003
movzx eax, byte [eax + 0x5215cc]
jmp dword [eax*4 + 0x5215c4]
lea ecx, [ebp - 0x24]
cmp esi, 0x1a0
jne 0x521139
push str.ODownload___s__requested_range_was_not_satisfiable__switching_to_single_threaded_download
call fcn.005455a0
mov byte [ebp - 4], 6
mov ecx, dword [edi + 0x28]
add ecx, 0x20
push ecx
push eax
push 0xb8
push str.OFileDownload::gdStream::run
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push 0
call fcn.00550890
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00500b70
push str.Failed:__d
lea ecx, [ebp - 0x24]
mov dword [edi + 0x50], 0xffffffff
call fcn.005455a0
push esi
push eax
mov byte [ebp - 4], 7
call fcn.00545b40
add esp, 8
mov ecx, ebx
push eax
push 0x6448e8
call fcn.00547200
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00500b70
mov eax, dword [edi + 0x28]
mov byte [eax + 0x58], 1
mov eax, dword [edi + 0x28]
mov byte [eax + 0x40], 1
jmp 0x521065
push str.Failed:__d
mov dword [edi + 0x50], 0xffffffff
call fcn.005455a0
push esi
push eax
mov byte [ebp - 4], 8
call fcn.00545b40
add esp, 8
mov ecx, ebx
push eax
push 0x6448e8
call fcn.00547200
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00500b70
push str.ODownload_URL_with_range_requested___s__return_http_status_code__d_and_not_206_as_expected
lea ecx, [ebp - 0x24]
call fcn.005455a0
mov byte [ebp - 4], 9
mov ecx, dword [edi + 0x28]
push esi
add ecx, 0x20
push ecx
push eax
call fcn.00545b40
add esp, 0xc
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00500b70
cmp dword [ebp - 0x10], 0
je 0x5211ea
mov ecx, dword [edi + 0x28]
mov dword [ecx + 0x30], esi
mov esi, dword [ebp - 0x10]
mov dword [ecx + 0x34], 0
add ecx, 0x38
push esi
call fcn.00546210
mov eax, dword [esi]
test eax, eax
je 0x5211d8
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 ecx, dword [edi + 0x20]
test ecx, ecx
je 0x521065
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x20], 0
jmp 0x521065
push str.ODownload_Stream_for___s__has_stalled_due_to_error___d:_s___attempting_retry
lea ecx, [ebp - 0x24]
call fcn.005455a0
mov byte [ebp - 4], 0xa
mov ecx, dword [edi + 0x20]
push dword [ecx + 0x3c]
mov ecx, dword [edi + 0x28]
push esi
add ecx, 0x20
push ecx
push eax
push 0xda
push str.OFileDownload::gdStream::run
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push 0
call fcn.00550890
add esp, 0x20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00500b70
push str.Error:__d
lea ecx, [ebp - 0x24]
call fcn.005455a0
push esi
push eax
mov byte [ebp - 4], 0xb
call fcn.00545b40
add esp, 8
mov ecx, ebx
push eax
push 0x6448e8
call fcn.00547200
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00500b70
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x521294
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x20], 0
mov ecx, edi
call fcn.005208e0
push 8
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x20], eax
push 0x6448e0
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.005456c0
push 0x6244e4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
mov ebx, eax
call fcn.005455a0
mov byte [ebp - 4], 0xd
push dword [edi + 0x3c]
push dword [edi + 0x38]
push eax
call fcn.00545b40
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00500b70
mov edx, dword [edi + 0x40]
add edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x44]
adc ecx, dword [edi + 0x3c]
push ecx
push edx
mov ecx, esi
call fcn.00546420
push esi
push 0x644870
mov ecx, ebx
call fcn.00547200
test esi, esi
je 0x52133b
mov eax, dword [esi]
test eax, eax
je 0x521329
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
call fcn.0054eef0
push eax
push 0x644860
jmp 0x5214f8
push str.ODownloadStream_for___s__has_Unrecoverable_windows_error___d_
lea ecx, [ebp - 0x24]
call fcn.005455a0
push esi
mov byte [ebp - 4], 0xe
mov ecx, dword [edi + 0x28]
add ecx, 0x20
push ecx
push eax
push 0xf0
push str.OFileDownload::gdStream::run
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcofiledownload.cpp
push 0
call fcn.00550890
add esp, 0x1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00500b70
push str.Error:__d
lea ecx, [ebp - 0x24]
call fcn.005455a0
push esi
push eax
mov byte [ebp - 4], 0xf
call fcn.00545b40
add esp, 8
mov ecx, ebx
push eax
push 0x6448e8
call fcn.00547200
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00500b70
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x5213e0
mov ecx, dword [edi + 0x28]
push eax
mov dword [ecx + 0x30], esi
mov dword [ecx + 0x34], 0
add ecx, 0x38
call fcn.00546210
jmp 0x521413
push 0x610f54
lea ecx, [ebp - 0x24]
call fcn.005455a0
mov byte [ebp - 4], 0x10
mov ecx, dword [edi + 0x28]
push eax
mov dword [ecx + 0x30], esi
mov dword [ecx + 0x34], 0
add ecx, 0x38
call fcn.00546210
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00500b70
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x5214ff
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x20], 0
jmp 0x5214ff
push 0x16
mov dword [edi + 0x50], 0xffffffff
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0xa
call fcn.0056f8a6
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push str.Failed:__d
inc ecx
mov dword [ebp - 0x24], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
push edx
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x11
push eax
call fcn.00545b40
add esp, 0x20
mov ecx, ebx
push eax
push 0x6448e8
call fcn.00547200
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x5214ff
push 2
push eax
call fcn.0056f898
add esp, 8
jmp 0x5214ff
push 0x50
mov dword [edi + 0x50], 0xffffffff
mov esi, 0x27
mov dword [ebp - 0x18], 0
call fcn.0056f8a6
push 0xffffffffffffffff
push str.Failed:_if_mInputStream__returned_false
push 0x28
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0x12
push eax
push 0x6448e8
mov ecx, ebx
call fcn.00547200
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x521518
push 2
push eax
call fcn.0056f898
add esp, 8
cmp dword [edi + 0x50], 0
jne 0x521583
push 0x10
mov dword [edi + 0x50], 1
mov esi, 7
mov dword [ebp - 0x20], 0
call fcn.0056f8a6
push 0xffffffffffffffff
push str.Success
mov edi, eax
lea eax, [ebp - 0x20]
push 8
push edi
push eax
mov dword [ebp - 0x2c], edi
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0x13
push eax
push 0x644850
mov ecx, ebx
call fcn.00547200
test edi, edi
je 0x521583
push 2
push edi
call fcn.0056f898
add esp, 8
test ebx, ebx
je 0x5215b0
mov eax, dword [ebx]
test eax, eax
je 0x52159e
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056f898
add esp, 8
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