Function at 0x101a5060
Capabilities:
Check http status code

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x154], 0
push edi
mov edi, dword [esp + 0x24]
jne 0x101a5178
cmp dword [esi + 0x7cc], 0
jne 0x101a5178
push 0xf
push edi
push str.Content_Length:
call fcn.10187520
add esp, 0xc
test eax, eax
je 0x101a5178
lea eax, [esp + 0x10]
push eax
push 0xa
push 0
add edi, 0xf
push edi
call fcn.101b00c0
add esp, 0x10
test eax, eax
jne 0x101a5126
mov ecx, dword [esi + 0x548]
mov eax, dword [esi + 0x54c]
mov edi, dword [esp + 0x10]
mov edx, ecx
or edx, eax
mov edx, dword [esp + 0x14]
je 0x101a50f9
cmp edx, eax
jl 0x101a50f9
jg 0x101a50de
cmp edi, ecx
jbe 0x101a50f9
push str.Maximum_file_size_exceeded
push esi
call fcn.1017f190
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x3f
pop ebx
add esp, 8
ret
push edx
push edi
push esi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edx
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edx
call fcn.1018fa10
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp eax, 1
jne 0x101a515d
mov eax, dword [esi + 0x548]
or eax, dword [esi + 0x54c]
jne 0x101a50de
mov ecx, dword [esp + 0x20]
push 2
push ecx
call fcn.10185bc0
push str.Overflow_Content_Length:_value__n
push esi
call fcn.1017f0b0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push str.Invalid_Content_Length:_value
push esi
call fcn.1017f190
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 8
ret
push 0xd
push edi
push str.Content_Type:
call fcn.10187520
add esp, 0xc
test eax, eax
je 0x101a51e1
push edi
call fcn.101a1f70
mov edi, eax
add esp, 4
test edi, edi
jne 0x101a51a8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 8
ret
cmp byte [edi], 0
jne 0x101a51c1
push edi
call dword [0x10263bb0]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [esi + 0xeb4]
push edx
call dword [0x10263bb0]
add esp, 4
mov dword [esi + 0xeb4], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov ebp, dword [esp + 0x20]
mov ebx, 0xa
cmp dword [ebp + 0x11c], ebx
jne 0x101a5232
cmp dword [ebp + 0x274], 0
je 0x101a5232
push str.keep_alive
push str.Proxy_Connection:
push edi
call fcn.101a2c20
add esp, 0xc
test eax, eax
je 0x101a5232
push 0
push ebp
call fcn.10185bc0
push str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
push esi
call fcn.1017f0b0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [ebp + 0x11c], 0xb
jne 0x101a527b
cmp dword [ebp + 0x274], 0
je 0x101a527b
push str.close
push str.Proxy_Connection:
push edi
call fcn.101a2c20
add esp, 0xc
test eax, eax
je 0x101a527b
push 1
push ebp
call fcn.10185bc0
push str.HTTP_1.1_proxy_connection_set_close__n
push esi
call fcn.1017f0b0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [ebp + 0x11c], ebx
jne 0x101a52ba
push str.keep_alive
push str.Connection:
push edi
call fcn.101a2c20
add esp, 0xc
test eax, eax
je 0x101a52ba
push 0
push ebp
call fcn.10185bc0
push str.HTTP_1.0_connection_set_to_keep_alive__n
push esi
call fcn.1017f0b0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push str.close
push str.Connection:
push edi
call fcn.101a2c20
add esp, 0xc
test eax, eax
je 0x101a52e6
push 2
push ebp
call fcn.10185bc0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x154], 0
jne 0x101a534f
push 0x12
push edi
push str.Transfer_Encoding:
call fcn.10187520
add esp, 0xc
test eax, eax
je 0x101a5322
push 1
add edi, 0x12
push edi
push esi
call fcn.10187810
add esp, 0xc
test eax, eax
je 0x101a5737
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0x154], 0
jne 0x101a534f
push 0x11
push edi
push str.Content_Encoding:
call fcn.10187520
add esp, 0xc
test eax, eax
je 0x101a534f
cmp dword [esi + 0x5a0], 0
je 0x101a534f
push 0
add edi, 0x11
jmp 0x101a5308
push 0xc
push edi
push str.Retry_After:
call fcn.10187520
add esp, 0xc
test eax, eax
je 0x101a53db
xor eax, eax
lea ebx, [edi + 0xc]
push ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.101afb40
mov edi, eax
add esp, 4
mov ebp, edx
cmp edi, 0xffffffff
jne 0x101a53b6
cmp ebp, eax
jne 0x101a53b6
lea eax, [esp + 0x10]
push eax
push 0xa
push 0
push ebx
call fcn.101b00c0
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
add esp, 0x10
mov dword [esi + 0xec0], edi
pop edi
mov dword [esi + 0xec4], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0
call dword [sym.imp.MSVCR100.dll__time64]
add esp, 4
sub edi, eax
sbb ebp, edx
mov dword [esi + 0xec0], edi
pop edi
mov dword [esi + 0xec4], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x154], 0
jne 0x101a54a0
push 0xe
push edi
push str.Content_Range:
call fcn.10187520
add esp, 0xc
test eax, eax
je 0x101a54a0
mov al, byte [edi + 0xe]
add edi, 0xe
test al, al
je 0x101a542d
lea ebx, [ebx]
movzx ecx, al
push ecx
call fcn.101a8cf0
add esp, 4
test eax, eax
jne 0x101a542d
cmp byte [edi], 0x2a
je 0x101a542d
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x101a5410
movzx edx, byte [edi]
push edx
call fcn.101a8cf0
add esp, 4
test eax, eax
je 0x101a548a
lea ebp, [esi + 0xf0]
push ebp
push ebx
push 0
push edi
call fcn.101b00c0
add esp, 0x10
test eax, eax
jne 0x101a5737
mov eax, dword [esi + 0xd78]
cmp eax, dword [ebp]
jne 0x101a5737
mov ecx, dword [esi + 0xd7c]
cmp ecx, dword [ebp + 4]
jne 0x101a5737
pop edi
mov dword [esi + 0x148], 1
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
xor eax, eax
pop edi
mov dword [esi + 0xd78], eax
mov dword [esi + 0xd7c], eax
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0x844], 0
je 0x101a5521
cmp dword [esi + 0xe50], 0
je 0x101a5521
push 0xb
push edi
push str.Set_Cookie:
call fcn.10187520
add esp, 0xc
test eax, eax
je 0x101a5521
push 2
push 2
push esi
call fcn.10187530
mov eax, dword [esi + 0xe08]
add esp, 0xc
test eax, eax
jne 0x101a54e0
mov eax, dword [ebp + 0x6c]
mov edx, dword [ebp + 0x328]
mov ecx, dword [edx + 0x40]
mov edx, dword [esi + 0xdc8]
shr ecx, 1
and ecx, 1
push ecx
push edx
push eax
mov eax, dword [esi + 0x844]
add edi, 0xb
push edi
push 0
push 1
push eax
push esi
call fcn.10182e10
push 2
push esi
call fcn.10187580
add esp, 0x28
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x154], 0
jne 0x101a5593
push 0xe
push edi
push str.Last_Modified:
call fcn.10187520
add esp, 0xc
test eax, eax
je 0x101a5593
cmp dword [esi + 0x3fc], 0
jne 0x101a5550
cmp dword [esi + 0x760], 0
je 0x101a5593
add edi, 0xe
push edi
call fcn.101afb40
add esp, 4
mov dword [esi + 0x120], eax
mov dword [esi + 0x124], edx
cmp dword [esi + 0x760], 0
je 0x101a5737
mov ecx, eax
mov dword [esi + 0xe90], ecx
mov edx, dword [esi + 0x124]
pop edi
mov dword [esi + 0xe94], edx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0x11
push edi
push str.WWW_Authenticate:
call fcn.10187520
add esp, 0xc
test eax, eax
je 0x101a55b4
mov eax, dword [esi + 0xf8]
cmp eax, 0x191
je 0x101a55d5
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.10187520
add esp, 0xc
test eax, eax
je 0x101a561a
mov eax, dword [esi + 0xf8]
cmp eax, 0x197
jne 0x101a561a
xor ecx, ecx
cmp eax, 0x197
sete cl
push edi
mov ebp, ecx
call fcn.101a1f70
mov edi, eax
add esp, 4
test edi, edi
je 0x101a519b
push edi
push ebp
push esi
call fcn.101a26d0
push edi
mov esi, eax
call dword [0x10263bb0]
add esp, 0x10
test esi, esi
je 0x101a5737
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0xf8]
cmp eax, 0x12c
jl 0x101a56b0
cmp eax, 0x190
jge 0x101a56b0
push 9
push edi
push str.Location:
call fcn.10187520
add esp, 0xc
test eax, eax
je 0x101a56b0
cmp dword [esi + 0x12c], 0
jne 0x101a56b0
push edi
call fcn.101a1f70
add esp, 4
test eax, eax
je 0x101a519b
cmp byte [eax], 0
jne 0x101a5679
push eax
call dword [0x10263bb0]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x794], 0
mov dword [esi + 0x12c], eax
je 0x101a5737
push eax
call dword [0x10263bb8]
add esp, 4
mov dword [esi + 0x130], eax
test eax, eax
je 0x101a519b
mov ebx, ebp
call fcn.101a2240
jmp 0x101a5312
cmp dword [esi + 0x848], 0
je 0x101a571a
push 8
push edi
push str.Alt_Svc:
call fcn.10187520
add esp, 0xc
test eax, eax
je 0x101a571a
mov edx, dword [ebp + 0x328]
test byte [edx + 0x48], 1
je 0x101a571a
mov eax, dword [ebp + 0xd0]
xor ebx, ebx
cmp dword [ebp + 0x11c], 0x14
push eax
sete bl
lea ebx, [ebx*8 + 8]
call fcn.10181a30
mov edx, dword [ebp + 0x6c]
movzx ecx, ax
mov eax, dword [esi + 0x848]
push ecx
push edx
push ebx
add edi, 8
push edi
push eax
push esi
call fcn.101821c0
add esp, 0x1c
jmp 0x101a5312
mov ecx, dword [ebp + 0x328]
test dword [ecx + 0x40], 0x40000
je 0x101a5737
push edi
push esi
call fcn.10192690
add esp, 8
test eax, eax
jne 0x101a5739
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret