Function at 0x517be0
Capabilities:
Check http status code

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
mov ebx, dword [esi + 0x18]
movsx eax, byte [edi]
add eax, 0xffffffbf
cmp eax, 0x36
ja case.0x517c08.66
movzx eax, byte [eax + 0x51865c]
jmp dword [eax*4 + 0x518638]
cmp dword [esi + 0x6b0], 0
je case.0x517c08.66
mov eax, dword [ebx + 0x260]
test byte [eax + 0x50], 1
je case.0x517c08.66
cmp dword [esp + 0x24], 8
jb case.0x517c08.66
push 8
push edi
push str.Alt_Svc:
call fcn.004f3970
add esp, 0xc
test eax, eax
je case.0x517c08.66
lea ebp, [edi + 8]
test ebp, ebp
je case.0x517c08.66
mov cl, byte [ebx + 0x4d4]
cmp cl, 0x1e
jne 0x517c6c
mov edi, 0x20
jmp 0x517c81
xor eax, eax
cmp cl, 0x14
sete al
lea eax, [eax*8 + 8]
mov dword [esp + 0x1c], eax
mov edi, eax
push dword [ebx + 0x4c0]
call fcn.004f5170
movzx eax, ax
push eax
push dword [ebx + 0x30]
push edi
push ebp
push dword [esi + 0x6b0]
push esi
call fcn.00507be0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [esi + 0x137], 0
mov ebp, dword [esp + 0x24]
jne 0x517de5
cmp byte [esi + 0x68f], 0
jne 0x517d9f
cmp ebp, 0xf
jb 0x517d9f
push 0xf
push edi
push str.Content_Length:
call fcn.004f3970
add esp, 0xc
test eax, eax
je 0x517d9f
lea eax, [edi + 0xf]
test eax, eax
je 0x517d9f
lea ecx, [esp + 0x10]
push ecx
push 0xa
push 0
push eax
call fcn.0051d420
add esp, 0x10
test eax, eax
jne 0x517d36
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [esi + 0x8c], eax
mov dword [esi + 0x94], eax
xor eax, eax
mov dword [esi + 0x88], ecx
mov dword [esi + 0x90], ecx
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 1
jne 0x517d84
mov eax, dword [esi + 0x4b0]
or eax, dword [esi + 0x4b4]
je 0x517d64
push str.Maximum_file_size_exceeded
push esi
call fcn.004f54f0
add esp, 8
mov eax, 0x3f
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 2
push ebx
call fcn.005065f0
push str.Overflow_Content_Length:_value
push esi
call fcn.004f55c0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push str.Invalid_Content_Length:_value
push esi
call fcn.004f54f0
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [esi + 0x137], 0
jne 0x517de5
cmp dword [esi + 0x550], 0
je 0x517de5
cmp ebp, 0x11
jb 0x517de5
push 0x11
push edi
push str.Content_Encoding:
call fcn.004f3970
add esp, 0xc
test eax, eax
je 0x517dea
lea eax, [edi + 0x11]
test eax, eax
je 0x517dea
push 0
push eax
push esi
call fcn.00509670
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ebp, 0xd
jb 0x517e50
push 0xd
push edi
push 0x54f4b8
call fcn.004f3970
add esp, 0xc
test eax, eax
je 0x517e50
lea eax, [edi + 0xd]
test eax, eax
je 0x517e55
push edi
call fcn.005173c0
mov edi, eax
add esp, 4
test edi, edi
je 0x518609
cmp byte [edi], 0
jne 0x517e31
push edi
call dword [0x570004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push dword [esi + 0xd34]
call dword [0x570004]
add esp, 4
mov dword [esi + 0xd34], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ebp, 0xb
jb 0x517e9e
push 0xb
push edi
push str.Connection:
call fcn.004f3970
add esp, 0xc
test eax, eax
je 0x517e9e
cmp ebp, 0x10
jbe 0x517e9e
push 5
push str.close
push 0xb
push str.Connection:
push edi
call fcn.00517310
add esp, 0x14
test al, al
je 0x517e9e
push 2
push ebx
call fcn.005065f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [ebx + 0x4d4], 0xa
jne 0x517f00
cmp ebp, 0xb
jb 0x517f00
push 0xb
push edi
push str.Connection:
call fcn.004f3970
add esp, 0xc
test eax, eax
je 0x517f00
cmp ebp, 0x15
jbe 0x517f00
push 0xa
push str.keep_alive
push 0xb
push str.Connection:
push edi
call fcn.00517310
add esp, 0x14
test al, al
je 0x517f00
push 0
push ebx
call fcn.005065f0
push str.HTTP_1.0_connection_set_to_keep_alive
push esi
call fcn.004f55c0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [esi + 0x137], 0
jne case.0x517c08.66
cmp ebp, 0xe
jb case.0x517c08.66
push 0xe
push edi
push str.Content_Range:
call fcn.004f3970
add esp, 0xc
test eax, eax
je case.0x517c08.66
lea edx, [edi + 0xe]
test edx, edx
je case.0x517c08.66
mov cl, byte [edx]
test cl, cl
je 0x517f4b
mov al, cl
cmp al, 0x30
jl 0x517f3b
mov cl, al
cmp al, 0x39
jle 0x517f4b
mov cl, al
cmp al, 0x2a
je 0x517f4b
mov cl, byte [edx + 1]
inc edx
mov al, cl
test cl, cl
jne 0x517f31
sub cl, 0x30
cmp cl, 9
ja 0x517faf
lea ebp, [esi + 0xc8]
push ebp
push 0xa
push 0
push edx
call fcn.0051d420
add esp, 0x10
test eax, eax
jne case.0x517c08.66
mov eax, dword [esi + 0xbc8]
cmp eax, dword [ebp]
jne case.0x517c08.66
mov eax, dword [esi + 0xbcc]
cmp eax, dword [ebp + 4]
jne case.0x517c08.66
mov byte [esi + 0x12f], 1
mov eax, dword [ebx + 0x260]
test dword [eax + 0x48], 0x40000
je 0x517fa5
push edi
push esi
call fcn.00531ae0
add esp, 8
test eax, eax
jne 0x517fa7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0xd4], 0x12c
jge case.0x517c08.66
mov dword [esi + 0xbc8], 0
mov dword [esi + 0xbcc], 0
jmp case.0x517c08.66
cmp byte [esi + 0x137], 0
mov ebp, dword [esp + 0x24]
jne 0x51804a
cmp byte [esi + 0x3b0], 0
jne 0x517ff0
cmp byte [esi + 0x675], 0
je 0x51804a
cmp ebp, 0xe
jb 0x51804a
push 0xe
push edi
push str.Last_Modified:
call fcn.004f3970
add esp, 0xc
test eax, eax
je 0x51804a
lea eax, [edi + 0xe]
test eax, eax
je 0x51804a
push eax
call fcn.0051d5f0
add esp, 4
mov dword [esi + 0x110], eax
mov dword [esi + 0x114], edx
cmp byte [esi + 0x675], 0
je 0x517fa5
pop edi
mov ecx, edx
mov dword [esi + 0xd18], eax
mov dword [esi + 0xd1c], ecx
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0xd4]
sub eax, 0x12c
cmp eax, 0x63
ja case.0x517c08.66
cmp ebp, 9
jb case.0x517c08.66
push 9
push edi
push str.Location:
call fcn.004f3970
add esp, 0xc
test eax, eax
je case.0x517c08.66
cmp dword [esi + 0x11c], 0
jne case.0x517c08.66
push edi
call fcn.005173c0
add esp, 4
test eax, eax
je 0x518609
cmp byte [eax], 0
jne 0x5180b1
push eax
call dword [0x570004]
add esp, 4
jmp case.0x517c08.66
cmp byte [esi + 0x683], 0
mov dword [esi + 0x11c], eax
je case.0x517c08.66
push eax
call dword [0x57000c]
add esp, 4
mov dword [esi + 0x120], eax
test eax, eax
je 0x518609
push ebx
push esi
call fcn.00519e70
add esp, 8
test eax, eax
jne 0x517fa7
mov byte [esi + 0xce9], 1
jmp case.0x517c08.66
mov ebp, dword [esp + 0x24]
cmp ebp, 0x11
jb 0x51820a
push 0x11
push edi
push str.Proxy_Connection:
call fcn.004f3970
add esp, 0xc
test eax, eax
je 0x51820a
lea eax, [edi + 0x11]
test eax, eax
je 0x51820a
cmp byte [ebx + 0x4d4], 0xa
jne 0x518190
cmp byte [ebx + 0x240], 0
je 0x518190
push 0x11
push edi
push str.Proxy_Connection:
call fcn.004f3970
add esp, 0xc
test eax, eax
je 0x518190
cmp ebp, 0x1b
jbe 0x518190
push 0xa
push str.keep_alive
push 0x11
push str.Proxy_Connection:
push edi
call fcn.00517310
add esp, 0x14
test al, al
je 0x518190
push 0
push ebx
call fcn.005065f0
push str.HTTP_1.0_proxy_connection_set_to_keep_alive
push esi
call fcn.004f55c0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [ebx + 0x4d4], 0xb
jne 0x517fa5
cmp byte [ebx + 0x240], 0
je 0x517fa5
push 0x11
push edi
push str.Proxy_Connection:
call fcn.004f3970
add esp, 0xc
test eax, eax
je 0x517fa5
cmp ebp, 0x16
jbe 0x517fa5
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push edi
call fcn.00517310
add esp, 0x14
test al, al
je 0x517fa5
push 1
push ebx
call fcn.005065f0
push str.HTTP_1.1_proxy_connection_set_close
push esi
call fcn.004f55c0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0xd4], 0x197
jne 0x518261
cmp ebp, 0x13
jb 0x518261
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.004f3970
add esp, 0xc
test eax, eax
je 0x51826a
push edi
call fcn.005173c0
mov edi, eax
add esp, 4
test edi, edi
je 0x518609
push edi
push 1
push esi
call fcn.00518890
push edi
mov esi, eax
call dword [0x570004]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ebp, 0x10
jb case.0x517c08.66
push 0x10
push edi
push str.Persistent_Auth:
call fcn.004f3970
add esp, 0xc
test eax, eax
je case.0x517c08.66
cmp dword [esi + 0x8e8], 4
jne case.0x517c08.66
push edi
call fcn.005173c0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x518609
push 5
push str.false
push ebp
call fcn.004f3970
test eax, eax
mov byte [ebx + 0x3a9], 1
push ebp
setne al
mov byte [ebx + 0x3a8], al
movzx eax, al
push eax
push str.Negotiate:_noauthpersist_____d__header_part:__s
push esi
call fcn.004f55c0
push ebp
call dword [0x570004]
add esp, 0x20
jmp case.0x517c08.66
cmp dword [esp + 0x24], 0xc
jb case.0x517c08.66
push 0xc
push edi
push str.Retry_After:
call fcn.004f3970
add esp, 0xc
test eax, eax
je case.0x517c08.66
lea ebp, [edi + 0xc]
test ebp, ebp
je case.0x517c08.66
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0xa
push 0
push ebp
movlpd qword [esp + 0x20], xmm0
call fcn.0051d420
mov ebx, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [esp + 0x14]
mov eax, ebx
or eax, edi
jne 0x51837a
push ebp
call fcn.0051d5f0
mov ebx, eax
add esp, 4
mov edi, edx
cmp ebx, 0xffffffff
jne 0x51836b
cmp edi, eax
jne 0x51836b
mov edi, dword [esp + 0x14]
xor eax, eax
mov ebx, dword [esp + 0x10]
mov dword [esi + 0xd44], edi
pop edi
mov dword [esi + 0xd40], ebx
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
sub ebx, eax
sbb edi, edx
mov dword [esi + 0xd44], edi
xor eax, eax
pop edi
mov dword [esi + 0xd40], ebx
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0x6a8], 0
mov ebp, dword [esp + 0x24]
je 0x5184b1
cmp byte [esi + 0xcf3], 0
je 0x5184b1
cmp ebp, 0xb
jb 0x5184b1
push 0xb
push edi
push str.Set_Cookie:
call fcn.004f3970
add esp, 0xc
test eax, eax
je 0x5184b1
lea eax, [edi + 0xb]
mov dword [esp + 0x20], eax
test eax, eax
je 0x5184b1
mov edi, dword [esi + 0xcc4]
test edi, edi
jne 0x5183eb
mov edi, dword [ebx + 0x30]
mov eax, dword [ebx + 0x260]
test byte [eax + 0x48], 2
jne 0x51846e
push edi
push str.localhost
call fcn.004f3910
add esp, 8
test eax, eax
jne 0x51846e
mov ecx, str.127.0.0.1
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x518430
test dl, dl
je 0x51842c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x518430
add eax, 2
add ecx, 2
test dl, dl
jne 0x518410
xor eax, eax
jmp 0x518435
sbb eax, eax
or eax, 1
test eax, eax
je 0x51846e
mov ecx, 0x54ef6c
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x518460
test dl, dl
je 0x51845c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x518460
add eax, 2
add ecx, 2
test dl, dl
jne 0x518440
xor eax, eax
jmp 0x518465
sbb eax, eax
or eax, 1
mov byte [esp + 0x1c], 0
test eax, eax
jne 0x518473
mov byte [esp + 0x1c], 1
push 2
push 2
push esi
call fcn.00509900
push dword [esp + 0x28]
push dword [esi + 0xc2c]
push edi
push dword [esp + 0x38]
push 0
push 1
push dword [esi + 0x6a8]
push esi
call fcn.004f96d0
push 2
push esi
call fcn.00509940
add esp, 0x34
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0x6ac], 0
je case.0x517c08.66
mov eax, dword [ebx + 0x260]
test byte [eax + 0x50], 1
je case.0x517c08.66
cmp ebp, 0x1a
jb case.0x517c08.66
push 0x1a
push edi
push str.Strict_Transport_Security:
call fcn.004f3970
add esp, 0xc
test eax, eax
je case.0x517c08.66
lea eax, [edi + 0x1a]
test eax, eax
je case.0x517c08.66
push eax
push dword [ebx + 0x30]
push dword [esi + 0x6ac]
call fcn.00508c50
add esp, 0xc
test eax, eax
je case.0x517c08.66
push str.Illegal_STS_header_skipped
push esi
call fcn.004f55c0
add esp, 8
jmp case.0x517c08.66
cmp byte [esi + 0x137], 0
jne case.0x517c08.66
cmp byte [esi + 0xce6], 5
je case.0x517c08.66
cmp dword [esi + 0xd4], 0x130
je case.0x517c08.66
cmp dword [esp + 0x24], 0x12
jb case.0x517c08.66
push 0x12
push edi
push str.Transfer_Encoding:
call fcn.004f3970
add esp, 0xc
test eax, eax
je case.0x517c08.66
lea eax, [edi + 0x12]
test eax, eax
je case.0x517c08.66
push 1
push eax
push esi
call fcn.00509670
add esp, 0xc
test eax, eax
jne 0x517fa7
cmp byte [esi + 0x138], al
jne 0x517fa5
cmp byte [esi + 0x684], al
je 0x517fa5
push 1
push ebx
call fcn.005065f0
add esp, 8
mov byte [esi + 0x139], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0xd4], 0x191
jne case.0x517c08.66
cmp dword [esp + 0x24], 0x11
jb case.0x517c08.66
push 0x11
push edi
push str.WWW_Authenticate:
call fcn.004f3970
add esp, 0xc
test eax, eax
je case.0x517c08.66
push edi
call fcn.005173c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x518616
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 8
ret
push edi
push 0
push esi
call fcn.00518890
push edi
mov esi, eax
call dword [0x570004]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret