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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4a1c
mov eax, dword fs:[0]
push eax
sub esp, 0x130
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 edi, ecx
lea ebx, [edi - 4]
mov ecx, ebx
call fcn.00523c00
test al, al
je 0x524afb
push 0
push dword [edi + 0x5c]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x524a46
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 0x5248fc
push 0x1e
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x118], 0xe
call fcn.0056f8a6
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.00585d85
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.00545b40
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
add esp, 0x30
test eax, eax
je 0x5247bc
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x11c], 0
push esi
lea ecx, [edi + 0x48]
mov dword [ebp - 0x118], 0
call fcn.00546210
test esi, esi
je 0x5247fc
mov eax, dword [esi]
test eax, eax
je 0x5247ea
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 0x1e
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x118], 0xe
call fcn.0056f8a6
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.00585d85
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.00545b40
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
add esp, 0x30
test eax, eax
je 0x5248bc
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x11c], 0
push esi
lea ecx, [edi + 0x50]
mov dword [ebp - 0x118], 0
call fcn.00546210
test esi, esi
je 0x5248fc
mov eax, dword [esi]
test eax, eax
je 0x5248ea
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 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 0x52493e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [edi + 0x34], eax
call fcn.00523ff0
jmp 0x524afb
mov ecx, dword [edi + 0x3c]
lea eax, [ecx - 0xc8]
cmp eax, 0x63
ja 0x524a37
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 0x524afb
mov eax, dword [ebp - 0x118]
add eax, 2
push eax
call fcn.005773f5
mov esi, eax
add esp, 4
test esi, esi
je 0x524afb
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 0x524a29
push esi
lea ecx, [ebp - 0x13c]
call fcn.00545630
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 2
push eax
push 0xd
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x120], 0
call fcn.00546ff0
mov edi, eax
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x524a04
test edi, edi
je 0x524a04
push eax
push edi
mov ecx, ebx
call fcn.005244d0
mov eax, dword [ebp - 0x120]
mov edx, eax
mov ecx, edi
call fcn.00548030
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x524a29
push 2
push eax
call fcn.0056f898
add esp, 8
push esi
call fcn.005773d8
add esp, 4
jmp 0x524afb
mov dword [edi + 0x34], ecx
mov ecx, ebx
call fcn.00524220
jmp 0x524afb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0
push esi
call fcn.005459c0
push 0x50
mov dword [edi + 0x38], eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x124], 0x27
call fcn.0056f8a6
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.00585d85
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.005480b0
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.00550890
mov eax, dword [ebp - 0x128]
add esp, 0x1c
test eax, eax
je 0x524afb
push 2
push eax
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056f3c2
mov esp, ebp
pop ebp
ret