Function at 0x40d5fe
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x140], 0
jne 0x40d6c4
cmp byte [esi + 0x70b], 0
jne 0x40d6c4
push 0xf
mov edx, str.Content_Length:
mov ecx, edi
call fcn.0041ad99
pop ecx
test eax, eax
je 0x40d6c4
lea eax, [ebp - 0x14]
xor edx, edx
push eax
push 0xa
lea ecx, [edi + 0xf]
call fcn.0041b783
pop ecx
pop ecx
test eax, eax
jne 0x40d67a
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], ecx
mov dword [esi + 0x8c], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
cmp eax, 1
jne 0x40d6b3
mov eax, dword [esi + 0x4f8]
or eax, dword [esi + 0x4fc]
je 0x40d69f
push str.Maximum_file_size_exceeded
push esi
call fcn.00416cbd
pop ecx
pop ecx
push 0x3f
pop eax
jmp 0x40d675
push 2
pop edx
mov ecx, ebx
call fcn.00405134
push str.Overflow_Content_Length:_value
jmp 0x40dc31
push str.Invalid_Content_Length:_value
push esi
call fcn.00416cbd
pop ecx
pop ecx
push 8
jmp 0x40d69c
push 0xd
mov edx, str.Content_Type:
mov ecx, edi
call fcn.0041ad99
pop ecx
test eax, eax
je 0x40d711
mov ecx, edi
call fcn.0040a901
mov edi, eax
test edi, edi
je 0x40dbdf
cmp byte [edi], 0
jne 0x40d6f9
push edi
call dword [0x53b9f4]
jmp 0x40dc38
push dword [esi + 0xd84]
call dword [0x53b9f4]
pop ecx
mov dword [esi + 0xd84], edi
jmp 0x40d673
cmp byte [ebx + 0x114], 0xa
jne 0x40d752
cmp byte [ebx + 0x258], 0
je 0x40d752
push 0xa
push str.keep_alive
push 0x11
mov edx, str.Proxy_Connection:
mov ecx, edi
call fcn.0040b54f
add esp, 0xc
test al, al
je 0x40d752
xor edx, edx
mov ecx, ebx
call fcn.00405134
push str.HTTP_1.0_proxy_connection_set_to_keep_alive
jmp 0x40dc31
cmp byte [ebx + 0x114], 0xb
jne 0x40d79a
cmp byte [ebx + 0x258], 0
je 0x40d79a
push 5
push str.close
push 0x11
mov edx, str.Proxy_Connection:
mov ecx, edi
call fcn.0040b54f
add esp, 0xc
test al, al
je 0x40d79a
cmp byte [ebx + 0x25e], 1
je 0x40d790
mov byte [ebx + 0x25e], 1
push str.HTTP_1.1_proxy_connection_set_close
jmp 0x40dc31
cmp byte [ebx + 0x114], 0xa
jne 0x40d7d2
push 0xa
push str.keep_alive
push 0xb
mov edx, str.Connection:
mov ecx, edi
call fcn.0040b54f
add esp, 0xc
test al, al
je 0x40d7d2
xor edx, edx
mov ecx, ebx
call fcn.00405134
push str.HTTP_1.0_connection_set_to_keep_alive
jmp 0x40dc31
push 5
push str.close
push 0xb
mov edx, str.Connection:
mov ecx, edi
call fcn.0040b54f
add esp, 0xc
test al, al
je 0x40d7fd
push 2
pop edx
mov ecx, ebx
call fcn.00405134
jmp 0x40d673
mov al, byte [esi + 0x140]
mov byte [ebp - 5], al
test al, al
jne 0x40d894
push 0x12
mov edx, str.Transfer_Encoding:
mov ecx, edi
call fcn.0041ad99
pop ecx
test eax, eax
je 0x40d85e
push 1
lea edx, [edi + 0x12]
mov ecx, esi
call fcn.00405340
pop ecx
test eax, eax
jne 0x40d675
cmp byte [esi + 0x141], al
jne 0x40d673
cmp byte [ebx + 0x25e], 1
je 0x40d852
mov byte [ebx + 0x25e], 1
mov byte [esi + 0x142], 1
jmp 0x40d673
push 0x11
mov edx, str.Content_Encoding:
mov ecx, edi
call fcn.0041ad99
pop ecx
test eax, eax
je 0x40d894
cmp dword [esi + 0x544], 0
je 0x40d894
push 0
lea edx, [edi + 0x11]
mov ecx, esi
call fcn.00405340
pop ecx
test eax, eax
je 0x40d673
jmp 0x40d675
push 0xc
mov edx, str.Retry_After:
mov ecx, edi
call fcn.0041ad99
pop ecx
test eax, eax
je 0x40d8ff
lea eax, [edi + 0xc]
xorps xmm0, xmm0
mov ecx, eax
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], eax
call fcn.004155bc
mov ebx, eax
mov edi, edx
cmp ebx, 0xffffffff
jne 0x40d8e2
cmp edi, eax
jne 0x40d8e2
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push 0xa
xor edx, edx
call fcn.0041b783
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
pop ecx
jmp 0x40d8ed
push 0
call fcn.004d1554
sub ebx, eax
sbb edi, edx
pop ecx
mov dword [esi + 0xd90], ebx
mov dword [esi + 0xd94], edi
jmp 0x40d673
cmp byte [ebp - 5], 0
jne 0x40d9ab
push 0xe
mov edx, str.Content_Range:
mov ecx, edi
call fcn.0041ad99
pop ecx
test eax, eax
je 0x40d9ab
add edi, 0xe
mov dl, byte [edi]
test dl, dl
je 0x40d947
mov bl, dl
movzx ecx, bl
mov dl, bl
call fcn.004071a4
test eax, eax
jne 0x40d947
cmp bl, 0x2a
je 0x40d947
inc edi
mov dl, byte [edi]
mov bl, dl
test dl, dl
jne 0x40d92b
movzx ecx, dl
call fcn.004071a4
test eax, eax
je 0x40d998
lea ebx, [esi + 0xe8]
xor edx, edx
push ebx
push 0xa
mov ecx, edi
call fcn.0041b783
pop ecx
pop ecx
test eax, eax
jne 0x40d673
mov eax, dword [esi + 0xc50]
cmp eax, dword [ebx]
jne 0x40d673
mov eax, dword [esi + 0xc54]
cmp eax, dword [ebx + 4]
jne 0x40d673
mov byte [esi + 0x13d], 1
jmp 0x40d673
and dword [esi + 0xc50], 0
and dword [esi + 0xc54], 0
jmp 0x40d673
cmp dword [esi + 0x728], 0
je 0x40da88
cmp byte [esi + 0xd43], 0
je 0x40da88
push 0xb
mov edx, str.Set_Cookie:
mov ecx, edi
call fcn.0041ad99
pop ecx
test eax, eax
je 0x40da88
mov ecx, dword [esi + 0xd18]
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x40d9ef
mov ecx, dword [ebx + 0x60]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x2a0]
test byte [eax + 0x44], 2
jne 0x40da44
mov edx, ecx
mov ecx, str.localhost
call fcn.0041ad3b
mov ebx, dword [ebp - 0xc]
test eax, eax
jne 0x40da47
mov edx, 0x51ab3c
xor ecx, ecx
movzx eax, byte [ebx + ecx]
cmp al, byte [edx + ecx]
jne 0x40da26
inc ecx
cmp ecx, 0xa
jne 0x40da15
jmp 0x40da47
mov edx, str._::1_
xor ecx, ecx
movzx eax, byte [ebx + ecx]
cmp al, byte [edx + ecx]
jne 0x40da3e
inc ecx
cmp ecx, 6
jne 0x40da2d
jmp 0x40da47
mov byte [ebp - 0xc], 0
jmp 0x40da4b
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0xc], 1
push ecx
push 2
pop edx
mov ecx, esi
call fcn.004196c4
mov edx, dword [esi + 0x728]
lea eax, [edi + 0xb]
pop ecx
push dword [ebp - 0xc]
mov ecx, esi
push dword [esi + 0xca0]
push ebx
push eax
push 0
push 1
call fcn.00405894
add esp, 0x18
mov ecx, esi
push 2
pop edx
call fcn.004196f8
jmp 0x40d673
cmp byte [ebp - 5], 0
jne 0x40dae7
push 0xe
mov edx, str.Last_Modified:
mov ecx, edi
call fcn.0041ad99
pop ecx
test eax, eax
je 0x40dae7
cmp dword [esi + 0x3e4], 0
jne 0x40dab3
cmp byte [esi + 0x6f5], 0
je 0x40dae7
lea ecx, [edi + 0xe]
call fcn.004155bc
mov dword [esi + 0x118], eax
mov dword [esi + 0x11c], edx
cmp byte [esi + 0x6f5], 0
je 0x40d673
mov dword [esi + 0xd60], eax
mov eax, edx
mov dword [esi + 0xd64], eax
jmp 0x40d673
push 0x11
mov edx, str.WWW_Authenticate:
mov ecx, edi
call fcn.0041ad99
pop ecx
test eax, eax
je 0x40db0a
mov eax, dword [esi + 0xf0]
mov dword [ebp - 0xc], eax
cmp eax, 0x191
je 0x40db2d
push 0x13
mov edx, str.Proxy_authenticate:
mov ecx, edi
call fcn.0041ad99
pop ecx
test eax, eax
je 0x40db6a
mov eax, dword [esi + 0xf0]
mov dword [ebp - 0xc], eax
cmp eax, 0x197
jne 0x40db6a
mov ecx, edi
call fcn.0040a901
mov edi, eax
test edi, edi
je 0x40dbdf
cmp dword [ebp - 0xc], 0x197
mov ecx, esi
push edi
sete dl
call fcn.0040b09b
pop ecx
push edi
mov esi, eax
call dword [0x53b9f4]
pop ecx
test esi, esi
je 0x40d673
mov eax, esi
jmp 0x40d675
mov eax, dword [esi + 0xf0]
sub eax, 0x12c
cmp eax, 0x63
ja 0x40dbe6
push 9
mov edx, str.Location:
mov ecx, edi
call fcn.0041ad99
pop ecx
test eax, eax
je 0x40dbe6
cmp dword [esi + 0x124], 0
jne 0x40dbe6
mov ecx, edi
call fcn.0040a901
test eax, eax
je 0x40dbdf
cmp byte [eax], 0
jne 0x40dbac
push eax
jmp 0x40d6ee
cmp byte [esi + 0x6fd], 0
mov dword [esi + 0x124], eax
je 0x40d673
push eax
call dword [0x53b9f8]
mov dword [esi + 0x128], eax
pop ecx
test eax, eax
je 0x40dbdf
mov edx, ebx
mov ecx, esi
call fcn.0040ab19
jmp 0x40d887
push 0x1b
jmp 0x40d69c
cmp dword [esi + 0x72c], 0
je 0x40dc3e
push 0x1a
mov edx, str.Strict_Transport_Security:
mov ecx, edi
call fcn.0041ad99
pop ecx
test eax, eax
je 0x40dc3e
mov eax, dword [ebx + 0x2a0]
test byte [eax + 0x4c], 1
je 0x40dc3e
mov edx, dword [esi + 0xc8c]
lea eax, [edi + 0x1a]
mov ecx, dword [esi + 0x72c]
push eax
call fcn.0040a075
pop ecx
test eax, eax
je 0x40d673
push str.Illegal_STS_header_skipped
push esi
call fcn.00416c42
pop ecx
pop ecx
jmp 0x40d673
cmp dword [esi + 0x730], 0
je 0x40dc9b
push 8
mov edx, str.Alt_Svc:
mov ecx, edi
call fcn.0041ad99
pop ecx
test eax, eax
je 0x40dc9b
mov eax, dword [ebx + 0x2a0]
test byte [eax + 0x4c], 1
je 0x40dc9b
cmp byte [ebx + 0x114], 0x14
mov edx, dword [esi + 0x730]
push 0x10
pop eax
push 8
pop ecx
cmove ecx, eax
movzx eax, word [ebx + 0xc4]
push eax
push dword [ebx + 0x60]
lea eax, [edi + 8]
push ecx
push eax
mov ecx, esi
call fcn.004024ce
add esp, 0x10
jmp 0x40d887
mov eax, dword [ebx + 0x2a0]
test dword [eax + 0x44], 0x40000
je 0x40d673
push 4
jmp 0x40d69c