Function at 0x512170
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 + 0x24]
cmp byte [esi + 0x141], 0
jne 0x512260
cmp byte [esi + 0x6ff], 0
jne 0x512260
push 0xf
push str.Content_Length:
push edi
call fcn.004e9d10
add esp, 0xc
test eax, eax
je 0x512260
lea eax, [esp + 0x10]
push eax
push 0xa
lea eax, [edi + 0xf]
push 0
push eax
call fcn.00505270
add esp, 0x10
test eax, eax
jne 0x5121f4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [esi + 0x84], eax
mov dword [esi + 0x8c], eax
xor eax, eax
mov dword [esi + 0x80], ecx
mov dword [esi + 0x88], ecx
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 1
jne 0x512245
mov eax, dword [esi + 0x4e0]
or eax, dword [esi + 0x4e4]
je 0x512222
push str.Maximum_file_size_exceeded
push esi
call fcn.004f8a30
add esp, 8
mov eax, 0x3f
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 2
push dword [esp + 0x24]
call fcn.004f95f0
push str.Overflow_Content_Length:_value
push esi
call fcn.004f8b00
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.004f8a30
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0xd
push str.Content_Type:
push edi
call fcn.004e9d10
add esp, 0xc
test eax, eax
je 0x5122bf
push edi
call fcn.00511110
mov edi, eax
add esp, 4
test edi, edi
je 0x5128c5
cmp byte [edi], 0
jne 0x5122a0
push edi
call dword [0x6f1ba8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push dword [esi + 0xd6c]
call dword [0x6f1ba8]
add esp, 4
mov dword [esi + 0xd6c], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebp, dword [esp + 0x20]
cmp byte [ebp + 0x118], 0xa
jne 0x512310
cmp byte [ebp + 0x260], 0
je 0x512310
push 0xa
push str.keep_alive
push 0x11
push str.Proxy_Connection:
push edi
call fcn.00511060
add esp, 0x14
test al, al
je 0x512310
push 0
push ebp
call fcn.004f95f0
push str.HTTP_1.0_proxy_connection_set_to_keep_alive
push esi
call fcn.004f8b00
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [ebp + 0x118], 0xb
jne 0x51235d
cmp byte [ebp + 0x260], 0
je 0x51235d
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push edi
call fcn.00511060
add esp, 0x14
test al, al
je 0x51235d
push 1
push ebp
call fcn.004f95f0
push str.HTTP_1.1_proxy_connection_set_close
push esi
call fcn.004f8b00
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [ebp + 0x118], 0xa
jne 0x5123a1
push 0xa
push str.keep_alive
push 0xb
push str.Connection:
push edi
call fcn.00511060
add esp, 0x14
test al, al
je 0x5123a1
push 0
push ebp
call fcn.004f95f0
push str.HTTP_1.0_connection_set_to_keep_alive
push esi
call fcn.004f8b00
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 5
push str.close
push 0xb
push str.Connection:
push edi
call fcn.00511060
add esp, 0x14
test al, al
je 0x5123d1
push 2
push ebp
call fcn.004f95f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [esi + 0x141], 0
jne 0x51246e
push 0x12
push str.Transfer_Encoding:
push edi
call fcn.004e9d10
add esp, 0xc
test eax, eax
je 0x512429
push 1
lea eax, [edi + 0x12]
push eax
push esi
call fcn.004f1080
add esp, 0xc
test eax, eax
jne 0x5123c9
cmp byte [esi + 0x142], al
jne 0x5123c7
push 1
push ebp
call fcn.004f95f0
add esp, 8
mov byte [esi + 0x143], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [esi + 0x141], 0
jne 0x51246e
push 0x11
push str.Content_Encoding:
push edi
call fcn.004e9d10
add esp, 0xc
test eax, eax
je 0x51246e
cmp dword [esi + 0x53c], 0
je 0x51246e
push 0
lea eax, [edi + 0x11]
push eax
push esi
call fcn.004f1080
add esp, 0xc
test eax, eax
je 0x5123c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0xc
push str.Retry_After:
push edi
call fcn.004e9d10
add esp, 0xc
test eax, eax
je 0x5124f8
xorps xmm0, xmm0
lea ebp, [edi + 0xc]
push ebp
movlpd qword [esp + 0x14], xmm0
call fcn.005053d0
mov ebx, eax
add esp, 4
mov edi, edx
cmp ebx, 0xffffffff
jne 0x5124d4
cmp edi, eax
jne 0x5124d4
lea eax, [esp + 0x10]
push eax
push 0xa
push 0
push ebp
call fcn.00505270
mov edi, dword [esp + 0x24]
add esp, 0x10
mov ebx, dword [esp + 0x10]
xor eax, eax
mov dword [esi + 0xd7c], edi
mov dword [esi + 0xd78], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0
call fcn.004cb7b9
add esp, 4
sub ebx, eax
mov dword [esi + 0xd78], ebx
sbb edi, edx
xor eax, eax
mov dword [esi + 0xd7c], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [esi + 0x141], 0
jne 0x5125bc
push 0xe
push str.Content_Range:
push edi
call fcn.004e9d10
add esp, 0xc
test eax, eax
je 0x5125bc
mov al, byte [edi + 0xe]
add edi, 0xe
test al, al
je 0x512544
movzx eax, al
push eax
call fcn.004fb980
add esp, 4
test eax, eax
jne 0x512544
cmp byte [edi], 0x2a
je 0x512544
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x512527
movzx eax, byte [edi]
push eax
call fcn.004fb980
add esp, 4
test eax, eax
je 0x51259e
lea ebx, [esi + 0xe8]
push ebx
push 0xa
push 0
push edi
call fcn.00505270
add esp, 0x10
test eax, eax
jne 0x5123c7
mov eax, dword [esi + 0xc20]
cmp eax, dword [ebx]
jne 0x5123c7
mov eax, dword [esi + 0xc24]
cmp eax, dword [ebx + 4]
jne 0x5123c7
pop edi
mov byte [esi + 0x13e], 1
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
mov dword [esi + 0xc20], 0
xor eax, eax
mov dword [esi + 0xc24], 0
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0x718], 0
je 0x5126c1
cmp byte [esi + 0xd0a], 0
je 0x5126c1
push 0xb
push str.Set_Cookie:
push edi
call fcn.004e9d10
add esp, 0xc
test eax, eax
je 0x5126c1
mov ebx, dword [esi + 0xce0]
test ebx, ebx
jne 0x5125fb
mov ebx, dword [ebp + 0x64]
mov eax, dword [ebp + 0x2a8]
test byte [eax + 0x44], 2
jne 0x51267e
push ebx
push str.localhost
call fcn.004e9bc0
add esp, 8
test eax, eax
jne 0x51267e
mov ecx, str.127.0.0.1
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x512640
test dl, dl
je 0x51263c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x512640
add eax, 2
add ecx, 2
test dl, dl
jne 0x512620
xor eax, eax
jmp 0x512645
sbb eax, eax
or eax, 1
test eax, eax
je 0x51267e
mov ecx, str._::1_
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x512670
test dl, dl
je 0x51266c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x512670
add eax, 2
add ecx, 2
test dl, dl
jne 0x512650
xor eax, eax
jmp 0x512675
sbb eax, eax
or eax, 1
mov byte [esp + 0x1c], 0
test eax, eax
jne 0x512683
mov byte [esp + 0x1c], 1
push 2
push 2
push esi
call fcn.004f1750
push dword [esp + 0x28]
lea eax, [edi + 0xb]
push dword [esi + 0xc64]
push ebx
push eax
push 0
push 1
push dword [esi + 0x718]
push esi
call fcn.004e9d80
push 2
push esi
call fcn.004f1790
add esp, 0x34
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [esi + 0x141], 0
jne 0x51272d
push 0xe
push str.Last_Modified:
push edi
call fcn.004e9d10
add esp, 0xc
test eax, eax
je 0x51272d
cmp dword [esi + 0x3d4], 0
jne 0x5126f0
cmp byte [esi + 0x6e3], 0
je 0x51272d
lea eax, [edi + 0xe]
push eax
call fcn.005053d0
add esp, 4
mov dword [esi + 0x118], eax
mov dword [esi + 0x11c], edx
cmp byte [esi + 0x6e3], 0
je 0x5123c7
pop edi
mov ecx, edx
mov dword [esi + 0xd48], eax
mov dword [esi + 0xd4c], ecx
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x11
push str.WWW_Authenticate:
push edi
call fcn.004e9d10
add esp, 0xc
test eax, eax
je 0x51274f
mov ebx, dword [esi + 0xf0]
cmp ebx, 0x191
je 0x512771
push 0x13
push str.Proxy_authenticate:
push edi
call fcn.004e9d10
add esp, 0xc
test eax, eax
je 0x5127b6
mov ebx, dword [esi + 0xf0]
cmp ebx, 0x197
jne 0x5127b6
push edi
call fcn.00511110
mov edi, eax
add esp, 4
test edi, edi
je 0x5128c5
cmp ebx, 0x197
push edi
sete cl
movzx ecx, cl
push ecx
push esi
call fcn.00512c10
push edi
mov esi, eax
call dword [0x6f1ba8]
add esp, 0x10
test esi, esi
je 0x5123c7
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x10
push str.Persistent_Auth:
push edi
call fcn.004e9d10
add esp, 0xc
test eax, eax
je 0x51282d
cmp dword [esi + 0x984], 4
jne 0x5123c7
push edi
call fcn.00511110
mov edi, eax
add esp, 4
test edi, edi
je 0x5128c5
push 5
push str.false
push edi
call fcn.004e9d10
test eax, eax
mov byte [ebp + 0x3e9], 1
push edi
setne al
mov byte [ebp + 0x3e8], al
movzx eax, al
push eax
push str.Negotiate:_noauthpersist_____d__header_part:__s
push esi
call fcn.004f8b00
push edi
call dword [0x6f1ba8]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0xf0]
sub eax, 0x12c
cmp eax, 0x63
ja 0x5128d2
push 9
push str.Location:
push edi
call fcn.004e9d10
add esp, 0xc
test eax, eax
je 0x5128d2
cmp dword [esi + 0x124], 0
jne 0x5128d2
push edi
call fcn.00511110
add esp, 4
test eax, eax
je 0x5128c5
cmp byte [eax], 0
jne 0x512884
push eax
call dword [0x6f1ba8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [esi + 0x6f1], 0
mov dword [esi + 0x124], eax
je 0x5123c7
push eax
call dword [0x6f1bb0]
add esp, 4
mov dword [esi + 0x128], eax
test eax, eax
je 0x5128c5
push ebp
push esi
call fcn.005143e0
add esp, 8
test eax, eax
je 0x5123c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 8
ret
cmp dword [esi + 0x71c], 0
je 0x512933
push 0x1a
push str.Strict_Transport_Security:
push edi
call fcn.004e9d10
add esp, 0xc
test eax, eax
je 0x512933
mov eax, dword [ebp + 0x2a8]
test byte [eax + 0x4c], 1
je 0x512933
lea eax, [edi + 0x1a]
push eax
push dword [esi + 0xc50]
push dword [esi + 0x71c]
call fcn.004f2ab0
add esp, 0xc
test eax, eax
je 0x5123c7
push str.Illegal_STS_header_skipped
push esi
call fcn.004f8b00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0x720], 0
je 0x5129a5
push 8
push str.Alt_Svc:
push edi
call fcn.004e9d10
add esp, 0xc
test eax, eax
je 0x5129a5
mov eax, dword [ebp + 0x2a8]
test byte [eax + 0x4c], 1
je 0x5129a5
push dword [ebp + 0xc8]
xor ebx, ebx
cmp byte [ebp + 0x118], 0x14
sete bl
lea ebx, [ebx*8 + 8]
call fcn.004f1800
movzx eax, ax
push eax
push dword [ebp + 0x64]
lea eax, [edi + 8]
push ebx
push eax
push dword [esi + 0x720]
push esi
call fcn.004f1a20
add esp, 0x1c
test eax, eax
je 0x5123c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [ebp + 0x2a8]
test dword [eax + 0x44], 0x40000
je 0x5123c7
push edi
push esi
call fcn.005157e0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret