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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43786c
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x451008]
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
mov dword [ebp - 0x138], ebx
call fcn.00412fc0
test al, al
je 0x414278
push 0
push dword [edi + 0x5c]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4141c3
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 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 0x414020
push 0x1e
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x118], 0xe
call fcn.0041b26a
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.00426d70
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.0040d840
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
add esp, 0x30
test eax, eax
je 0x413f22
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x11c], 0
push esi
lea ecx, [edi + 0x48]
mov dword [ebp - 0x118], 0
call fcn.0040de20
test esi, esi
je 0x413f41
push ecx
mov ecx, esi
call fcn.00409b80
push 0x1e
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x118], 0xe
call fcn.0041b26a
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.00426d70
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.0040d840
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
add esp, 0x30
test eax, eax
je 0x414001
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x11c], 0
push esi
lea ecx, [edi + 0x50]
mov dword [ebp - 0x118], 0
call fcn.0040de20
test esi, esi
je 0x414020
push ecx
mov ecx, esi
call fcn.00409b80
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea ecx, [ebp - 0x134]
push 0
push ecx
lea eax, [edi + 0x3c]
mov dword [ebp - 0x134], 4
push eax
push 0
push 0x20000013
push dword [edi + 0x5c]
call esi
test eax, eax
jne 0x414062
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [edi + 0x34], eax
call fcn.004133e0
jmp 0x414278
mov ecx, dword [edi + 0x3c]
lea eax, [ecx - 0xc8]
cmp eax, 0x63
ja 0x4141b4
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 0x414278
mov eax, dword [ebp - 0x118]
add eax, 2
push eax
call fcn.0042743a
mov edi, eax
add esp, 4
mov dword [ebp - 0x124], edi
test edi, edi
je 0x414278
push 0
lea eax, [ebp - 0x118]
push eax
push edi
push 0
push 0x16
push dword [ebx + 0x60]
call esi
test eax, eax
je 0x4141a6
push edi
lea ecx, [ebp - 0x140]
call fcn.0040d2b0
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 2
push eax
push 0xd
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x120], 0
call fcn.0040e910
mov esi, dword [ebp - 0x120]
mov ebx, eax
test esi, esi
je 0x414191
test ebx, ebx
je 0x41412c
mov ecx, dword [ebp - 0x138]
push esi
push ebx
call fcn.00413c30
test esi, esi
je 0x414191
test ebx, ebx
je 0x414191
xor edi, edi
test esi, esi
je 0x414180
nop word [eax + eax]
mov esi, dword [ebx + edi*4]
test esi, esi
je 0x414170
mov eax, dword [esi]
test eax, eax
je 0x41415e
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0041aef0
add esp, 8
mov dword [ebx + edi*4], 0
inc edi
cmp edi, dword [ebp - 0x120]
jb 0x414140
push 4
push ebx
call fcn.0041aef0
mov edi, dword [ebp - 0x124]
add esp, 8
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x4141a6
push 2
push eax
call fcn.0041aef0
add esp, 8
push edi
call fcn.0042741d
add esp, 4
jmp 0x414278
mov dword [edi + 0x34], ecx
mov ecx, ebx
call fcn.00413620
jmp 0x414278
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0
push esi
call fcn.0040d6c0
push 0x50
mov dword [edi + 0x38], eax
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 0x27
call fcn.0041b26a
mov ecx, dword [ebp - 0x128]
push 0xffffffffffffffff
push str.ODownload_Receive_Failure_error___s___d
inc ecx
mov dword [ebp - 0x12c], eax
push ecx
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00426d70
mov ecx, dword [ebp - 0x128]
xor edx, edx
add esp, 0x20
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x128], ecx
push esi
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.004181c0
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x1d3
push str.ODownload::run
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srcodownload.cpp
push 0
call fcn.00416c20
mov eax, dword [ebp - 0x12c]
add esp, 0x1c
test eax, eax
je 0x414278
push 2
push eax
call fcn.0041aef0
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.0041ab17
mov esp, ebp
pop ebp
ret