Function at 0xd48960
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 + 0x146], 0
jne 0xd48a4b
cmp byte [esi + 0x6d1], 0
jne 0xd48a4b
push 0xf
mov edx, str.Content_Length:
mov ecx, edi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd48a4b
lea eax, [ebp - 0x14]
xor edx, edx
push eax
push 0xa
lea ecx, [edi + 0xf]
call fcn.00d4f6e0
add esp, 8
test eax, eax
jne 0xd489e1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x84], eax
mov dword [esi + 0x8c], eax
xor eax, eax
mov dword [esi + 0x80], ecx
mov dword [esi + 0x88], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0xd48a31
mov eax, dword [esi + 0x4c8]
or eax, dword [esi + 0x4cc]
je 0xd48a0e
push str.Maximum_file_size_exceeded
push esi
call fcn.00d390f0
add esp, 8
mov eax, 0x3f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 2
mov ecx, ebx
call fcn.00d2f9f0
push str.Overflow_Content_Length:_value
push esi
call fcn.00d391b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_Content_Length:_value
push esi
call fcn.00d390f0
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xd
mov edx, str.Content_Type:
mov ecx, edi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd48aa7
mov ecx, edi
call fcn.00d453b0
mov edi, eax
test edi, edi
je 0xd490c6
cmp byte [edi], 0
jne 0xd48a89
push edi
call dword [0xddeddc]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0xd9c]
call dword [0xddeddc]
add esp, 4
mov dword [esi + 0xd9c], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x44d], 0xa
jne 0xd48af5
cmp byte [ebx + 0x1c0], 0
je 0xd48af5
push 0xa
push str.keep_alive
push 0x11
mov edx, str.Proxy_Connection:
mov ecx, edi
call fcn.00d464c0
add esp, 0xc
test al, al
je 0xd48af5
xor edx, edx
mov ecx, ebx
call fcn.00d2f9f0
push str.HTTP_1.0_proxy_connection_set_to_keep_alive
push esi
call fcn.00d391b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x44d], 0xb
jne 0xd48b46
cmp byte [ebx + 0x1c0], 0
je 0xd48b46
push 5
push str.close
push 0x11
mov edx, str.Proxy_Connection:
mov ecx, edi
call fcn.00d464c0
add esp, 0xc
test al, al
je 0xd48b46
mov edx, 1
mov ecx, ebx
call fcn.00d2f9f0
push str.HTTP_1.1_proxy_connection_set_close
push esi
call fcn.00d391b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x44d], 0xa
jne 0xd48b8b
push 0xa
push str.keep_alive
push 0xb
mov edx, str.Connection:
mov ecx, edi
call fcn.00d464c0
add esp, 0xc
test al, al
je 0xd48b8b
xor edx, edx
mov ecx, ebx
call fcn.00d2f9f0
push str.HTTP_1.0_connection_set_to_keep_alive
push esi
call fcn.00d391b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
push str.close
push 0xb
mov edx, str.Connection:
mov ecx, edi
call fcn.00d464c0
add esp, 0xc
test al, al
je 0xd48bbc
mov edx, 2
mov ecx, ebx
call fcn.00d2f9f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x146]
mov byte [ebp - 5], al
test al, al
jne 0xd48c66
push 0x12
mov edx, str.Transfer_Encoding:
mov ecx, edi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd48c2a
push 1
lea edx, [edi + 0x12]
mov ecx, esi
call fcn.00d3bdb0
add esp, 4
test eax, eax
jne 0xd48a2a
cmp byte [esi + 0x147], al
jne 0xd48a28
cmp byte [esi + 0x6c5], al
je 0xd48a28
lea edx, [eax + 1]
mov ecx, ebx
call fcn.00d2f9f0
mov byte [esi + 0x148], dl
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x11
mov edx, str.Content_Encoding:
mov ecx, edi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd48c66
cmp dword [esi + 0x510], 0
je 0xd48c66
push 0
lea edx, [edi + 0x11]
mov ecx, esi
call fcn.00d3bdb0
add esp, 4
test eax, eax
je 0xd48a28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xc
mov edx, str.Retry_After:
mov ecx, edi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd48ceb
lea ecx, [ebp - 0x14]
xorps xmm0, xmm0
lea eax, [edi + 0xc]
movlpd qword [ebp - 0x14], xmm0
push ecx
push 0xa
xor edx, edx
mov dword [ebp - 0xc], eax
mov ecx, eax
call fcn.00d4f6e0
mov edi, dword [ebp - 0x14]
add esp, 8
mov ebx, dword [ebp - 0x10]
mov eax, edi
or eax, ebx
jne 0xd48cd6
mov ecx, dword [ebp - 0xc]
call fcn.00d50030
mov ecx, eax
mov eax, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
cmp ecx, 0xffffffff
jne 0xd48cc2
cmp eax, ecx
je 0xd48cd6
push 0
call fcn.00d7fef3
mov edi, dword [ebp - 0xc]
add esp, 4
mov ebx, dword [ebp - 0x10]
sub edi, eax
sbb ebx, edx
mov dword [esi + 0xda8], edi
xor eax, eax
mov dword [esi + 0xdac], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 5], 0
jne 0xd48da9
push 0xe
mov edx, str.Content_Range:
mov ecx, edi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd48da9
mov cl, byte [edi + 0xe]
add edi, 0xe
test cl, cl
je 0xd48d3a
mov al, cl
nop word [eax + eax]
cmp al, 0x30
jl 0xd48d2a
mov cl, al
cmp al, 0x39
jle 0xd48d3a
mov cl, al
cmp al, 0x2a
je 0xd48d3a
mov cl, byte [edi + 1]
inc edi
mov al, cl
test cl, cl
jne 0xd48d20
sub cl, 0x30
cmp cl, 9
ja 0xd48d8c
lea ebx, [esi + 0xd8]
xor edx, edx
push ebx
push 0xa
mov ecx, edi
call fcn.00d4f6e0
add esp, 8
test eax, eax
jne 0xd48a28
mov eax, dword [esi + 0xc38]
cmp eax, dword [ebx]
jne 0xd48a28
mov eax, dword [esi + 0xc3c]
cmp eax, dword [ebx + 4]
jne 0xd48a28
mov byte [esi + 0x143], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc38], 0
xor eax, eax
mov dword [esi + 0xc3c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x6e8], 0
je 0xd48ec2
cmp byte [esi + 0xd55], 0
je 0xd48ec2
push 0xb
mov edx, str.Set_Cookie:
mov ecx, edi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd48ec2
mov ecx, dword [esi + 0xd28]
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0xd48def
mov ecx, dword [ebx + 0x4c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1e0]
test byte [eax + 0x44], 2
jne 0xd48e74
mov edx, ecx
mov ecx, str.localhost
call fcn.00d3bfc0
mov ebx, dword [ebp - 0xc]
test eax, eax
jne 0xd48e77
mov ecx, str.127.0.0.1
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0xd48e35
test dl, dl
je 0xd48e31
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0xd48e35
add eax, 2
add ecx, 2
test dl, dl
jne 0xd48e15
xor eax, eax
jmp 0xd48e3a
sbb eax, eax
or eax, 1
test eax, eax
je 0xd48e77
mov ecx, 0xdac21c
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0xd48e65
test dl, dl
je 0xd48e61
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0xd48e65
add eax, 2
add ecx, 2
test dl, dl
jne 0xd48e45
xor eax, eax
jmp 0xd48e6a
sbb eax, eax
or eax, 1
test eax, eax
je 0xd48e77
mov byte [ebp - 0xc], 0
jmp 0xd48e7b
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0xc], 1
push ecx
mov edx, 2
mov ecx, esi
call fcn.00d3ba30
mov edx, dword [esi + 0x6e8]
lea eax, [edi + 0xb]
add esp, 4
mov ecx, esi
push dword [ebp - 0xc]
push dword [esi + 0xc9c]
push ebx
push eax
push 0
push 1
call fcn.00d311b0
add esp, 0x18
mov edx, 2
mov ecx, esi
call fcn.00d3ba70
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 5], 0
jne 0xd48f25
push 0xe
mov edx, str.Last_Modified:
mov ecx, edi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd48f25
cmp byte [esi + 0x3c8], 0
jne 0xd48eef
cmp byte [esi + 0x6b6], 0
je 0xd48f25
lea ecx, [edi + 0xe]
call fcn.00d50030
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], edx
cmp byte [esi + 0x6b6], 0
je 0xd48a28
mov dword [esi + 0xd78], eax
xor eax, eax
mov dword [esi + 0xd7c], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x11
mov edx, str.WWW_Authenticate:
mov ecx, edi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd48f4a
mov eax, dword [esi + 0xe0]
mov dword [ebp - 0xc], eax
cmp eax, 0x191
je 0xd48f6f
push 0x13
mov edx, str.Proxy_authenticate:
mov ecx, edi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd48fb2
mov eax, dword [esi + 0xe0]
mov dword [ebp - 0xc], eax
cmp eax, 0x197
jne 0xd48fb2
mov ecx, edi
call fcn.00d453b0
mov edi, eax
test edi, edi
je 0xd490c6
cmp dword [ebp - 0xc], 0x197
mov ecx, esi
push edi
sete dl
call fcn.00d45de0
add esp, 4
mov esi, eax
push edi
call dword [0xddeddc]
add esp, 4
test esi, esi
je 0xd48a28
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
mov edx, str.Persistent_Auth:
mov ecx, edi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd4902b
cmp dword [esi + 0x958], 4
jne 0xd48a28
mov ecx, edi
call fcn.00d453b0
mov edi, eax
test edi, edi
je 0xd490c6
push 5
mov edx, str.false
mov ecx, edi
call fcn.00d3c050
add esp, 4
mov byte [ebx + 0x321], 1
test eax, eax
setne al
mov byte [ebx + 0x320], al
push edi
movzx eax, al
push eax
push str.Negotiate:_noauthpersist_____d__header_part:__s
push esi
call fcn.00d391b0
push edi
call dword [0xddeddc]
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xe0]
sub eax, 0x12c
cmp eax, 0x63
ja 0xd490d2
push 9
mov edx, str.Location:
mov ecx, edi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd490d2
cmp dword [esi + 0x114], 0
jne 0xd490d2
mov ecx, edi
call fcn.00d453b0
test eax, eax
je 0xd490c6
cmp byte [eax], 0
jne 0xd49080
push eax
call dword [0xddeddc]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x6c4], 0
mov dword [esi + 0x114], eax
je 0xd48a28
push eax
call dword [0xddede0]
add esp, 4
mov dword [esi + 0x118], eax
test eax, eax
je 0xd490c6
mov edx, ebx
mov ecx, esi
call fcn.00d45690
test eax, eax
jne 0xd48a2a
mov byte [esi + 0xd49], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x6ec], 0
je 0xd49130
push 0x1a
mov edx, str.Strict_Transport_Security:
mov ecx, edi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd49130
mov eax, dword [ebx + 0x1e0]
test byte [eax + 0x4c], 1
je 0xd49130
mov edx, dword [ebx + 0x4c]
lea eax, [edi + 0x1a]
mov ecx, dword [esi + 0x6ec]
push eax
call fcn.00d38630
add esp, 4
test eax, eax
je 0xd48a28
push str.Illegal_STS_header_skipped
push esi
call fcn.00d391b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x6f0], 0
je 0xd491af
push 8
mov edx, str.Alt_Svc:
mov ecx, edi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd491af
mov eax, dword [ebx + 0x1e0]
test byte [eax + 0x4c], 1
je 0xd491af
mov al, byte [ebx + 0x44d]
cmp al, 0x1e
jne 0xd4916b
mov edx, 0x20
jmp 0xd49179
xor edx, edx
cmp al, 0x14
sete dl
lea edx, [edx*8 + 8]
mov ecx, dword [ebx + 0x43c]
call fcn.00d2f4b0
movzx eax, ax
mov ecx, esi
push eax
push dword [ebx + 0x4c]
lea eax, [edi + 8]
push edx
mov edx, dword [esi + 0x6f0]
push eax
call fcn.00d33b80
add esp, 0x10
test eax, eax
je 0xd48a28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x1e0]
test dword [eax + 0x44], 0x40000
je 0xd48a28
mov edx, edi
mov ecx, esi
call fcn.00d56db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret