Function at 0x496af4
Capabilities:
Check http status code

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [esp + 0x24]
cmp byte [esi + 0x142], 0
jne 0x496bd0
cmp byte [esi + 0x6d1], 0
jne 0x496bd0
test edi, edi
je 0x496c21
mov ebp, str.Content_Length:
mov ecx, edi
push 0xf
mov edx, ebp
call fcn.0047fb0c
pop ecx
test eax, eax
je 0x496bd4
lea eax, [esp + 0x18]
push eax
push 0xa
push ebp
call fcn.00520660
pop ecx
xor edx, edx
lea ecx, [edi + eax]
call fcn.0049e54f
pop ecx
pop ecx
test eax, eax
jne 0x496b86
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x88], ecx
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], ecx
mov dword [esi + 0x94], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp eax, 1
jne 0x496bbf
mov eax, dword [esi + 0x4c0]
or eax, dword [esi + 0x4c4]
je 0x496bab
push str.Maximum_file_size_exceeded
push esi
call fcn.0048c1c7
pop ecx
pop ecx
push 0x3f
pop eax
jmp 0x496b7e
push 2
pop edx
mov ecx, ebx
call fcn.00483499
push str.Overflow_Content_Length:_value
jmp 0x4971c6
push str.Invalid_Content_Length:_value
push esi
call fcn.0048c1c7
pop ecx
pop ecx
push 8
jmp 0x496ba8
test edi, edi
je 0x496c21
push 0xd
mov edx, str.Content_Type:
mov ecx, edi
call fcn.0047fb0c
pop ecx
test eax, eax
je 0x496c21
mov ecx, edi
call fcn.004938f0
mov edi, eax
test edi, edi
je 0x49716b
cmp byte [edi], 0
jne 0x496c09
push edi
call dword [0x5c9b0c]
jmp 0x4971cd
push dword [esi + 0xdbc]
call dword [0x5c9b0c]
pop ecx
mov dword [esi + 0xdbc], edi
jmp 0x496b7c
cmp byte [ebx + 0x34d], 0xa
mov ebp, str.Proxy_Connection:
jne 0x496c64
cmp byte [ebx + 0x1e0], 0
je 0x496c64
push 0xa
push str.keep_alive
push 0x11
mov edx, ebp
mov ecx, edi
call fcn.0049465e
add esp, 0xc
test al, al
je 0x496c64
xor edx, edx
mov ecx, ebx
call fcn.00483499
push str.HTTP_1.0_proxy_connection_set_to_keep_alive
jmp 0x4971c6
cmp byte [ebx + 0x34d], 0xb
jne 0x496ca3
cmp byte [ebx + 0x1e0], 0
je 0x496ca3
push 5
push str.close
push 0x11
mov edx, ebp
mov ecx, edi
call fcn.0049465e
add esp, 0xc
test al, al
je 0x496ca3
xor edx, edx
mov ecx, ebx
inc edx
call fcn.00483499
push str.HTTP_1.1_proxy_connection_set_close
jmp 0x4971c6
cmp byte [ebx + 0x34d], 0xa
mov ebp, str.Connection:
jne 0x496cdd
push 0xa
push str.keep_alive
push 0xb
mov edx, ebp
mov ecx, edi
call fcn.0049465e
add esp, 0xc
test al, al
je 0x496cdd
xor edx, edx
mov ecx, ebx
call fcn.00483499
push str.HTTP_1.0_connection_set_to_keep_alive
jmp 0x4971c6
push 5
push str.close
push 0xb
mov edx, ebp
mov ecx, edi
call fcn.0049465e
add esp, 0xc
test al, al
je 0x496d05
push 2
pop edx
mov ecx, ebx
call fcn.00483499
jmp 0x496b7c
mov al, byte [esi + 0x142]
mov byte [esp + 0x17], al
test al, al
jne 0x496dbc
test edi, edi
je 0x496f1a
mov ebp, str.Transfer_Encoding:
mov ecx, edi
push 0x12
mov edx, ebp
call fcn.0047fb0c
pop ecx
test eax, eax
je 0x496d7d
push 1
push ebp
call fcn.00520660
pop ecx
mov ecx, esi
lea edx, [edi + eax]
call fcn.0048e93d
pop ecx
test eax, eax
jne 0x496b7e
cmp byte [esi + 0x143], al
jne 0x496b7c
cmp byte [esi + 0x6c5], al
je 0x496b7c
xor edx, edx
mov ecx, ebx
inc edx
call fcn.00483499
mov byte [esi + 0x144], dl
jmp 0x496b7c
mov ebp, str.Content_Encoding:
mov ecx, edi
push 0x11
mov edx, ebp
call fcn.0047fb0c
pop ecx
test eax, eax
je 0x496dc4
cmp dword [esi + 0x508], 0
je 0x496dc4
push 0
push ebp
call fcn.00520660
pop ecx
mov ecx, esi
lea edx, [edi + eax]
call fcn.0048e93d
pop ecx
test eax, eax
je 0x496b7c
jmp 0x496b7e
test edi, edi
je 0x496f1a
mov ebp, str.Retry_After:
mov ecx, edi
push 0xc
mov edx, ebp
call fcn.0047fb0c
pop ecx
test eax, eax
je 0x496e4f
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 0xa
push ebp
movlpd qword [esp + 0x24], xmm0
call fcn.00520660
pop ecx
xor edx, edx
lea ecx, [edi + eax]
call fcn.0049e54f
mov ebx, dword [esp + 0x20]
mov eax, ebx
mov ebp, dword [esp + 0x24]
or eax, ebp
pop ecx
pop ecx
jne 0x496e3e
push str.Retry_After:
call fcn.00520660
pop ecx
lea ecx, [edi + eax]
call fcn.0049ed2e
mov dword [esp + 0x18], eax
mov edi, edx
cmp eax, 0xffffffff
jne 0x496e2c
cmp edi, eax
je 0x496e3e
push 0
call fcn.00530c3c
mov ebx, dword [esp + 0x1c]
mov ebp, edi
sub ebx, eax
pop ecx
sbb ebp, edx
mov dword [esi + 0xdc8], ebx
mov dword [esi + 0xdcc], ebp
jmp 0x496b7c
cmp byte [esp + 0x17], 0
jne 0x496f1a
test edi, edi
je 0x496f1a
mov ebp, str.Content_Range:
mov ecx, edi
push 0xe
mov edx, ebp
call fcn.0047fb0c
pop ecx
test eax, eax
je 0x496f1a
push ebp
call fcn.00520660
add eax, edi
pop ecx
mov dl, byte [eax]
mov bl, dl
test dl, dl
je 0x496ea8
mov cl, dl
cmp dl, 0x30
jl 0x496e98
cmp cl, 0x39
jle 0x496ea8
cmp cl, 0x2a
je 0x496ea8
inc eax
mov cl, byte [eax]
mov dl, cl
mov bl, cl
test cl, cl
jne 0x496e8e
cmp bl, 0x30
jl 0x496ef7
cmp byte [eax], 0x39
jg 0x496ef7
lea edi, [esi + 0xd0]
xor edx, edx
push edi
push 0xa
mov ecx, eax
call fcn.0049e54f
pop ecx
pop ecx
test eax, eax
jne 0x496b7c
mov eax, dword [esi + 0xc50]
cmp eax, dword [edi]
jne 0x496b7c
mov eax, dword [esi + 0xc54]
cmp eax, dword [edi + 4]
jne 0x496b7c
mov byte [esi + 0x13e], 1
jmp 0x496b7c
cmp dword [esi + 0xd8], 0x12c
jge 0x496b7c
and dword [esi + 0xc50], 0
and dword [esi + 0xc54], 0
jmp 0x496b7c
cmp dword [esi + 0x6e8], 0
je 0x496ff0
cmp byte [esi + 0xd79], 0
je 0x496ff0
test edi, edi
je 0x4970e3
push 0xb
mov edx, str.Set_Cookie:
mov ecx, edi
call fcn.0047fb0c
pop ecx
test eax, eax
je 0x496ff8
mov ebp, dword [esi + 0xd4c]
test ebp, ebp
jne 0x496f60
mov ebp, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x200]
test byte [eax + 0x44], 2
jne 0x496fa3
mov edx, ebp
mov ecx, str.localhost
call fcn.0047fac1
test eax, eax
jne 0x496fa3
push str.127.0.0.1
push ebp
call fcn.005205d0
pop ecx
pop ecx
test eax, eax
je 0x496fa3
push 0x5981e4
push ebp
call fcn.005205d0
mov byte [esp + 0x20], 0
pop ecx
pop ecx
test eax, eax
jne 0x496fa8
mov byte [esp + 0x18], 1
push ecx
push 2
pop edx
mov ecx, esi
call fcn.0047a896
pop ecx
push dword [esp + 0x18]
push dword [esi + 0xcb4]
push ebp
push str.Set_Cookie:
call fcn.00520660
mov edx, dword [esi + 0x6e8]
add eax, edi
pop ecx
push eax
push 0
push 1
mov ecx, esi
call fcn.00484b53
add esp, 0x18
mov ecx, esi
push 2
pop edx
call fcn.0047a8cd
jmp 0x496b7c
test edi, edi
je 0x4970e3
cmp byte [esp + 0x17], 0
jne 0x49705f
mov ebp, str.Last_Modified:
mov ecx, edi
push 0xe
mov edx, ebp
call fcn.0047fb0c
pop ecx
test eax, eax
je 0x49705f
cmp byte [esi + 0x3c0], 0
jne 0x497026
cmp byte [esi + 0x6b6], 0
je 0x49705f
push ebp
call fcn.00520660
pop ecx
lea ecx, [edi + eax]
call fcn.0049ed2e
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], edx
cmp byte [esi + 0x6b6], 0
je 0x496b7c
mov dword [esi + 0xda0], eax
mov dword [esi + 0xda4], edx
jmp 0x496b7c
push 0x11
mov edx, str.WWW_Authenticate:
mov ecx, edi
call fcn.0047fb0c
pop ecx
test eax, eax
je 0x497082
mov ebp, dword [esi + 0xd8]
cmp ebp, 0x191
je 0x4970a7
jmp 0x497086
test edi, edi
je 0x4970e3
push 0x13
mov edx, str.Proxy_authenticate:
mov ecx, edi
call fcn.0047fb0c
pop ecx
test eax, eax
je 0x4970e3
mov ebp, dword [esi + 0xd8]
cmp ebp, 0x197
jne 0x4970e3
mov ecx, edi
call fcn.004938f0
mov edi, eax
test edi, edi
je 0x49716b
cmp ebp, 0x197
mov ecx, esi
push edi
sete dl
call fcn.00494140
pop ecx
push edi
mov esi, eax
call dword [0x5c9b0c]
pop ecx
test esi, esi
je 0x496b7c
mov eax, esi
jmp 0x496b7e
mov eax, dword [esi + 0xd8]
sub eax, 0x12c
cmp eax, 0x63
ja 0x497172
test edi, edi
je 0x497172
push 9
mov edx, str.Location:
mov ecx, edi
call fcn.0047fb0c
pop ecx
test eax, eax
je 0x497172
cmp dword [esi + 0x10c], 0
jne 0x497172
mov ecx, edi
call fcn.004938f0
test eax, eax
je 0x49716b
cmp byte [eax], 0
jne 0x497129
push eax
jmp 0x496bfe
cmp byte [esi + 0x6c4], 0
mov dword [esi + 0x10c], eax
je 0x496b7c
push eax
call dword [0x5c9b38]
mov dword [esi + 0x110], eax
pop ecx
test eax, eax
je 0x49716b
mov edx, ebx
mov ecx, esi
call fcn.00493b00
test eax, eax
jne 0x496b7e
mov byte [esi + 0xd6d], 1
jmp 0x496b7c
push 0x1b
jmp 0x496ba8
cmp dword [esi + 0x6ec], 0
je 0x4971d3
test edi, edi
je 0x4971d3
mov ebp, str.Strict_Transport_Security:
mov ecx, edi
push 0x1a
mov edx, ebp
call fcn.0047fb0c
pop ecx
test eax, eax
je 0x4971d3
mov eax, dword [ebx + 0x200]
test byte [eax + 0x4c], 1
je 0x4971d3
push ebp
call fcn.00520660
mov edx, dword [ebx + 0x6c]
add eax, edi
pop ecx
mov ecx, dword [esi + 0x6ec]
push eax
call fcn.0048b904
pop ecx
test eax, eax
je 0x496b7c
push str.Illegal_STS_header_skipped
push esi
call fcn.0048c275
pop ecx
pop ecx
jmp 0x496b7c
cmp dword [esi + 0x6f0], 0
je 0x497247
test edi, edi
je 0x497247
push 8
pop ebp
push ebp
mov edx, str.Alt_Svc:
mov ecx, edi
call fcn.0047fb0c
pop ecx
test eax, eax
je 0x497247
mov eax, dword [ebx + 0x200]
test byte [eax + 0x4c], 1
je 0x497247
mov al, byte [ebx + 0x34d]
cmp al, 0x1e
jne 0x497210
push 0x20
pop ebp
jmp 0x497218
push 0x10
cmp al, 0x14
pop ecx
cmove ebp, ecx
movzx eax, word [ebx + 0x338]
push eax
push dword [ebx + 0x6c]
push ebp
push str.Alt_Svc:
call fcn.00520660
mov edx, dword [esi + 0x6f0]
add eax, edi
pop ecx
push eax
mov ecx, esi
call fcn.00486fe8
add esp, 0x10
jmp 0x496daf
mov eax, dword [ebx + 0x200]
test dword [eax + 0x44], 0x40000
je 0x496b7c
mov edx, edi
mov ecx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp fcn.004a3517