Function at 0x497080
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x140], 0
jne 0x49716b
cmp byte [esi + 0x717], 0
jne 0x49716b
push 0xf
mov edx, edi
mov ecx, str.Content_Length:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x49716b
lea eax, [ebp - 0x10]
xor edx, edx
push eax
push 0xa
lea ecx, [edi + 0xf]
call fcn.00499950
add esp, 8
test eax, eax
jne 0x497101
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
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 0x497151
mov eax, dword [esi + 0x500]
or eax, dword [esi + 0x504]
je 0x49712e
push str.Maximum_file_size_exceeded
push esi
call fcn.00479fc0
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.0047c3f0
push str.Overflow_Content_Length:_value_
push esi
call fcn.00479f40
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.00479fc0
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xd
mov edx, edi
mov ecx, str.Content_Type:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x4971c7
mov ecx, edi
call fcn.00493b50
mov edi, eax
test edi, edi
je 0x4977dc
cmp byte [edi], 0
jne 0x4971a9
push edi
call dword [0x5449e8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0xd44]
call dword [0x5449e8]
add esp, 4
mov dword [esi + 0xd44], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x114], 0xa
jne 0x497211
cmp byte [ebx + 0x258], 0
je 0x497211
push str.keep_alive
mov edx, str.Proxy_Connection:
mov ecx, edi
call fcn.00494c60
add esp, 4
test al, al
je 0x497211
xor edx, edx
mov ecx, ebx
call fcn.0047c3f0
push str.HTTP_1.0_proxy_connection_set_to_keep_alive_
push esi
call fcn.00479f40
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x114], 0xb
jne 0x49725e
cmp byte [ebx + 0x258], 0
je 0x49725e
push str.close
mov edx, str.Proxy_Connection:
mov ecx, edi
call fcn.00494c60
add esp, 4
test al, al
je 0x49725e
mov edx, 1
mov ecx, ebx
call fcn.0047c3f0
push str.HTTP_1.1_proxy_connection_set_close_
push esi
call fcn.00479f40
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x114], 0xa
jne 0x49729f
push str.keep_alive
mov edx, str.Connection:
mov ecx, edi
call fcn.00494c60
add esp, 4
test al, al
je 0x49729f
xor edx, edx
mov ecx, ebx
call fcn.0047c3f0
push str.HTTP_1.0_connection_set_to_keep_alive_
push esi
call fcn.00479f40
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.close
mov edx, str.Connection:
mov ecx, edi
call fcn.00494c60
add esp, 4
test al, al
je 0x4972cc
mov edx, 2
mov ecx, ebx
call fcn.0047c3f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x140]
mov byte [ebp - 1], al
test al, al
jne 0x49736b
push 0x12
mov edx, edi
mov ecx, str.Transfer_Encoding:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x49732f
push 1
lea edx, [edi + 0x12]
mov ecx, esi
call fcn.004a2660
add esp, 4
test eax, eax
jne 0x49714a
cmp byte [esi + 0x141], al
jne 0x497148
lea edx, [eax + 1]
mov ecx, ebx
call fcn.0047c3f0
mov byte [esi + 0x142], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x11
mov edx, edi
mov ecx, str.Content_Encoding:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x49736b
cmp dword [esi + 0x54c], 0
je 0x49736b
push 0
lea edx, [edi + 0x11]
mov ecx, esi
call fcn.004a2660
add esp, 4
test eax, eax
je 0x497148
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xc
mov edx, edi
mov ecx, str.Retry_After:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x4973f9
lea eax, [edi + 0xc]
mov dword [ebp - 0x10], 0
mov ecx, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], eax
call fcn.0049a250
mov ebx, eax
mov edi, edx
cmp ebx, 0xffffffff
jne 0x4973d6
cmp edi, eax
jne 0x4973d6
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push 0xa
xor edx, edx
call fcn.00499950
mov edi, dword [ebp - 0xc]
add esp, 8
mov ebx, dword [ebp - 0x10]
xor eax, eax
mov dword [esi + 0xd50], ebx
mov dword [esi + 0xd54], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call fcn.004fa35a
add esp, 4
sub ebx, eax
mov dword [esi + 0xd50], ebx
sbb edi, edx
xor eax, eax
mov dword [esi + 0xd54], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 1], 0
jne 0x4974c0
push 0xe
mov edx, edi
mov ecx, str.Content_Range:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x4974c0
mov dl, byte [edi + 0xe]
add edi, 0xe
test dl, dl
je 0x49744d
mov bl, dl
jmp 0x497430
movzx ecx, bl
mov dl, bl
call fcn.0049ada0
test eax, eax
jne 0x49744d
cmp bl, 0x2a
je 0x49744d
mov dl, byte [edi + 1]
inc edi
mov bl, dl
test dl, dl
jne 0x497430
movzx ecx, dl
call fcn.0049ada0
test eax, eax
je 0x4974a3
lea ebx, [esi + 0xe8]
xor edx, edx
push ebx
push 0xa
mov ecx, edi
call fcn.00499950
add esp, 8
test eax, eax
jne 0x497148
mov eax, dword [esi + 0xc38]
cmp eax, dword [ebx]
jne 0x497148
mov eax, dword [esi + 0xc3c]
cmp eax, dword [ebx + 4]
jne 0x497148
mov byte [esi + 0x13d], 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 + 0x738], 0
je 0x4975dd
cmp byte [esi + 0xd03], 0
je 0x4975dd
push 0xb
mov edx, edi
mov ecx, str.Set_Cookie:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x4975dd
mov ecx, dword [esi + 0xcd8]
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x497506
mov ecx, dword [ebx + 0x64]
mov dword [ebp - 8], ecx
mov eax, dword [ebx + 0x2a0]
test byte [eax + 0x44], 2
jne 0x49758f
mov edx, ecx
mov ecx, str.localhost
call fcn.0048a8f0
mov ebx, dword [ebp - 8]
test eax, eax
jne 0x497592
mov ecx, str.127.0.0.1
mov eax, ebx
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x497550
test dl, dl
je 0x49754c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x497550
add eax, 2
add ecx, 2
test dl, dl
jne 0x497530
xor eax, eax
jmp 0x497555
sbb eax, eax
or eax, 1
test eax, eax
je 0x497592
mov ecx, str._::1_
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x497580
test dl, dl
je 0x49757c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x497580
add eax, 2
add ecx, 2
test dl, dl
jne 0x497560
xor eax, eax
jmp 0x497585
sbb eax, eax
or eax, 1
test eax, eax
je 0x497592
mov byte [ebp - 8], 0
jmp 0x497596
mov ebx, dword [ebp - 8]
mov byte [ebp - 8], 1
push ecx
mov edx, 2
mov ecx, esi
call fcn.0048d380
mov edx, dword [esi + 0x738]
lea eax, [edi + 0xb]
add esp, 4
mov ecx, esi
push dword [ebp - 8]
push dword [esi + 0xc88]
push ebx
push eax
push 0
push 1
call fcn.0047ca70
add esp, 0x18
mov edx, 2
mov ecx, esi
call fcn.0048d3c0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 1], 0
jne 0x497642
push 0xe
mov edx, edi
mov ecx, str.Last_Modified:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x497642
cmp dword [esi + 0x3ec], 0
jne 0x49760a
cmp byte [esi + 0x701], 0
je 0x497642
lea ecx, [edi + 0xe]
call fcn.0049a250
mov dword [esi + 0x118], eax
mov dword [esi + 0x11c], edx
cmp byte [esi + 0x701], 0
je 0x497148
mov ecx, edx
mov dword [esi + 0xd20], eax
mov dword [esi + 0xd24], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x11
mov edx, edi
mov ecx, str.WWW_Authenticate:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x497667
mov eax, dword [esi + 0xf0]
mov dword [ebp - 8], eax
cmp eax, 0x191
je 0x49768c
push 0x13
mov edx, edi
mov ecx, str.Proxy_authenticate:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x4976cf
mov eax, dword [esi + 0xf0]
mov dword [ebp - 8], eax
cmp eax, 0x197
jne 0x4976cf
mov ecx, edi
call fcn.00493b50
mov edi, eax
test edi, edi
je 0x4977dc
cmp dword [ebp - 8], 0x197
mov ecx, esi
push edi
sete dl
call fcn.00494590
add esp, 4
mov esi, eax
push edi
call dword [0x5449e8]
add esp, 4
test esi, esi
je 0x497148
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
mov edx, edi
mov ecx, str.Persistent_Auth:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x497748
cmp dword [esi + 0x99c], 4
jne 0x497148
mov ecx, edi
call fcn.00493b50
mov edi, eax
test edi, edi
je 0x4977dc
push 5
mov edx, edi
mov ecx, str.false
call fcn.0048aa40
add esp, 4
mov byte [ebx + 0x3e1], 1
test eax, eax
setne al
mov byte [ebx + 0x3e0], al
push edi
movzx eax, al
push eax
push str.Negotiate:_noauthpersist_____d__header_part:__s
push esi
call fcn.00479f40
push edi
call dword [0x5449e8]
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xf0]
sub eax, 0x12c
cmp eax, 0x63
ja 0x4977e8
push 9
mov edx, edi
mov ecx, str.Location:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x4977e8
cmp dword [esi + 0x124], 0
jne 0x4977e8
mov ecx, edi
call fcn.00493b50
test eax, eax
je 0x4977dc
cmp byte [eax], 0
jne 0x49779d
push eax
call dword [0x5449e8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x709], 0
mov dword [esi + 0x124], eax
je 0x497148
push eax
call dword [0x5449ec]
add esp, 4
mov dword [esi + 0x128], eax
test eax, eax
je 0x4977dc
mov edx, ebx
mov ecx, esi
call fcn.00493e30
test eax, eax
je 0x497148
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 + 0x73c], 0
je 0x497849
push 0x1a
mov edx, edi
mov ecx, str.Strict_Transport_Security:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x497849
mov eax, dword [ebx + 0x2a0]
test byte [eax + 0x4c], 1
je 0x497849
mov edx, dword [esi + 0xc74]
lea eax, [edi + 0x1a]
mov ecx, dword [esi + 0x73c]
push eax
call fcn.00483000
add esp, 4
test eax, eax
je 0x497148
push str.Illegal_STS_header_skipped
push esi
call fcn.00479f40
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x740], 0
je 0x4978bc
push 8
mov edx, edi
mov ecx, str.Alt_Svc:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x4978bc
mov eax, dword [ebx + 0x2a0]
test byte [eax + 0x4c], 1
je 0x4978bc
mov ecx, dword [ebx + 0xc8]
xor edx, edx
cmp byte [ebx + 0x114], 0x14
sete dl
lea edx, [edx*8 + 8]
call fcn.0047a750
movzx eax, ax
mov ecx, esi
push eax
push dword [ebx + 0x64]
lea eax, [edi + 8]
push edx
mov edx, dword [esi + 0x740]
push eax
call fcn.004897f0
add esp, 0x10
test eax, eax
je 0x497148
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x2a0]
test dword [eax + 0x44], 0x40000
je 0x497148
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret