Function at 0x49a1b0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
add eax, 0x80
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0xc0]
test edx, edx
jne 0x49a2c7
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x720]
test ecx, ecx
jne 0x49a2c7
push 0xf
push str.Content_Length:
mov edx, dword [ebp + 0x10]
push edx
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x49a2c7
lea eax, [ebp - 0x68]
push eax
push 0xa
push 0
push str.Content_Length:
call fcn.00606e50
add esp, 4
add eax, dword [ebp + 0x10]
push eax
call fcn.004a3090
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x49a24b
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x68]
mov dword [ecx], edx
mov eax, dword [ebp - 0x64]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
mov dword [ecx + 0xc], edx
jmp 0x49a2c2
cmp dword [ebp - 0x24], 1
jne 0x49a2a7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x4f8]
or eax, dword [edx + 0x4fc]
je 0x49a286
push str.Maximum_file_size_exceeded
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487870
add esp, 8
mov eax, 0x3f
jmp 0x49ac48
push 2
mov edx, dword [ebp + 0xc]
push edx
call fcn.00488860
add esp, 8
push str.Overflow_Content_Length:_value_
mov eax, dword [ebp + 8]
push eax
call fcn.00487990
add esp, 8
jmp 0x49a2c2
push str.Invalid_Content_Length:_value
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487870
add esp, 8
mov eax, 8
jmp 0x49ac48
jmp 0x49ac46
push 0xd
push str.Content_Type:
mov edx, dword [ebp + 0x10]
push edx
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x49a34b
mov eax, dword [ebp + 0x10]
push eax
call fcn.00498a50
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x49a2fd
mov eax, 0x1b
jmp 0x49ac48
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
test edx, edx
jne 0x49a316
mov eax, dword [ebp - 0x14]
push eax
call dword [0x6b536c]
add esp, 4
jmp 0x49a346
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xd94]
push edx
call dword [0x6b536c]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0xd94], 0
xor ecx, ecx
jne 0x49a316
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0xd94], eax
jmp 0x49ac46
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x114]
cmp edx, 0xa
jne 0x49a3ad
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x258]
test ecx, ecx
je 0x49a3ad
push 0xa
push str.keep_alive
push 0x11
push str.Proxy_Connection:
mov edx, dword [ebp + 0x10]
push edx
call fcn.00498960
add esp, 0x14
movzx eax, al
test eax, eax
je 0x49a3ad
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00488860
add esp, 8
push str.HTTP_1.0_proxy_connection_set_to_keep_alive_
mov edx, dword [ebp + 8]
push edx
call fcn.00487990
add esp, 8
jmp 0x49ac46
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x114]
cmp ecx, 0xb
jne 0x49a40f
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x258]
test eax, eax
je 0x49a40f
push 5
push str.close
push 0x11
push str.Proxy_Connection:
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00498960
add esp, 0x14
movzx edx, al
test edx, edx
je 0x49a40f
push 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.00488860
add esp, 8
push str.HTTP_1.1_proxy_connection_set_close_
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487990
add esp, 8
jmp 0x49ac46
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x114]
cmp eax, 0xa
jne 0x49a463
push 0xa
push str.keep_alive
push 0xb
push str.Connection:
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00498960
add esp, 0x14
movzx edx, al
test edx, edx
je 0x49a463
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00488860
add esp, 8
push str.HTTP_1.0_connection_set_to_keep_alive_
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487990
add esp, 8
jmp 0x49ac46
push 5
push str.close
push 0xb
push str.Connection:
mov edx, dword [ebp + 0x10]
push edx
call fcn.00498960
add esp, 0x14
movzx eax, al
test eax, eax
je 0x49a497
push 2
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00488860
add esp, 8
jmp 0x49ac46
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0xc0]
test eax, eax
jne 0x49a517
push 0x12
push str.Transfer_Encoding:
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x49a517
push 1
push str.Transfer_Encoding:
call fcn.00606e50
add esp, 4
add eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0048db00
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x49a4ec
mov eax, dword [ebp - 0xc]
jmp 0x49ac48
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0xc1]
test ecx, ecx
jne 0x49a512
push 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.00488860
add esp, 8
mov eax, dword [ebp - 8]
mov byte [eax + 0xc2], 1
jmp 0x49ac46
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0xc0]
test edx, edx
jne 0x49a586
push 0x11
push str.Content_Encoding:
mov eax, dword [ebp + 0x10]
push eax
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x49a586
mov ecx, 4
imul edx, ecx, 9
mov eax, dword [ebp + 8]
cmp dword [eax + edx + 0x52c], 0
je 0x49a586
push 0
push str.Content_Encoding:
call fcn.00606e50
add esp, 4
add eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048db00
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x49a581
mov eax, dword [ebp - 0xc]
jmp 0x49ac48
jmp 0x49ac46
push 0xc
push str.Retry_After:
mov edx, dword [ebp + 0x10]
push edx
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x49a62c
xorpd xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
push str.Retry_After:
call fcn.00606e50
add esp, 4
add eax, dword [ebp + 0x10]
push eax
call fcn.004a3240
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x58], 0xffffffff
jne 0x49a5f8
cmp dword [ebp - 0x54], 0xffffffff
jne 0x49a5f8
lea eax, [ebp - 0x60]
push eax
push 0xa
push 0
push str.Retry_After:
call fcn.00606e50
add esp, 4
add eax, dword [ebp + 0x10]
push eax
call fcn.004a3090
add esp, 0x10
jmp 0x49a612
push 0
call fcn.00600892
add esp, 4
mov ecx, dword [ebp - 0x58]
sub ecx, eax
mov eax, dword [ebp - 0x54]
sbb eax, edx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x60]
mov dword [ecx + 0xda0], edx
mov eax, dword [ebp - 0x5c]
mov dword [ecx + 0xda4], eax
jmp 0x49ac46
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0xc0]
test edx, edx
jne 0x49a723
push 0xe
push str.Content_Range:
mov eax, dword [ebp + 0x10]
push eax
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x49a723
push str.Content_Range:
call fcn.00606e50
add esp, 4
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
test edx, edx
je 0x49a69f
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
push ecx
call fcn.00470860
add esp, 4
test eax, eax
jne 0x49a69f
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0x2a
je 0x49a69f
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x49a66c
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx]
push eax
call fcn.00470860
add esp, 4
test eax, eax
je 0x49a707
mov ecx, dword [ebp - 8]
add ecx, 0x68
push ecx
push 0xa
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.004a3090
add esp, 0x10
test eax, eax
jne 0x49a705
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [edx + 0xc60]
cmp ecx, dword [eax + 0x68]
jne 0x49a705
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [edx + 0xc64]
cmp ecx, dword [eax + 0x6c]
jne 0x49a705
mov edx, dword [ebp - 8]
mov byte [edx + 0xbd], 1
jmp 0x49a71e
mov eax, dword [ebp + 8]
mov dword [eax + 0xc60], 0
mov dword [eax + 0xc64], 0
jmp 0x49ac46
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x740], 0
je 0x49a866
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xd2b]
test eax, eax
je 0x49a866
push 0xb
push str.Set_Cookie:
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x49a866
mov edx, dword [ebp + 8]
cmp dword [edx + 0xd00], 0
je 0x49a77a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd00]
mov dword [ebp - 0x34], ecx
jmp 0x49a783
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x64]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x2a0]
mov ecx, dword [eax + 0x44]
and ecx, 2
jne 0x49a7e2
mov edx, dword [ebp - 0x18]
push edx
push str.localhost
call fcn.0048d640
add esp, 8
test eax, eax
jne 0x49a7e2
push str.127.0.0.1
mov eax, dword [ebp - 0x18]
push eax
call fcn.00606ee0
add esp, 8
test eax, eax
je 0x49a7e2
push str._::1_
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00606ee0
add esp, 8
test eax, eax
je 0x49a7e2
mov dword [ebp - 0x38], 0
jmp 0x49a7e9
mov dword [ebp - 0x38], 1
cmp dword [ebp - 0x38], 0
jne 0x49a7f8
mov dword [ebp - 0x3c], 0
jmp 0x49a7ff
mov dword [ebp - 0x3c], 1
mov dl, byte [ebp - 0x3c]
mov byte [ebp - 1], dl
push 2
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.0048de30
add esp, 0xc
movzx ecx, byte [ebp - 1]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xcb0]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push str.Set_Cookie:
call fcn.00606e50
add esp, 4
add eax, dword [ebp + 0x10]
push eax
push 0
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x740]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00476060
add esp, 0x20
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.0048de90
add esp, 8
jmp 0x49ac46
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0xc0]
test ecx, ecx
jne 0x49a902
push 0xe
push str.Last_Modified:
mov edx, dword [ebp + 0x10]
push edx
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x49a902
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3e4], 0
jne 0x49a8a9
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x705]
test edx, edx
je 0x49a902
push str.Last_Modified:
call fcn.00606e50
add esp, 4
add eax, dword [ebp + 0x10]
push eax
call fcn.004a3240
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x98], eax
mov dword [ecx + 0x9c], edx
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x705]
test eax, eax
je 0x49a8fd
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x98]
mov dword [ecx + 0xd70], eax
mov edx, dword [edx + 0x9c]
mov dword [ecx + 0xd74], edx
jmp 0x49ac46
push 0x11
push str.WWW_Authenticate:
mov eax, dword [ebp + 0x10]
push eax
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x49a925
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x70], 0x191
je 0x49a950
push 0x13
push str.Proxy_authenticate:
mov edx, dword [ebp + 0x10]
push edx
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x49a9df
mov eax, dword [ebp - 8]
cmp dword [eax + 0x70], 0x197
jne 0x49a9df
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x70], 0x197
jne 0x49a965
mov dword [ebp - 0x40], 1
jmp 0x49a96c
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 0
jne 0x49a97b
mov dword [ebp - 0x44], 0
jmp 0x49a982
mov dword [ebp - 0x44], 1
mov dl, byte [ebp - 0x44]
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
push eax
call fcn.00498a50
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x49a9a7
mov eax, 0x1b
jmp 0x49ac48
mov ecx, dword [ebp - 0x20]
push ecx
movzx edx, byte [ebp - 2]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0049afa0
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x6b536c]
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x49a9da
mov eax, dword [ebp - 0xc]
jmp 0x49ac48
jmp 0x49ac46
mov edx, dword [ebp - 8]
cmp dword [edx + 0x70], 0x12c
jl 0x49aad8
mov eax, dword [ebp - 8]
cmp dword [eax + 0x70], 0x190
jge 0x49aad8
push 9
push str.Location:
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x49aad8
mov edx, dword [ebp + 8]
cmp dword [edx + 0x124], 0
jne 0x49aad8
mov eax, dword [ebp + 0x10]
push eax
call fcn.00498a50
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x49aa49
mov eax, 0x1b
jmp 0x49ac48
mov ecx, dword [ebp - 0x1c]
movsx edx, byte [ecx]
test edx, edx
jne 0x49aa62
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x6b536c]
add esp, 4
jmp 0x49aad3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x124], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x712]
test ecx, ecx
je 0x49aad3
xor edx, edx
jne 0x49aa7c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x124]
push ecx
call dword [0x6b5374]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x128], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x128], 0
jne 0x49aab2
mov eax, 0x1b
jmp 0x49ac48
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0049d3a0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x49aad3
mov eax, dword [ebp - 0xc]
jmp 0x49ac48
jmp 0x49ac46
mov eax, dword [ebp + 8]
cmp dword [eax + 0x744], 0
je 0x49ab58
push 0x1a
push str.Strict_Transport_Security:
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x49ab58
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x2a0]
mov ecx, dword [eax + 0x4c]
and ecx, 1
je 0x49ab58
push str.Strict_Transport_Security:
call fcn.00606e50
add esp, 4
add eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc9c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x744]
push edx
call fcn.0048c960
add esp, 0xc
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x49ab53
push str.Illegal_STS_header_skipped
mov eax, dword [ebp + 8]
push eax
call fcn.00487990
add esp, 8
jmp 0x49ac46
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x748], 0
je 0x49ac15
push 8
push str.Alt_Svc:
mov edx, dword [ebp + 0x10]
push edx
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x49ac15
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2a0]
mov edx, dword [ecx + 0x4c]
and edx, 1
jne 0x49ab98
xor eax, eax
je 0x49ac15
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x114]
cmp edx, 0x14
jne 0x49abb0
mov dword [ebp - 0x48], 0x10
jmp 0x49abb7
mov dword [ebp - 0x48], 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc8]
push edx
call fcn.00470d80
add esp, 4
movzx eax, ax
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x64]
push edx
mov eax, dword [ebp - 0x50]
push eax
push str.Alt_Svc:
call fcn.00606e50
add esp, 4
add eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x748]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048b770
add esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x49ac13
mov eax, dword [ebp - 0xc]
jmp 0x49ac48
jmp 0x49ac46
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x2a0]
mov eax, dword [edx + 0x44]
and eax, 0x40000
je 0x49ac46
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004c42f0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x49ac46
mov eax, dword [ebp - 0xc]
jmp 0x49ac48
xor eax, eax
mov esp, ebp
pop ebp
ret