Function at 0x523890
Capabilities:
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3bfc
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x63a404]
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 edi, ecx
lea ebx, [edi - 4]
mov ecx, ebx
call fcn.00522e10
test al, al
je 0x523d0b
push 0
push dword [edi + 0x5c]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x523c56
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x104
push eax
lea eax, [ebp - 0x114]
push eax
push 0x5d
push dword [edi + 0x5c]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
je 0x523b0c
push 0x1e
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x118], 0xe
call fcn.0056ea97
mov ecx, dword [ebp - 0x118]
push 0xffffffffffffffff
push str._d._d._d._d:_d
inc ecx
mov dword [ebp - 0x11c], eax
push ecx
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x118]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 4], edx
movzx eax, byte [ebp - 0x108]
push eax
movzx eax, byte [ebp - 0x109]
push eax
movzx eax, byte [ebp - 0x10a]
push eax
movzx eax, byte [ebp - 0x10b]
push eax
movzx eax, byte [ebp - 0x10c]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00544d50
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
add esp, 0x30
test eax, eax
je 0x5239cc
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x11c], 0
push esi
lea ecx, [edi + 0x48]
mov dword [ebp - 0x118], 0
call fcn.00545420
test esi, esi
je 0x523a0c
mov eax, dword [esi]
test eax, eax
je 0x5239fa
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
push 0x1e
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x118], 0xe
call fcn.0056ea97
mov ecx, dword [ebp - 0x118]
push 0xffffffffffffffff
push str._d._d._d._d:_d
inc ecx
mov dword [ebp - 0x11c], eax
push ecx
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x118]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 4], 1
movzx eax, byte [ebp - 0x88]
push eax
movzx eax, byte [ebp - 0x89]
push eax
movzx eax, byte [ebp - 0x8a]
push eax
movzx eax, byte [ebp - 0x8b]
push eax
movzx eax, byte [ebp - 0x8c]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00544d50
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
add esp, 0x30
test eax, eax
je 0x523acc
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x11c], 0
push esi
lea ecx, [edi + 0x50]
mov dword [ebp - 0x118], 0
call fcn.00545420
test esi, esi
je 0x523b0c
mov eax, dword [esi]
test eax, eax
je 0x523afa
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 esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea ecx, [ebp - 0x130]
push 0
push ecx
lea eax, [edi + 0x3c]
mov dword [ebp - 0x130], 4
push eax
push 0
push 0x20000013
push dword [edi + 0x5c]
call esi
test eax, eax
jne 0x523b4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [edi + 0x34], eax
call fcn.00523200
jmp 0x523d0b
mov ecx, dword [edi + 0x3c]
lea eax, [ecx - 0xc8]
cmp eax, 0x63
ja 0x523c47
push 0
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0
push eax
push 0
push 0
push 0x16
push dword [ebx + 0x60]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x523d0b
mov eax, dword [ebp - 0x118]
add eax, 2
push eax
call fcn.005765e5
mov esi, eax
add esp, 4
test esi, esi
je 0x523d0b
push 0
lea eax, [ebp - 0x118]
push eax
push esi
push 0
push 0x16
push dword [ebx + 0x60]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x523c39
push esi
lea ecx, [ebp - 0x13c]
call fcn.00544840
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 2
push eax
push 0xd
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x120], 0
call fcn.00546200
mov edi, eax
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x523c14
test edi, edi
je 0x523c14
push eax
push edi
mov ecx, ebx
call fcn.005236e0
mov eax, dword [ebp - 0x120]
mov edx, eax
mov ecx, edi
call fcn.00547240
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x523c39
push 2
push eax
call fcn.0056ea89
add esp, 8
push esi
call fcn.005765c8
add esp, 4
jmp 0x523d0b
mov dword [edi + 0x34], ecx
mov ecx, ebx
call fcn.00523430
jmp 0x523d0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0
push esi
call fcn.00544bd0
push 0x50
mov dword [edi + 0x38], eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x124], 0x27
call fcn.0056ea97
mov ecx, dword [ebp - 0x124]
push 0xffffffffffffffff
push str.ODownload_Receive_Failure_error___s___d
inc ecx
mov dword [ebp - 0x128], eax
push ecx
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x124]
xor edx, edx
add esp, 0x20
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x124], ecx
push esi
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.005472c0
push eax
lea eax, [ebp - 0x128]
push eax
push 0x1d3
push str.ODownload::run
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcodownload.cpp
push 0
call fcn.0054faa0
mov eax, dword [ebp - 0x128]
add esp, 0x1c
test eax, eax
je 0x523d0b
push 2
push eax
call fcn.0056ea89
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056e5b3
mov esp, ebp
pop ebp
ret